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
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
Run
devo loginwith a context name of your choice:devo login <context-name> --cloud https://<your-organization>.devolutions.app --oauthYour 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
Put the application secret in an environment variable or a file that only you can read. Don't type it on the command line.
Run
devo loginwith 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.
For pipelines, see Sign in from a CI pipeline.
Check and end the session
devo statusshows the current context and whether it has a sign-in. Add--onlineto contact Devolutions Cloud and confirm that the sign-in still works.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 Cloud context is current yet, it still becomes the one that--source clouduses.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?