Skip to content

azion_create_personal token

GitHub Action edited this page Oct 24, 2023 · 2 revisions

azion create personal-token

Creates a personal token

Synopsis

Creates a personal token to be used for authentication and security

azion create personal-token [flags]

Examples

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

Options

      --description string   The personal token's description
      --expiration string    The personal token's expiration
  -h, --help                 Displays more information about the 'create personal-token' 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

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

  • azion create - Creates a new resource on the Azion Edge Platform
Auto generated by spf13/cobra on 24-Oct-2023