Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 test token

Request an access token for a given application. Specify the API you want this token for with --audience (API Identifier). Additionally, you can also specify the --scopes to grant.

Usage

auth0 test token [flags]

Examples

  auth0 test token
  auth0 test token <client-id> --audience <api-audience|api-identifier> --scopes <scope1,scope2>
  auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2>
  auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --force
  auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --json
  auth0 test token <client-id> -a <api-audience|api-identifier> -s <scope1,scope2> --force --json

Flags

  -a, --audience string   The unique identifier of the target API you want to access. For Machine to Machine and Regular Web Applications, only the enabled APIs will be shown within the interactive prompt.
      --force             Skip confirmation.
      --json              Output in json format.
  -s, --scopes strings    The list of scopes you want to use.

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.