Authentication

rio auth

Login and token management

Usage

rio auth [OPTIONS] COMMAND [ARGS]...

login

Log into your rapyuta.io account.

This is the first step to start using the CLI.

By default, login uses the OAuth 2.0 Device Authorization Flow (RFC 8628): the CLI displays a short URL and a user code. Open the URL in any browser, authenticate, and enter the code. The CLI receives the token automatically. This flow works with MFA/SSO and never exposes your password to the CLI.

Use –email YOUR_EMAIL to fall back to the email/password (ROPC) flow, which prompts for credentials directly. You can also log in with a pre-existing auth token using –auth-token.

Usage Examples:

Login using device authorization flow (default)

$ rio auth login

Login with a pre-existing auth token

$ rio auth login –auth-token YOUR_AUTH_TOKEN

Login using email and password (legacy flow)

$ rio auth login –email YOUR_EMAIL –password YOUR_PASSWORD

Non-interactive legacy login with org and project

$ rio auth login –email YOUR_EMAIL –password YOUR_PASSWORD

–organization YOUR_ORG –project YOUR_PROJECT –silent

Usage

rio auth login [OPTIONS]

Options

--email <email>

Email of the rapyuta.io account

--password <password>

Password for the rapyuta.io account

--organization <organization>

Context will be set to the organization after authentication

--project <project>

Context will be set to the project after authentication

--interactive, --no-interactive

Make login interactive

--silent

Make login non-interactive

--auth-token <auth_token>

Login with auth token only

logout

Log out from your rapyuta.io account.

Usage

rio auth logout [OPTIONS]

refresh-token

Refreshes the authentication token.

If the stores auth token has expired, this command will prompt the user to enter the password to refresh the token.

Usage

rio auth refresh-token [OPTIONS]

Options

--password <password>

Password for the rapyuta.io account

--interactive, --no-interactive

Make login interactive

--silent

Make login non-interactive

status

Shows the current login status.

Usage

rio auth status [OPTIONS]

token

Generates a new rapyuta.io auth token.

There may be times when you just need a new auth token. This command will generate a new token for you based on the level you specify. The default level is 0. You will have to specify a valid email and password.

The token levels are as follows: 0 = low, 24 hours 1 = medium, 7 days 2 = high, 30 days

Usage

rio auth token [OPTIONS]

Options

--email <email>

Email of the Rapyuta.io account

--password <password>

Password for the Rapyuta.io account

--level <level>

Level of the token. 0 = low, 1 = med, 2 = high