Logging into Snowflake¶
In the early stages of getting started with Snowflake, we recommend logging in using either the web-based user interface or SnowSQL (the command line client available for download from the interface).
Then, once you’re more familiar with Snowflake, you can explore connecting to Snowflake using other methods.
In this Topic:
Your Snowflake Account Name¶
All access to Snowflake is either through your account name (provided by Snowflake) or a URL that starts with your account name and ends in
However, depending on the cloud platform (AWS or Azure) and Snowflake Region where your account is hosted, the full account name may require additional segments, as shown in the following diagram:
For example, if your account name is
Snowflake Region: Full Account Name: AWS - US West
AWS - US East
AWS - Canada
AWS - EU (Dublin)
AWS - EU (Frankfurt)
AWS - Asia Pacific (Singapore)
AWS - Asia Pacific (Sydney)
Azure - East US 2
Azure - US Gov Virginia
Azure - West Europe
Azure - Australia East
If either of the following conditions is true, your account name is different from the structure described above:
Logging in Using the Web Interface¶
To log into the Snowflake web interface:
Point your browser at the hostname provided by Snowflake for your account (see previous section for details). Note that the URL must start with
If your web browser is able to communicate with the Snowflake service, the following login screen is displayed:
Enter your credentials (user login name and password) and click Log In.
For more information about the tasks you can perform in the web interface, see Quick Tour of the Web Interface.
Logging in Using SnowSQL¶
SnowSQL is the command line client for connecting to Snowflake to execute SQL queries and perform all DDL and DML operations, including loading data into and unloading data out of database tables.
Step 1: Download and Install SnowSQL¶
SnowSQL is available for download from the web interface:
After logging into the Snowflake web interface (see above for details), go to:
In the Downloads dialog, click CLI Client (snowsql):
In the dialog, click the download icon for your platform. The downloaded file is saved as:
Run the installer for your platform:
Type the following on the terminal command line:
Follow the instructions provided by the installer.
Step 2: Connect to Snowflake and Initiate a Session¶
From a terminal window, start SnowSQL from the command prompt using the following command:
$ snowsql -a <account_name>
<account_name>is the name assigned by Snowflake. Note that when you specify your account name, you do not include the Snowflake domain name (i.e.
snowflakecomputing.com). You only include the account name (with region and cloud platform information, if necessary). For more details, see Your Snowflake Account Name (in this topic).
You can further streamline login by specifying the
-uoption 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 name, user login name, and password, the SnowSQL prompt appears.
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
For more detailed installation, configuration, login, and usage information, see SnowSQL (CLI Client).
Connecting Using Other Methods¶
In addition to the Snowflake web interface and SnowSQL, Snowflake supports numerous other methods for connecting, including:
- Using 3rd-party client services and applications that support JDBC or ODBC.
- Developing applications that connect through the Snowflake connectors/drivers for Python, Node.js, Spark, etc.
However, connecting to Snowflake using these other methods requires additional installation, configuration, and development tasks. For more information, see Connecting to Snowflake.