Coming from another secrets tool
If you already use 1Password CLI, Bitwarden CLI, or Infisical CLI, most of your habits carry over. Devolutions CLI follows the same idea: your files and scripts hold a reference, and the value is fetched only when a command needs it. The references start with devo://, and the secrets come from your workspace: Devolutions Cloud, Devolutions Server, or a local Devolutions Remote Desktop Manager profile.
Before you start, sign in once with devo login. Every command below then uses the current context, or the one you pass with --context <context-name>. Canonical references are the exception: they always resolve against the workspace that owns them, whatever context is selected. See How Devolutions CLI works.
Command equivalents
1Password CLI op read op://<vault>/<item>/<field>, to print the value of one field.
devo secret read devo://<workspace>/<vault>/<entry>/<field>
A named reference also includes the workspace. You can use a canonical reference instead, built from IDs (devo://ws/<workspace-id>/vault/<vault-id>/entry/<entry-id>/field/<field>), which keeps working after a rename. See Secret reference syntax.
1Password CLI op run -- <command>, to start a command with secrets in its environment.
devo secret run --env-ref <NAME>=<reference> -- <command>
Output is masked by default too: resolved values show as <concealed by Devolutions>, and --no-masking turns it off. Devolutions CLI refuses a command argument that is a reference: pass references with --env-ref, --stdin-reference, an environment file, or a launch manifest. See Run a command with its secrets.
1Password CLI op run --env-file <file>, to resolve the references of a .env file.
devo secret run --env-file <file> -- <command>
The file holds devo:// references instead of op:// ones. A variable name can come from one source only: if --env-ref also sets it, the command stops with a conflict instead of choosing. See Take the passwords out of a .env file.
1Password CLI op inject, to fill a template with secret values.
devo secret inject --in-file <template> --out-file <file>
You can wrap a reference in {{ }} to mark exactly where it starts and ends. An existing output file is replaced only with --force. See Fill a configuration file from a template.
Bitwarden CLI bw get password <item>, to print the password of one item.
devo secret get password "<entry-name>", or devo secret read <reference>
devo secret get takes the field and the entry name (or id:<entry-id>), and uses the current vault unless you add --vault. It reads other fields the same way, such as username or host. There's no session key to pass: Devolutions CLI uses the context you saved with devo login.
Infisical CLI infisical run -- <command>, to start a command with the secrets of a project in its environment.
devo secret run -- <command>
Devolutions CLI passes only the secrets you name: each --env-ref, each reference in an environment file, and each variable of your shell whose value is a devo:// reference. See Run a command with its secrets.
SecretSpec with another provider, such as 1Password or Bitwarden.
devo secretspec register, then the provider URI from devo secretspec uri
Each secret in secretspec.toml names the entry ID and the field, and optionally a vault. Convention-based addresses (project, profile, and key) are refused. See Use Devolutions CLI with SecretSpec.
Move your references
Find the reference of each secret with
devo entry references "<entry-name>" --vault-name "<vault-name>". It lists references without reading any value. See Find the reference to a secret.Replace each
op://reference, or each value your scripts read from another tool, with thedevo://reference.Replace the command that started your program, for example
op runorinfisical run, withdevo secret run.Before the first real run, add
--checkto make sure the program exists and every reference is well formed, without reading any value.
Next
Every option of
devo secret: Commands
Last updated
Was this helpful?