Authenticate rvs and manage local profiles
Interactive rvs sessions use browser-backed device login. The CLI never asks
for your Ravenstash password.
Sign in
Section titled “Sign in”rvs auth loginFollow the browser prompt, review the device request, and approve it. Then check the local session and verify the user with Ravenstash:
rvs auth statusrvs auth whoamiRequest a particular device-session duration when needed:
rvs auth login --duration 12hThe default is 180 days. Requested durations range from 12 hours to 180 days.
Understand users, profiles, and accounts
Section titled “Understand users, profiles, and accounts”The authenticated user is the person recorded as the actor. A local profile is named CLI configuration and a credential slot; it is not the user. An acting account is the personal account or organization used for authorization and usage attribution.
Signing in does not require a separate login for every organization. After login, choose among the accounts available to that user:
rvs account listrvs account use personalrvs account use org:acmeSee Accounts and package targets for the selection rules and terminal prompt.
Use multiple local profiles
Section titled “Use multiple local profiles”Use multiple profiles when the same computer needs separate Ravenstash users or environments:
rvs auth login --profile workrvs auth login --profile personalManage profiles with:
rvs profile listrvs profile currentrvs profile use workrvs profile rename work companyrvs profile delete personalTwo profiles may represent two different users who both belong to the same
organization. They can select the same org:... account and repositories;
Ravenstash attributes usage to the organization and retains each user as the
individual actor.
Use the intended profile before selecting its account and package target:
rvs profile use companyrvs account use org:acmervs art select platform/packagesrvs npm ciSet RVS_PROFILE when several commands in a shell should use one profile:
export RVS_PROFILE=companyCredential storage
Section titled “Credential storage”rvs stores access and rotating refresh credentials in the configured
credential store: an available operating-system keyring, an initialized pass
store, or the encrypted Ravenstash vault. Plaintext storage is available only
after an explicit insecure-storage acknowledgement. Non-secret profile,
account, and target metadata lives in ~/.rvs/config.toml.
Credentials refresh when required. Use rvs auth storage doctor to inspect the
available stores without exposing credentials.
Use an automation token
Section titled “Use an automation token”For an unattended process, inject an eligible token through RVS_TOKEN:
export RVS_TOKEN="${TOKEN_FROM_SECRET_STORE}"rvs auth whoamiRVS_TOKEN takes precedence over stored profile credentials and is not refreshed. Its
target account, explicit grants, and current source permissions determine access. An empty or invalid value fails without falling back to stored credentials.
Sign out locally
Section titled “Sign out locally”Remove the active profile’s credentials:
rvs auth logoutOr remove credentials from every local profile:
rvs auth logout --allThis does not delete repositories or revoke automation tokens. Revoke an unrecognized device session from Ravenstash account settings.

