## pyre auth login

Save an API token after checking it against the API

```
pyre auth login [flags]
```

### Examples

```
  pyre auth login                      # asks for the token
  pyre auth login --token pyre_...     # non-interactive
  echo "$TOKEN" | pyre auth login      # token on stdin
  pyre auth login --api https://pyre.corp.example --ca-cert corp-ca.pem --profile corp
```

### Options

```
      --api string       API base URL to save with the token
      --ca-cert string   PEM file with the manager's CA (self-hosted)
  -h, --help             help for login
      --insecure         save the profile with TLS verification off (lab only)
      --profile string   save under this profile name and make it current
      --token string     the API token (asked for when absent)
```

### Options inherited from parent commands

```
  -o, --output string   output format: table, json or plain (default "table")
  -q, --quiet           print results only, no notices
  -y, --yes             answer yes to every confirmation (for scripts)
```

### SEE ALSO

* [pyre auth](pyre_auth.md)	 - Log in, log out, and manage API tokens

