Skip to content

azion_personal_token_create

GitHub Action edited this page Oct 17, 2023 · 5 revisions

azion personal_token create

Creates a new personal token

Synopsis

Creates a personal token to be used for authentication and security

azion personal_token create [flags]

Examples

$ azion personal_token create --name "ranking of kings" --expiration "9m" 
$ azion personal_token create --name "sakura" --expiration "9m" 
$ azion personal_token create --name "luffy biruta" --expiration "9m" --description "gear five"
$ azion personal_token create --in "create.json"
$ json example "create.json": 
{   
    "name": "One day token",
    "expires_at": "9m",
    "description": "example"
}

Options

      --description string   The personal token's description
      --expiration string    The personal token's expiration. It's required if the --in flag is not informed.
  -h, --help                 Displays more information about the create subcommand
      --in string            Path to a JSON file containing the attributes of the personal token being created; you can use - for reading from stdin
      --name string          The personal token's name. It's required if the --in flag is not informed.

Options inherited from parent commands

  -c, --config string      Sets the Azion configuration folder for the current command only, without changing persistent settings.
  -d, --debug              Displays log at a debug level
  -l, --log-level string   Displays log at a debug level (default "info")
  -s, --silent             Silences log completely; mostly used for automation purposes
  -t, --token string       Saves a given personal token locally to authorize CLI commands
  -y, --yes                Answers all yes/no interactions automatically with yes

SEE ALSO

Auto generated by spf13/cobra on 17-Oct-2023