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
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> --oauthYour 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-authAvailable 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.
Check and end the session
devo statusshows the current context and whether it has a sign-in. Add--onlineto contact Devolutions Server and confirm that the sign-in still works.devo infoshows information about your Devolutions Server. Add--privateto include the information that needs your sign-in.devo logoutclears 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> --yesremoves the context and its stored session.
Good to know
--timeoutsets how long, in seconds, Devolutions CLI waits for each sign-in request: from3to600,15by default.--no-set-currentsaves the context without making it the current one. If no Devolutions Server context is current yet, it still becomes the one that--source serveruses.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 referenceslists 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?