Logging into Snowflake

When logging into Snowflake for the first time, we recommend 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 and URL

All access to Snowflake is either through an account name provided by Snowflake or a URL that incorporates the name of your account.

The format of the URL domain is different depending on the Snowflake Region where your account is located:

US West:<account_name>.snowflakecomputing.com
Other regions:<account_name>.<region_id>.snowflakecomputing.com

Where:

  • <account_name> is the name of your account (provided by Snowflake).

  • <region_id> is:

    Snowflake Region Region ID
    US East us-east-1
    EU (Frankfurt) eu-central-1
    Asia Pacific (Sydney) ap-southeast-2

For example, if your account name is abc123:

  • In US West, the URL would be abc123.snowflakecomputing.com.
  • In EU (Frankfurt), the URL would be abc123.eu-central-1.snowflakecomputing.com.

Logging into the Web Interface

To log into the Snowflake web interface:

  1. Point your browser at the URL provided by Snowflake for your account (see above for details).

    If your web browser is able to communicate with the Snowflake service, the following login screen is displayed:

    Snowflake web interface login page
  2. 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 the Command Line Client (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.

Downloading and Installing SnowSQL

SnowSQL is available for download from the web interface:

  1. After logging into the Snowflake web interface (see above for details), go to:

    Help > Download...

  2. In the Downloads dialog, click CLI Client (snowsql):

    CLI Client (SnowSQL) option in Downloads dialog
  3. In the dialog, click the download icon for your platform. The downloaded file is saved as:

    Windows:snowsql-windows_x86_64.msi
    Linux:snowsql-linux_x86_64.bash
    Mac OS:snowsql-darwin_x86_64.pkg
  4. Run the installer for your platform:

    Windows:Double-click the snowsql-windows_x86_64.msi file.
    Linux:Type bash snowsql-linux_x86_64.bash on the terminal command line.
    Mac OS:Double-click the snowsql-darwin_x86_64.pkg file.
  5. Follow the instructions provided by the installer.

Connecting to Snowflake using SnowSQL

  1. 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>
    
  2. 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).

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, or Spark.

However, connecting to Snowflake using these other methods requires additional installation, configuration, and development tasks. For more information, see Connecting to Snowflake.