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

Switch between workspaces

When you work with more than one workspace, for example Devolutions Cloud for production and a local profile for tests, each one is a context. One context is current at a time, and every command uses it. You can change the current context, or pick another one for a single command without changing anything.

Pick the right option

CHOOSE
WHAT HAPPENS
USE IT WHEN

devo context use

Changes the current context. Every later command uses it.

You move to another workspace for a while.

--context <context-name>

Uses that context for this command only.

You need another workspace for one command.

DEVO_CONTEXT

Uses that context for every command started with this environment variable.

A terminal session, a script, or a pipeline must stick to one workspace, whatever the current context is.

See your contexts

devo context list

Each line shows a context name, its type (sqlite, cloud, or server) and its address or profile folder. The current context is marked with *.

To see the details of one context, or of the current one when you don't name it:

devo context inspect <context-name>

Change the current context

devo context use <context-name>

devo login also makes the new context current, unless you add --no-set-current.

Use another workspace for one command

Add --context to any command:

To select the same context for a whole terminal session or a script, set DEVO_CONTEXT:

--context on the command line wins over DEVO_CONTEXT.

A canonical reference to a Devolutions Cloud or Devolutions Server entry always goes to the login that owns it, whatever context you select. The context matters for named references and for commands like devo secret get. See Compare workspace types.

Select a workspace by type with --source

--source selects the workspace by type: sqlite, cloud, cloud:<context-name>, server, or server:<context-name>. It takes priority over --context and over the DEVO_RDM_SOURCE environment variable, which accepts the same values. Most of the time, --context is simpler.

Check where you are

  • devo status shows the selected context, its type, and, for Devolutions Cloud or Devolutions Server, whether it has a sign-in. Add --online to contact the workspace and confirm that the sign-in still works.

  • devo info shows information about the Devolutions Cloud or Devolutions Server instance. It also works on an address you haven't signed in to, with --cloud <url> or --server <url>. It doesn't apply to local profiles.

Sign out or remove a context

COMMAND
WHAT HAPPENS

devo logout [<context-name>]

Clears the sign-in of a Devolutions Cloud or Devolutions Server context. The context stays, so you can sign in again with the same name. Without a name, it applies to the current context.

devo context delete <context-name>

Removes a local profile context. The profile folder stays untouched.

devo context delete <context-name> --yes

Removes a Devolutions Cloud or Devolutions Server context and its stored session. Without --yes, the command refuses.

If you delete the current context, no context is current until you select one.

Good to know

  • A context name can be used by one workspace type only. If an older name exists as two types, commands ask you to delete one with devo context delete <context-name> --kind <type>.

  • If the current context no longer exists, commands don't fail because of it: Devolutions CLI ignores it until you select another one.

  • Switching between local profiles in different folders may need devo daemon restart. See Use a local Devolutions Remote Desktop Manager profile.

Next

Last updated

Was this helpful?