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

Use secrets without exposing them

Devolutions CLI can hand a secret from your vault to a program in several ways. They differ in the one thing that matters most: whether the value ever lands somewhere you, your shell, or a file can see it. Start with devo secret run, and pick another command only when your tool can't work with it.

Pick the right command

CHOOSE
WHAT HAPPENS
VALUE STAYS HIDDEN?

devo secret run

Resolves references into the environment or the standard input of one command, starts it, and replaces the values with <concealed by Devolutions> in what it prints.

Yes. The values exist only in that command's environment, while it runs.

devo secret inject

Replaces the references in a template and writes the result to a file or to standard output.

No. The result contains the values in plain text.

devo secret shell enter

Prints Bash or PowerShell code that sets environment variables in your current shell. You run that code with eval or Invoke-Expression.

No. The values stay in plain text in your shell session until you leave the scope.

devo secret read

Resolves one reference and prints the value, or writes it to a private file with --out-file.

No. You get the value.

devo secret get

Same as devo secret read, but you name the field and the entry instead of writing a reference.

No. You get the value.

devo secret set

Writes a new value to a field of an entry. The value comes from an environment variable or a file.

Yes. The new value is never typed on the command line and never printed.

devo secretspec

Registers Devolutions CLI as the provider SecretSpec calls for devo:// provider URIs.

No. Devolutions CLI returns the value to SecretSpec, which passes it to your application.

In this section

Last updated

Was this helpful?