Skip to main content
Save an npm Granular Access Token so npm:publish can authenticate with the registry. The token is written as block-style YAML to ~/.talos/credentials/npm.yml under the default profile. Create a Granular Access Token at npmjs.com.

Usage

talos npm:credentials:create [options]

Examples

Run with no flags to be prompted for the token (input is hidden):
talos npm:credentials:create
Provide the token non-interactively:
talos npm:credentials:create --token=npm_xxxxxxxxxxxxxxxx

Options

OptionDescriptionDefault
--tokennpm Granular Access Token to store.Prompted if omitted
--silentSuppress the instructional message and the saved-to confirmation.false