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

# firectl set-api-key

> Sets the default API key in ~/.fireworks/auth.ini.

```
firectl set-api-key [flags]
```

### Examples

```
firectl set-api-key API_KEY
```

### Flags

```
  -h, --help   help for set-api-key
```

### Global flags

```
  -a, --account-id string   The Fireworks account ID. If not specified, reads account_id from ~/.fireworks/auth.ini.
      --api-key string      An API key used to authenticate with Fireworks.
  -p, --profile string      fireworks auth and settings profile to use.
```
