Tokens
Generate a new token
Info
In order to generate a new token, you will need to be authenticated and having at least the token:write permission with value *.
You will need to send a POST request to the /-/npm/v1/tokens endpoint with the following body:
You can send has many scopes as you want.
Info
The values property is an array of strings. You can use glob patterns to match packages.
Get all tokens
You can get all tokens by sending a GET request to the /-/npm/v1/tokens endpoint.
Get a token
You can get a token by sending a GET request to the /-/npm/v1/tokens/token/:token endpoint.
Info
The :token parameter is the token you want to get.
Delete a token
You can delete a token by sending a DELETE request to the /-/npm/v1/tokens/token/:token endpoint.
:::info
The :token parameter is the token you want to delete.