Devolutions CLI on Windows, macOS, and Linux
Devolutions CLI has the same commands, options, and references on every platform. A script that runs devo secret run on a Windows laptop runs the same way on a Linux build agent. What changes is how Devolutions CLI uses each operating system: how it protects the files it writes, where it keeps sign-in sessions, and how its background process talks to devo.
What's different on each platform
Command file
devo.exe
devo
devo
Architectures
x64, Arm64
x64, Arm64
x64, Arm64
Windows authentication (devo login --windows-auth)
Available, with Devolutions Server.
Not available: devo login stops with invalidParameterValue.
Not available: devo login stops with invalidParameterValue.
Browser sign-in sessions (--oauth)
Encrypted with your Windows user account, in files of the Devolutions CLI configuration folder.
In the Keychain.
In the Secret Service, through the libsecret library. Without that library, browser sign-in stops with cloudOAuthSecureStoreRequired or serverOAuthSecureStoreRequired. If the library can't store the session, it stops with cloudOAuthStorageFailed or serverOAuthStorageFailed.
Files that hold a secret (--out-file of devo secret read, get, and inject)
Access rules that allow only your account, the Administrators group, and the system account.
Readable and writable by your account only.
Readable and writable by your account only.
Private key from devo generate ssh-key
Devolutions CLI doesn't change the file's permissions.
Readable and writable by your account only.
Readable and writable by your account only.
Configuration folder protection (contexts, sign-in session files, telemetry preference)
When Devolutions CLI records its background process, it gives the folder access rules that allow only your account and the system account. Files created in the folder inherit them.
When Devolutions CLI records its background process, the folder becomes accessible to your account only. Context files and the telemetry preference are also readable and writable by your account only.
When Devolutions CLI records its background process, the folder becomes accessible to your account only. Context files and the telemetry preference are also readable and writable by your account only.
devo config export file
Devolutions CLI doesn't change the file's permissions.
Readable and writable by your account only.
Readable and writable by your account only.
Background process: local channel
A named pipe with access rules for your account and the system account. If Windows refuses those rules, the pipe uses default security.
A socket file in the temporary folder, readable and writable by your account only.
A socket file in the temporary folder, readable and writable by your account only.
Background process: its own files (registration and locks)
Access rules that allow only your account and the system account.
Your account only.
Your account only.
Background process: how it starts
As a hidden process, without a window.
Through /bin/sh, with its input and output disconnected from your terminal.
Through /bin/sh, with its input and output disconnected from your terminal.
Configuration folder location
Devolutions/CLI in your user's local application data folder, or .devolutions/cli in your home folder if there's no local application data folder. DEVO_CLI_CONFIG_HOME replaces it on every platform.
Folder paths (configuration and profile folders)
Devolutions CLI compares them without case.
Devolutions CLI compares them with case.
Devolutions CLI compares them with case.
SecretSpec claim, for your user
SecretSpec\providers.d in your roaming application data folder
~/Library/Application Support/SecretSpec/providers.d
$XDG_CONFIG_HOME/secretspec/providers.d, or ~/.config/secretspec/providers.d when XDG_CONFIG_HOME isn't set or isn't an absolute path
SecretSpec claim, with --system
SecretSpec\providers.d in the machine-wide application data folder
/Library/Application Support/SecretSpec/providers.d
/etc/secretspec/providers.d
The same on every platform
Shells for
devo secret shell.--shell bashand--shell pwsh(orpowershell) work on Windows, macOS, and Linux. Pick the shell you run the script in, not the operating system. See Use secrets in your current shell.Browser sign-in.
devo login --oauthasks the operating system to open the address in a browser, and always prints the address too. If no browser opens, copy the address. On a computer without a browser, add--use-device-codewith Devolutions Server, or sign in with an application key to Devolutions Cloud. See Sign in to Devolutions Cloud.Environment variables. Every variable works the same way on every platform. See Environment variables.
What this means for you
Windows authentication needs Windows. On macOS and Linux, sign in to Devolutions Server with a browser, an API key, or a username and password instead. A context created with --windows-auth doesn't work on another platform, even if you share the configuration folder: commands stop with windowsAuthenticationUnsupported. See Sign in to Devolutions Server.
On Linux, browser sign-in needs the Secret Service. Devolutions CLI never writes a browser sign-in session to a plain file. When the Secret Service isn't available, for example on some build agents, sign in with an application secret or an API key instead. See Sign in from a CI pipeline.
Files with a secret are private, but still plain text. Devolutions CLI restricts who can open what it writes with --out-file, on every platform. On Windows, members of the Administrators group can still open it. The value inside is in plain text: delete the file when you're done. See What stays hidden, and what doesn't.
On Windows, protect your SSH private keys yourself. devo generate ssh-key doesn't restrict the private key file on Windows. Write it to a folder only you can open, not to a shared folder. See Generate passwords and SSH keys.
On macOS and Linux, folder names must match exactly. Devolutions CLI treats two spellings such as Profiles and profiles as two different folders, each with its own background process. Use the same spelling in RDM_CONFIG_PATH, DEVO_CLI_CONFIG_HOME, and --sqlite everywhere.
On macOS and Linux, the background process needs a short temporary folder path. Its socket file lives in the temporary folder. If that path is very long, Devolutions CLI can't create the socket and the background process doesn't start. See The background process won't start.
Next
Last updated
Was this helpful?