As a quick, lightweight alternative to the user interface or API, you can install the
cmove CLI tool to work with your Tholos secrets from the command line. Once installed, you can use the command line for important tasks like storing and retrieving secrets from Tholos. You can also run commands that use Tholos secrets as environment variables.
To install the
cmove CLI tool, open a shell for a machine which has curl installed and enter:
curl https://cli.cryptomove.com/install.sh | sh
Once installed, you can get a list of commands that you can execute using the
cmove tool by typing:
cmove run_in_ci command allows you to source your keys and secrets stored on CryptoMove Tholos for the command you pass into the argument.
Before running the command, you must export the following variables for your shell:
export CRYPTOMOVE_EMAIL=tholos_email export CRYPTOMOVE_TOKEN=API_token
- tholos_email is the email address you used to create an account at https://app.cryptomove.com
- API_token is the API access token for your Tholos account. To get your API token, see Getting Started.
Once you have exported these variables, running
cmove run_in_ci will import all of your secrets from Tholos and use them to provide the values for environment variables in the command being passed to
run_in_ci. For instance, suppose you had a Tholos secret named NPM_TOKEN. Running the command
cmove run_in_ci -c 'echo $NPM_TOKEN' will print the value of
NPM_TOKEN that you have stored on CryptoMove Tholos.