From a terminal window, start SnowSQL from the command prompt using the following command:

$ snowsql -a <account_name>

Where <account_name> is the name assigned to your account by Snowflake (see above for details).

You can further streamline login by specifying the -u option followed by your user login name:

$ snowsql -a <account_name> -u <user_login_name>

When prompted, enter your login name (if you didn’t provide it when executing SnowSQL) and your password.

If you specified a valid account, user login name, and password, the SnowSQL prompt appears.

Tip

For security reasons, you cannot specify your password as an option on the command line; you must wait for SnowSQL to prompt you for your password.

However, if you would like to skip entering information on the command line or you need to automate login, you can provide all the required account and user credential information, as well as additional
Snowflake default usage information, as options in the SnowSQL config file.

For more detailed installation, configuration, login, and usage information, see SnowSQL (CLI Client).