Parallel Works

pw context

pw context

Manage CLI contexts

Synopsis

The pw context command group lets you manage multiple CLI identities and switch between them.

Contexts allow you to authenticate with multiple Parallel Works platforms or user accounts and easily switch between them without re-authenticating.

Each context stores the authentication credentials (API key or token), the platform server, and the associated organization. Contexts live in the credentials file at ~/.config/pw/credentials (created by pw auth; the legacy ~/pw/.credentials file is migrated there automatically). Set PW_CREDENTIALS_DIR to store the file somewhere else.

Commands pick the context in this order: the --context flag, the PW_CONTEXT environment variable, then the current context set by pw context use.

pw context [flags]

Options

  -h, --help   help for context

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. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
  -v, --verbose                Enable verbose logging

SEE ALSO