Giter Site home page Giter Site logo

cli-rantz's Introduction

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
example-1.png

You can also use --help on specific commands, for example:

example-2.png

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
example-3.png

The Artifactory username and password are prompted when entering a command which requires them.
You can also pass them as options to the command.
example-4.png

Access tokens are created automatically on each command.
By default, they are set to admin, and expires in one hour.

cli-rantz's People

Contributors

rantzur1992 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.