For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

1

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 --help

Other ways to install, and the supported platforms, are in Install Devolutions CLI.

2

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 --oauth

Your 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> --oauth

Your 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.

3

Find the reference to a password

Ask Devolutions CLI for the references of an entry. This lists where each secret lives, never the secret itself.

devo entry references "<entry-name>" --vault-name "<vault-name>"

Copy the reference of the password field. It starts with devo://.

Two kinds of references can appear. A named reference uses the workspace, vault, and entry names, so it's easy to read. A canonical reference (devo://ws/…/vault/…/entry/…/field/…) uses IDs, so it keeps working when an entry is renamed. On Devolutions Server, this command lists canonical references only. See Find the reference to a secret.

4

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.

5

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?