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

Sign in to Devolutions Cloud

Sign in once and Devolutions CLI saves your Devolutions Cloud as a context, so every later command uses it without asking again. Use your browser when you work at your computer, and an application key when a script or a pipeline signs in for you.

You need the address of your Devolutions Cloud, for example https://<your-organization>.devolutions.app. Use an https address.

Pick the right option

CHOOSE
WHAT HAPPENS
USE IT WHEN

Browser sign-in (--oauth)

Your browser opens on Devolutions Account. Devolutions CLI keeps the session in your operating system's secure store and renews it on its own.

You work at your own computer.

Application key (--application-key)

Devolutions CLI signs in with an application key and its secret. The secret is read from an environment variable or a file, never typed on the command line.

A script, a scheduled task, or a CI pipeline signs in without anyone present.

Sign in with your browser

  1. Run devo login with a context name of your choice:

    devo login <context-name> --cloud https://<your-organization>.devolutions.app --oauth
  2. Your browser opens. Sign in to your Devolutions account. If the browser doesn't open, or opens in the background, copy the address shown in the terminal into a browser.

The terminal confirms the sign-in, and the new context becomes the current one.

Sign in with an application key

  1. Put the application secret in an environment variable or a file that only you can read. Don't type it on the command line.

  2. Run devo login with the application key and the name of the variable, or the path of the file:

Devolutions CLI checks the key and the secret with your Devolutions Cloud before it saves the context.

Devolutions CLI doesn't save the application secret. It saves the name of the variable or the path of the file, and reads the secret again each time a command needs it. Keep that variable set, or that file in place, for as long as you use the context.

For pipelines, see Sign in from a CI pipeline.

Check and end the session

  • devo status shows the current context and whether it has a sign-in. Add --online to contact Devolutions Cloud and confirm that the sign-in still works.

  • devo logout clears the sign-in of the current context, or of the context you name. The context stays, so you can sign in again with the same name.

  • devo context delete <context-name> --yes removes the context and its stored session.

Good to know

  • --timeout sets how long, in seconds, Devolutions CLI waits for each sign-in request: from 3 to 600, 15 by default.

  • --no-set-current saves the context without making it the current one. If no Devolutions Cloud context is current yet, it still becomes the one that --source cloud uses.

  • A context name can be used by one workspace type only. If the name already exists for a local profile or a Devolutions Server, choose another name or delete the other context first.

  • Browser sign-in needs your operating system's secure store. See What data Devolutions CLI sends.

  • Sign-in fails or the session expired? See Sign-in fails or the session expired.

Next

Last updated

Was this helpful?