GETTING STARTEDGuide

Authenticate the CLI

Sign in once through the browser. The CLI keeps the session securely on your system.

Browser login

bash
$ movitera login
✓ Logged in as token cli-movitera-cli @ workstation (expires 2027-02-11).
Stored in OS keyring.
Default team set to Acme IT.

movitera login opens the Movitera authorization screen in your browser. After you approve, the CLI finishes the login on its own and keeps the session securely on your system. If you have no default team yet, the approved team becomes the default. If you already have one, it stays the same. To switch, run movitera team use <team>.

What you approve in the browser

The Authorize screen shows the name and version of the client requesting access to your Movitera vault. Approving creates a personal access token, which you can revoke at any time in Access tokens. Before you click Authorize, check the three fields:

  • Team — the team whose vault the CLI will access. Only teams where you have Vault access appear.
  • Token name — pre-filled with the client and machine name. This is how the token appears later in the Access tokens list.
  • Expires in — 7 days, 30 days, 90 days (the default), or 1 year. The Never expires option appears only if you have Manager under Vault access on the selected team.

Approving requires recent two-factor authentication: when needed, the confirmation opens automatically and the authorization continues after it. On success, the screen shows Authorized, you can close the tab, and the terminal finishes the login.

The request expires in 5 minutes

Each movitera login creates a request valid for 5 minutes. If the screen shows This login request expired, return to the terminal and run movitera login again.

If the screen shows an error

MessageWhat to do
This login request expiredYou took more than 5 minutes to approve. Run movitera login again and approve the new request.
This request was already handledThe link was already used or cancelled. Start a new login from the CLI.
Login request not foundThe link is no longer valid. Start a new login from the CLI.
You don't have vault accessYou need a Vault role on the selected team. Ask the team admin, then try again.
Two-factor authentication cancelled. Try again.Click Authorize again and complete the two-factor confirmation.

Authenticate in CI/CD

A server or pipeline has no browser. Create a token in Access tokens in the web app. To store it on the machine, run movitera login --token <token>, or pipe it in with movitera login --stdin. In a pipeline, expose the token to the job without storing it, as Use in CI/CD shows.

Running in CI/CD?

See Use in CI/CD to authenticate in your pipeline and run movitera run with Vault secrets.

Logout

bash
$ movitera logout
✓ Stored token removed.

movitera logout removes the session from this machine only. To cut access from anywhere — a lost laptop, for example — revoke the token in Access tokens. Any CLI using that token stops working immediately.

Next