Set up the Conjur CLI (Docker-based)
-
The Docker-based Conjur CLI is deprecated and will not be supported after August 2023.
We strongly recommend that all customers migrate to our new Conjur CLI which is already supported and available for use. See Migrate from the Docker-based Conjur CLI for information about migrating to Conjur CLI v8.0.1.
The Conjur CLI implements the Conjur REST API, providing an alternate interface for managing Conjur resources, including roles, privileges, policy, and secrets.
Start the Conjur CLI
You can run the Conjur CLI in a container or start it as a Ruby gem.
Container
The following command starts a highly secure ephemeral container for the CLI based on the latest pulled DockerHub image.
|
Variable |
Description |
---|---|
<container-name> |
If local, use the name of the Conjur Server. If you are running the Conjur CLI on a separate machine the |
To understand how to persist identity data so that subsequent sessions are quicker to start up, see the CLI readme.
Ruby Gem
If you have a Ruby environment, you can install the Ruby gem. See the CLI readme.
Initialize the Conjur CLI
Enter the following command at the bash prompt:
|
Variable |
Description |
---|---|
<conjur-appliance-hostname> |
The URL of the Conjur Server in the following format |
<organizational-account> |
The organizational account assigned to this Conjur Server during configuration. |
Authenticate to the client
-
Enter the following command at the bash prompt:
conjur authn login <user-name>
Variable
Description
<user-name> A valid Conjur username. You can use the built-in admin user.
-
Enter the user password when prompted.
-
For a list of valid commands, enter
conjur --help
or, see the Conjur CLI (Docker-based).
Set up the CyberArk Vault Synchronizer. For more information, see Install CyberArk Vault Synchronizer.