# pw auth

> Source: https://parallelworks.com/docs/cli/pw/auth

## pw auth

Authenticate the CLI

### Synopsis

The **pw auth** command group lets you grant authorization to the PW CLI to access your cloud resources. 

On ACTIVATE, the PW CLI is pre-authenticated for user workspaces and existing clusters. 
You only have to authenticate if you're accessing a cloud cluster or running the PW CLI locally.

For more information about this process, please see [Authentication](/docs/cli#authentication).

### Options

```
  -h, --help   help for auth
```

### 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

* [pw](/docs/cli/pw)	 - The Parallel Works ACTIVATE CLI
* [pw auth apikey](/docs/cli/pw/auth/apikey)	 - Authenticate the CLI with an API key
* [pw auth identify-platform](/docs/cli/pw/auth/identify-platform)	 - Print effective platform host
* [pw auth token](/docs/cli/pw/auth/token)	 - Authenticate the CLI with a short-term token
* [pw auth whoami](/docs/cli/pw/auth/whoami)	 - Print effective user
