Technical Exam for JFrog by Ran Tzur.
A CLI for Artifactory built in python.
Install by using the Artifactory Saas instance using the following user:
Username: testuser
Password: jfrogexam123
pip install CLI-Rantz -i https://rantz.jfrog.io/artifactory/api/pypi/pypi-local/simple
It is recommanded to use -t flag on the pip install to set the path of the installation.
This uses f literals thus requires python3
First navigate to where the package installation is on your local machine(Where pip installs the script)
After that, to see how to use the CLI, do python jfrog-cli.py --help
You can also use --help on specific commands, for example:
Full example of a command which creates a new user:
$ python3 jfrog-cli.py create-user -name=anotherone [email protected] -new-pass=something12345
Please note this will work ONLY on the SaaS artifactory
You will need to specify your artifactory server name for each command
The Artifactory username and password are prompted when entering a command which requires them.
You can also pass them as options to the command.
Access tokens are created automatically on each command.
By default, they are set to admin, and expires in one hour.