For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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

winget install Devolutions.Cli
brew install devolutions/tap/devo-cli

Without WinGet or Homebrew, download the archive for your platform from the Devolutions download center, extract it to a folder, and add that folder to your PATH.

Open a new terminal and check that it finds devo (devo.exe on Windows):

devo --help

The supported platforms, and the other ways to install, 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. Pass the address of your workspace and choose the context name with --name. Without --name, Devolutions CLI proposes the first part of the host name, such as contoso for https://contoso.devolutions.app. The context you sign in to becomes the current one, unless you add --no-set-current.

devo login https://<your-organization>.devolutions.app --name my-cloud --oauth

Your browser opens so you can sign in. On a computer without a browser, add --use-device-code to sign in with a code on another device, or use an application key: see Sign in to Devolutions Cloud.

devo login https://<your-server-address> --name my-server --oauth

Devolutions CLI opens your browser on the sign-in page and prints its address too, so you can open it yourself if no browser appears. Other sign-in methods, such as an API key, an application key, or Windows authentication, are in Sign in to Devolutions Server.

devo login --local <profile-folder> --name my-local

Replace <profile-folder> with the root folder of the Devolutions Remote Desktop Manager profile that holds your local SQLite workspaces. 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://.

A reference is made of IDs only: devo://<cloud|server|local>/<instance-id>/vault/<vault-id>/entry/<entry-id>/field/<field>. It never contains the secret, and it keeps working when the entry or the vault is renamed. 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?