SETUP SNOWSQL ON MAC

Scott Andersen
3 min readSep 30, 2023

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.

You will need to have a profile configured on your Terminal with Homebrew package manager installed on your machine.

I have Anaconda setup on my Mac to manage environment variables, you do not need it for this but is considered best practice to organize packages and libraries for different types of environments depending on your use case.

List your current env variables in Anaconda:

Terminal Command:

% conda env list

Examples:

  1. base
  2. snowflake
  3. webdev

Installing SnowSQL

There are a few ways to install the SnowSQL — CLI client, in this case we will be using the Homebrew Cask MacOS configuration method for ZSH (Z Shell)

Terminal Command:

brew install --cask snowflake-snowsql

Note: The SnowSQL installer installs the executable in /Applications/SnowSQL.app/Contents/MacOS/snowsql and appends this path to the PATH or alias entry in ~/.profile.

--

--