GUIDEGuide
Generate a TOTP code
movitera totp prints the current code for a credential that has an OTPAUTH_URI field in Vault.
Use the credential id
bash
$ movitera totp <credential-id>
123456
(valid until 2026-05-25T18:31:00Z)The first stdout line contains only the code. That keeps $(movitera totp <credential-id>) usable in scripts.
Find the id
bash
$ movitera creds list --search github
NAME KIND TAGS ID
github-admin login production cred_github_adminPick interactively
In an interactive terminal, omit the id. The CLI lists credentials for the team and returns the id for the selected row.
bash
$ movitera totp --team <team-id>