Authentication¶
rio auth¶
Login and token management
rio auth [OPTIONS] COMMAND [ARGS]...
login¶
Log into your rapyuta.io account.
This is the first step to start using the CLI.
You can log in with your email and password or just with and auth token if you already have one. The command works in an interactive mode by default and will prompt you to enter your credentials and select the organization and project you want to work with.
You can also use the command in non-interactive mode by providing the email and password as arguments and setting the –no-interactive or –silent flag. In this mode, you can also set the organization and project using the –organization and –project flags. If you do not provide the organization and project, you will have to set them later using the rio organization select and rio project select commands.
Note: If you have special characters in your password, then consider putting them in quotes to avoid the terminal from interpreting them otherwise.
Usage Examples:
Login interactively
$ rio auth login
Login interactively with email and password
$ rio auth login –email YOUR_EMAIL –password YOUR_PASSWORD
Login non-interactively with email and password
$ rio auth login –email YOUR_EMAIL –password YOUR_PASSWORD –no-interactive
Login non-interactively with email, password, organization and project
$ rio auth login –email YOUR_EMAIL –password YOUR_PASSWORD –organization YOUR_ORG –project YOUR_PROJECT –silent
Login with auth token
$ rio auth login –auth-token YOUR_AUTH_TOKEN
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, --interactive, --no-interactive, --silent¶
Make login interactive
- --auth-token <auth_token>¶
Login with auth token only
logout¶
Log out from your rapyuta.io account.
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.
rio auth refresh-token [OPTIONS]
Options
- --password <password>¶
Password for the rapyuta.io account
- --interactive, --interactive, --no-interactive, --silent¶
Make login interactive
status¶
Shows the current login status.
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
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