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

# gable auth npm

Retrieve temporary credentials for Gable's NPM repository

## Usage

```bash theme={null}
gable auth npm [OPTIONS]
```

## Options

| Option           | Type    | Required | Default   | Description                                                                                                                                                                        |                                                                                                                |
| ---------------- | ------- | -------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `-o`, `--output` | `npmrc` | `json`   |           | npmrc                                                                                                                                                                              | Format of the output. Options are: npmrc (default), which you can echo directly into your .npmrc file, or json |
| `-w`, `--write`  | boolean |          | false     | If specified, adds entry to an existing .npmrc file, default is \~/.npmrc. If the file already contains a Gable NPM entry, it will be updated. If not, a new entry will be added.  |                                                                                                                |
| `-f`, `--file`   | text    |          | \~/.npmrc | The .npmrc file to write to if --write flag is set. Default is \~/.npmrc. The file must exist, or an error will be thrown.                                                         |                                                                                                                |
| `--endpoint`     | text    |          |           | Customer API endpoint for Gable, in the format [https://api.company.gable.ai/](https://api.company.gable.ai/). Can also be set with the GABLE\_API\_ENDPOINT environment variable. |                                                                                                                |
| `--api-key`      | text    |          |           | API Key for Gable. Can also be set with the GABLE\_API\_KEY environment variable.                                                                                                  |                                                                                                                |
