Quick start
By the end of this page, you'll run a command that receives a password from your Devolutions vault, without the password appearing in your terminal, your files, or your shell history. It takes about five minutes.
You need an account on Devolutions Cloud or Devolutions Server, or a local Devolutions Remote Desktop Manager profile, with at least one entry you can read.
Install Devolutions CLI
Devolutions CLI comes as an archive for your platform. Extract it to a folder, add that folder to your PATH, then check that your terminal finds devo (devo.exe on Windows):
devo --helpOther ways to install, and the supported platforms, are in Install Devolutions CLI.
Sign in to your workspace
Save your workspace as a context, a name you'll use from now on. The context you sign in to becomes the current one.
devo login my-cloud --cloud https://<your-organization>.devolutions.app --oauthYour browser opens so you can sign in. On a computer without a browser, sign in with an application key instead: see Sign in to Devolutions Cloud.
devo login my-server --server https://<your-server-address> --oauthYour browser opens so you can sign in. Other sign-in methods, such as an API key or Windows authentication, are in Sign in to Devolutions Server.
devo login my-local --sqlite <profile-folder>Replace <profile-folder> with the folder of the Devolutions Remote Desktop Manager profile that holds your local workspace. There's no sign-in: a local context only points at that folder.
Run a command with the secret
Pass the reference to devo secret run. Devolutions CLI reads the password from your vault, puts it in an environment variable for that one command, and starts it. Everything after -- is your command.
devo secret run --env-ref DEMO_SECRET=<reference> -- pwsh -NoProfile -Command 'Write-Output $env:DEMO_SECRET'devo secret run --env-ref DEMO_SECRET=<reference> -- sh -c 'echo "$DEMO_SECRET"'The command did receive the password, but the terminal shows <concealed by Devolutions>: Devolutions CLI hides the values it resolved in everything the command prints. When the command ends, the variable is gone. It never existed in your shell.
Replace the example with your own program, for example a database migration or a deployment script that reads its password from an environment variable.
Check before you run (optional)
Add --check to make sure the command exists and that every reference is well formed, without reading any secret or starting anything:
devo secret run --check --env-ref DEMO_SECRET=<reference> -- <your-command>More options, such as several secrets at once, a time limit, or a launch file, are in Run a command with its secrets.
You're done. What next?
Last updated
Was this helpful?