fastly auth-token create

Create an API token.

Syntax

$ fastly auth-token create --password=PASSWORD

Options

KeyRequired?DefaultDescription
--passwordYesUser password corresponding with --token or $FASTLY_API_TOKEN
--expiresNoTime-stamp (UTC) of when the token will expire
--nameNoName of the token
--scopeNoAuthorization scope (repeat flag per scope)
--servicesNoA comma-separated list of alphanumeric strings identifying services (default: access to all services)

Global options

KeyRequired?DefaultDescription
--helpNoShow context-sensitive help.
--accept-defaultsNoAccept default options for all interactive prompts apart from Yes/No confirmations
--auto-yesNoAnswer yes automatically to all Yes/No confirmations. This may suppress security warnings
--debug-modeNoPrint API request and response details (NOTE: can disrupt the normal CLI flow output formatting)
--non-interactiveNoDo not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes
--profileNoSwitch account profile for single command execution (see also: 'fastly profile switch')
--quietNoSilence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive)
--tokenNoFastly API token (or via FASTLY_API_TOKEN)
--verboseNoVerbose logging

API equivalent

This command internally uses the following Fastly public APIs: