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

Sign in to Devolutions Server

Sign in once and Devolutions CLI saves your Devolutions Server as a context, so every later command uses it without asking again. Devolutions Server offers more sign-in methods than the other workspace types, so pick the one that matches who, or what, is signing in.

You need the address of your Devolutions Server, for example https://<your-server-address>. Use an https address.

Pick the right option

CHOOSE
WHAT HAPPENS
USE IT WHEN

Browser sign-in (--oauth)

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

You work at your own computer.

API key (--api-key-env or --api-key-file)

Devolutions CLI signs in with an API key read from an environment variable or a file.

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

Username and password (--username with --password-env or --password-file)

Devolutions CLI signs in with an account of Devolutions Server. The password is read from an environment variable or a file.

You use a Devolutions Server account, a domain account, or an application user.

Windows authentication (--windows-auth)

Devolutions CLI signs in as your current Windows account. No password to give.

You're on Windows and your Devolutions Server accepts Windows authentication.

Use exactly one method per sign-in. Devolutions CLI refuses a command that combines two.

Sign in

devo login <context-name> --server https://<your-server-address> --oauth

Your browser opens. If it doesn't, copy the address shown in the terminal into a browser.

On a computer without a browser, add --use-device-code and follow the instructions in the terminal to sign in from another device. If the sign-in page asks for a confirmation code, enter the code shown in the terminal.

Put the API key in an environment variable or a file that only you can read, then:

devo login <context-name> --server https://<your-server-address> --api-key-env <VARIABLE_NAME>

Or, from a file:

devo login <context-name> --server https://<your-server-address> --api-key-file <path-to-file>

Put the password in an environment variable or a file that only you can read, then:

devo login <context-name> --server https://<your-server-address> --username <username> --password-env <VARIABLE_NAME>
  • For a domain account, add --domain-id <domain-id>.

  • For an application user, add --as-application.

devo login <context-name> --server https://<your-server-address> --windows-auth

Available on Windows only.

Devolutions CLI checks the sign-in with your Devolutions Server before it saves the context. The new context becomes the current one.

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

Check and end the session

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

  • devo info shows information about your Devolutions Server. Add --private to include the information that needs your sign-in.

  • 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 Server context is current yet, it still becomes the one that --source server uses.

  • With a username and password or Windows authentication, the sign-in request includes your computer name and local user name. See What data Devolutions CLI sends.

  • devo entry references lists only canonical references for Devolutions Server entries. See Compare workspace types.

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

Next

Last updated

Was this helpful?