Skip to main content
Retrieve temporary credentials for Gable’s NPM repository

Usage

gable auth npm [OPTIONS]

Options

OptionTypeRequiredDefaultDescription
-o, --outputnpmrcjsonnpmrcFormat of the output. Options are: npmrc (default), which you can echo directly into your .npmrc file, or json
-w, --writebooleanfalseIf 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, --filetext~/.npmrcThe .npmrc file to write to if —write flag is set. Default is ~/.npmrc. The file must exist, or an error will be thrown.
--endpointtextCustomer API endpoint for Gable, in the format https://api.company.gable.ai/. Can also be set with the GABLE_API_ENDPOINT environment variable.
--api-keytextAPI Key for Gable. Can also be set with the GABLE_API_KEY environment variable.