---
title: influx v1 auth
description: The influx v1 auth subcommands provide authorization management for the InfluxDB 1.x compatibility API.
url: https://docs.influxdata.com/influxdb/v2/reference/cli/influx/v1/auth/
estimated_tokens: 804
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/reference/cli/influx/v1/auth/
date: '2025-04-02T15:54:32-06:00'
lastmod: '2025-04-02T15:54:32-06:00'
---

* influx CLI 2.0.0+
* InfluxDB 2.0.0+

This page documents an earlier version of InfluxDB OSS.[InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a
copy of the database file doesn’t expose usable tokens. Existing
tokens are hashed on first startup and the original strings can’t
be recovered afterward — **capture any plaintext tokens you still
need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

The `influx v1 auth` subcommands provide authorization management for the[InfluxDB 1.x compatibility API](/influxdb/v2/reference/api/influxdb-1x/).

InfluxDB 2.9 uses [API tokens](/influxdb/v2/admin/tokens/) to authorize API requests.
The [1.x compatibility API](/influxdb/v2/reference/api/influxdb-1x/) lets clients authenticate with InfluxDB 2.9 using the InfluxDB 1.x convention of username and password.

> [!Note]
> v1-compatible authorizations are separate from the credentials used to log
> into the InfluxDB user interface.

## Usage

```
influx v1 auth [flags]
influx v1 auth [command]
```

#### Command aliases

`auth`, `authorization`

## Commands

|                                Command                                |                Description                 |
|-----------------------------------------------------------------------|--------------------------------------------|
|      [create](/influxdb/v2/reference/cli/influx/v1/auth/create/)      |            Create authorization            |
|      [delete](/influxdb/v2/reference/cli/influx/v1/auth/delete/)      |            Delete authorization            |
|        [list](/influxdb/v2/reference/cli/influx/v1/auth/list/)        |            List authorizations             |
|  [set-active](/influxdb/v2/reference/cli/influx/v1/auth/set-active/)  |         Activate an authorization          |
|[set-inactive](/influxdb/v2/reference/cli/influx/v1/auth/set-inactive/)|        Deactivate an authorization         |
|[set-password](/influxdb/v2/reference/cli/influx/v1/auth/set-password/)|Set a password for an existing authorization|

## Flags

|Flag|        |         Description          |
|----|--------|------------------------------|
|`-h`|`--help`|Help for the `v1 auth `command|

#### Related

* [Upgrade from InfluxDB 1.x to 2.9](/influxdb/v2/install/upgrade/v1-to-v2/)
* [influx CLI—Provide required authentication credentials](/influxdb/v2/reference/cli/influx/#provide-required-authentication-credentials)
* [`influx` CLI—Flag patterns and conventions](/influxdb/v2/reference/cli/influx/#flag-patterns-and-conventions)

[authorization](/influxdb/v2/tags/authorization/)
| Command | Description |
| --- | --- |
| Command | Description |
| create | Create authorization |
| delete | Delete authorization |
| list | List authorizations |
| set-active | Activate an authorization |
| set-inactive | Deactivate an authorization |
| set-password | Set a password for an existing authorization |

| Flag |  | Description |
| --- | --- | --- |
| Flag |  | Description |
| -h | --help | Help for the  v1 auth  command |
