NOTE: This is work-in-progress, for a future (as yet unreleased) version of Conjur.
It will not work with Conjur 4.
Command-line interface to Conjur 5.
A complete reference guide is available at developer.conjur.net.
$ docker run -it -v $PWD:/work conjurinc/cli5 root@2b5f618dfdcb:/# conjur -v conjur version 6.0.0.pre.beta.2
docker build . -f Dockerfile.standalone -t conjurinc/cli5
Note these images are not subject to any QA at the moment and so should never be used in production, especially without specific image id pin.
Create a sandbox environment in Docker using the
$ cd dev dev $ ./start.sh
This will drop you into a bash shell in a container called
cli. The sandbox also includes a Postgres container and Possum server container. The environment is already setup to connect the CLI to the server:
You can obtain the API key for the role
cucumber:user:admin from the Docker logs of the
possum container. Use it to login:
root@2b5f618dfdcb:/# conjur authn login admin Please enter admin's password (it will not be echoed): Logged in
At this point, you can use any CLI command you like.
To install dev packages, run
bundle from within the container:
root@2b5f618dfdcb:/# cd /usr/src/cli-ruby/ root@2b5f618dfdcb:/usr/src/cli-ruby# bundle
Then you can run the cucumber tests:
root@2b5f618dfdcb:/usr/src/cli-ruby# cucumber ...
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request