[🚨Error] platform URL is mandatory for access token creation
faisal6621 opened this issue · 3 comments
It appears you've used the --user
flag to provide a username. This flag is intended solely for authentication purposes and does not set the target username for the token. For security reasons, when providing any authentication details by flag in the JFrog CLI (such as username, password, URL, etc.), you must provide all of them together to avoid sending valid credentials to the wrong URL.
To generate a token for the user configured by the jf c add
command, simply run:
jf atc --expiry 0 --description "..."
To generate a token for another user, provide the username as an argument instead of a flag:
jf atc <username> --expiry 0 --description "..."
You can read more about this command here: Creating Access Tokens
Please let me know if this helps.
@yahavi
Thanks for the clarification. This was not clear from the CLI help documentation.
@faisal6621,
Your perspective can help us improve the documentation.
If you'd like, you can contribute improvements to the documentation by creating pull requests to github.com/jfrog/documentation