Parallel Works

pw auth token

Authenticate the CLI with a short-term token

Synopsis

After you enter pw auth token, the CLI will prompt you to paste your short-term token on a new line.

You can create a new token on ACTIVATE by going to Account > Authentication > API Keys. For more information about these steps, please see this page.

These short-term tokens last a maximum of 24 hours, after which you will need to re-authenticate.

Alternatively, you can authenticate with an API key. Please see pw auth apikey for more information.

Use --context-name to specify a custom name for the context. This is useful if you want multiple contexts for the same user/server combination.

pw auth token [flags]

Options

      --context-name string   Name for the context (defaults to user@server)
  -h, --help                  help for token

Options inherited from parent commands

      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging

SEE ALSO