> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reachboost.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Storing, checking and forgetting the API key on this machine. The key itself is created and revoked in ReachBoost.

`reachboost auth` has 2 commands. Each one lists its arguments, its flags and what it is allowed to change.

Built into the CLI

Every command also accepts the [global flags](https://docs.reachboost.io/cli/commands.md#global-flags).

## auth set-key

Built into the CLI

Store an API key for the profile, after checking it works. Needs --workspace \<uuid>: the key is checked against that workspace and it becomes the profile's default. Prompts for the key; it is never taken as an argument.

```bash Usage theme={null}
reachboost auth set-key
```

**Flags**

**--stdin** `boolean`

Read the key from standard input instead of prompting (for scripts).

```bash Examples theme={null}
reachboost auth set-key --workspace "<uuid>"
reachboost --profile staging auth set-key --workspace "<staging-workspace-uuid>"
reachboost auth set-key
```

## auth remove

Built into the CLI

Forget the stored key and default workspace for the profile. The key stays valid until revoked in ReachBoost.

```bash Usage theme={null}
reachboost auth remove
```

```bash Example theme={null}
reachboost auth remove
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.