CLI: How to use JFrog CLI to Create Access Tokens

AuthorFullName__c
Jeremy Leopold
articleNumber
000006011
FirstPublishedDate
2024-01-29T14:12:55Z
lastModifiedDate
2025-07-28

CLI: How to use JFrog CLI to Create Access Tokens

Updates:

With the release of 7.21.1, the JFrog Platform introduced a new set of token APIs, available through the '/access' service context. For more information on the Access service REST APIs please refer to our documentation here.

Starting from Artifactory version 7.49.3, the '/artifactory/security' APIs are being decoupled from Artifactory and moving to the Access service.

Since JFrog CLI is an interface that automates access to JFrog products through their respective REST APIs, these changes in the APIs may affect the CLI commands you previously used to create access tokens. 
 

Using CLI to Create Access Tokens

The recommended method to create access tokens with JFrog CLI is to use the access-token-create command. Here is an example of it’s usage:

jf atc ci-token-nebula --scope=applied-permissions/groups:dev-team --reference=true --expiry=31556952 --description="Token for Dev Team. Owner bossman@devTeam.com" --access-token=<access-token>

It is important to note that this command requires authentication with a valid access token. 
It is possible to provide the token with each command, as shown above, or configure your server once using the ‘jf c add / edit‘ command and adding the ‘--access-token’ option.

For more details on the usage of the ‘access-token-create’ command, refer to the help documentation by running jf atc -h.