alpacon token create

Generates a new API token for accessing the server. This command allows you to create a token by specifying options such as token name, expiration, and limits.

alpacon token create [flags]

Options

      --expiration-in-days int   This token can be used by the specified time (in days)
  -h, --help                     help for create
  -l, --limit                    Set to true to apply usage limits (default true)
  -n, --name string              A name to remember the token easily
      --scopes string            Comma-separated list of scopes (e.g. "server:read,command:create"). Omit to default to full access.

Examples

Create a token interactively:

alpacon token create

Create a token with a name and expiration:

alpacon token create -n my-token --expiration-in-days 30

Create a token without limits:

alpacon token create -n my-token -l=false

Create a token with specific scopes:

alpacon token create --name ci-token --scopes "server:read,command:create"
Last updated: