config:check
rai config:check
Check whether the active profile is valid. If the profile is valid, the command attempts to connect to the platform using the credentials specified in the profile to verify that the connection can be established. If the connection is successful, the command automatically creates a new RAI engine for you if the configured engine does not exist, or resumes the configured engine if it is suspended.
Options
Section titled “Options”None.
Example
Section titled “Example”Use the config:check
command to check whether the currently activated configuration profile is valid.
If the configuration is missing required fields, the command will return an error message:
$ rai config:check
---------------------------------------------------
▰▱▱▱ Connecting to platform...
Error: Missing config value for 'password'
---------------------------------------------------
If all required fields are present, the command attempts to connect to the platform using the provided credentials. If the connection succeeds, the command returns a success message:
$ rai config:check
---------------------------------------------------
▰▰▰▰ Connection successful!
---------------------------------------------------
If the connection is unsuccessful, the command displays an error message with details about the failure:
$ rai config:check
---------------------------------------------------
▱▱▰▰ Connecting to platform...
Error: 250001 (08001): Failed to connect to DB:my-swnoflake-account.snowflakecomputing.com:443. Incorrect usernameor password was specified.
---------------------------------------------------