This project provides a cli called 'jfrog-saas' allowing you to manage a jfrog saas instance.
To install the cli, run the following command:
pip3 install --index https://noamdolovich.jfrog.io/artifactory/api/pypi/jfrog/simple jfrog
After installation, you should be able to access the cli by running the following command:
jfrog-saas --help
Every command uses a host/username/password in order to authenticate with the jfrog instance. There are two ways to configure these options.
-
Using flags:
jfrog --host HOSTNAME --jfrog-username USERNAME --jfrog-password PASSWORD COMMAND...
-
Using environment variables: It is possible to configure the authentication values using environment variables. for example:
export JFROG_HOST='https://hostname.jfrog.io' export JFROG_USERNAME='jfrog_user' export JFROG_PASSWORD='jfrog_password'
The following commands are available:
jfrog storage info - get a summary of the storage consumed by the instance
jfrog system ping - ping the jfrog instance to ensure it is up
jfrog system version - get version of the jfrog instance
jfrog user create - create a new user
jfrog user delete - delete an existing user
You can obtain additional help from the cli by using the '--help' flag with each command. for example:
$ jfrog-saas system ping --help
Usage: jfrog-saas system ping [OPTIONS]
Ping system, ensuring saas instance is up
Options:
--help Show this message and exit.