docs-v2/content/shared/influxdb3-cli/create/token.md

32 lines
941 B
Markdown

The `influxdb3 create token` command creates a new authentication token.
## Usage
<!--pytest.mark.skip-->
```bash
influxdb3 create token <COMMAND> [OPTIONS]
```
## Commands
| Command | Description |
| :----- | :----------- | :------------------------------ |
| `--admin` | Create an admin token for the {{< product-name >}} server. |
{{% show-in "enterprise" %}}| [`--permission`](/influxdb3/enterprise/reference/cli/influxdb3/create/token/permission/) | Create a resource token with fine-grained access permissions. |{{% /show-in %}}
## Options
| Option | | Description |
| :----- | :----------- | :------------------------------ |
| `-h` | `--help` | Print help information |
| | `--help-all` | Print detailed help information |
## Examples
### Create an admin token
```bash
influxdb3 create token --admin
```