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

Environment variables

Set these variables to change the behavior of Devolutions CLI without adding options to every command, for example on a build agent. An option on the command line always takes priority over the matching variable. All the variables work on Windows, macOS, and Linux.

Where a variable is described as "turned on", any value turns it on except an empty value, 0, false, or no (not case-sensitive), unless stated otherwise.

Options such as --password-env, --value-env, or --api-key-env take the name of an environment variable that you choose, never its value. Those variables aren't listed here.

Workspace selection

VARIABLE
WHAT IT DOES
VALUES

DEVO_CONTEXT

Context to use, like --context. The --context option takes priority.

A context name.

DEVO_RDM_SOURCE

Workspace type to use, like --source. The --source and --context options take priority.

sqlite, cloud, cloud:<context>, server, server:<context>.

Configuration location

VARIABLE
WHAT IT DOES
VALUES

DEVO_CLI_CONFIG_HOME

Folder where Devolutions CLI keeps its configuration, such as your contexts. By default, it's a Devolutions/CLI folder in your user's local application data folder. Set it to give a build agent or a test its own isolated configuration.

A folder path. Environment variables in it are expanded.

RDM_CONFIG_PATH

Folder of the local Devolutions Remote Desktop Manager profile to use. By default, it's the rdm folder inside the Devolutions CLI configuration folder. When it's set, a current local context is ignored; a current Devolutions Cloud or Devolutions Server context still applies. devo config path shows the folder in use.

A folder path.

devo secretspec register always lets SecretSpec pass RDM_CONFIG_PATH and DEVO_CLI_CONFIG_HOME to Devolutions CLI. See Use Devolutions CLI with SecretSpec.

Prompts and sign-in

VARIABLE
WHAT IT DOES
VALUES

DEVO_NON_INTERACTIVE

When turned on, commands fail instead of asking for missing input, like --non-interactive.

For example 1 or true.

DEVO_PROMPT_ANSWERS

Answers to prompts, used in order after the --answer options.

Answers separated by ; or line breaks.

DEVO_CLI_USE_DEVICE_CODE

When turned on, devo login --oauth signs in with a device code instead of the local browser redirect, like --use-device-code. Here only an empty value, 0, or false leave it off.

For example 1 or true.

Background process

VARIABLE
WHAT IT DOES
VALUES

DEVO_DAEMON_MODE

Background process policy, like --daemon. The --daemon option takes priority. Any other value stops every command with the error code invalidParameterValue and exit code 2.

auto (default), require, never.

DEVO_DAEMON_AUTOSTART

Set to 0, false, or no to stop devo from starting the background process on its own, like --no-daemon-autostart.

Default: on.

DEVO_DAEMON_IDLE_TIMEOUT

How long the background process waits without a request before it stops. The --idle-timeout option of devo daemon start and devo daemon restart takes priority. A zero duration, written 0s or 00:00:00, means it never stops on its own; 0 alone is rejected.

A duration such as 30s, 15m, 1h, 1d, or 00:30:00. Default: 60 minutes.

Last updated

Was this helpful?