How to Install Snowflake CLI in PostgreSQL

Galaxy Glossary

How do I install the Snowflake SnowSQL CLI?

Install SnowSQL, Snowflake’s command-line client, on macOS, Linux, or Windows and connect it to your data warehouse.

Sign up for the latest in SQL knowledge from the Galaxy Team!
Welcome to the Galaxy, Guardian!
Oops! Something went wrong while submitting the form.

Description

Why use the SnowSQL CLI instead of the UI?

SnowSQL automates scripting, bulk loading, and CI/CD tasks that are tedious in the web interface while giving you full SQL access in any terminal.

Which operating systems are supported?

SnowSQL offers signed installers for macOS (Intel/Apple Silicon), Windows 10/11, and popular Linux distros such as Ubuntu, CentOS, and Amazon Linux.

How do I install SnowSQL on macOS with Homebrew?

Run brew install --cask snowflake-snowsql then confirm with snowsql -v.Homebrew handles updates via brew upgrade.

How do I install SnowSQL on Linux with the RPM/DEB package?

Download the package from the Snowflake UI, then install with sudo rpm -i snowflake-snowsql-*.x86_64.rpm (RHEL, CentOS) or sudo dpkg -i snowflake-snowsql-*.amd64.deb (Ubuntu, Debian).

How do I install SnowSQL on Windows?

Download SnowSQL-x.y.z.msi, run the wizard, and tick “Add SnowSQL to PATH.” Verify in PowerShell with snowsql -v.

How do I connect SnowSQL to my Snowflake account?

Create a ~/.snowsql/config file:

[connections]
accountname.snowflakecomputing.com=
user=
password=
warehouse=COMPUTE_WH
database=PRODUCTION
schema=PUBLIC

How do I test the connection?

Run snowsql -a -u -q "SELECT current_version();" to confirm your account credentials and network access.

Can I bulk-load ecommerce data with SnowSQL?

Yes.Use COPY INTO from an external stage or local files to populate Customers, Orders, and Products tables quickly.

Best practices for secure automation?

Store passwords in environment variables or use key-pair authentication. Avoid plaintext credentials in CI logs.

How do I upgrade or uninstall SnowSQL?

macOS: brew upgrade snowflake-snowsql or brew uninstall snowflake-snowsql. Linux: sudo rpm -U/sudo dpkg -r. Windows: remove via “Apps & Features.”

.

Why How to Install Snowflake CLI in PostgreSQL is important

How to Install Snowflake CLI in PostgreSQL Example Usage


-- Export recent Orders from PostgreSQL to CSV
\copy (SELECT * FROM Orders WHERE order_date >= CURRENT_DATE - INTERVAL '7 days') TO '/tmp/orders.csv' CSV

-- Load the CSV into Snowflake via SnowSQL
snowsql -a acme_eu -u etl_user -q "PUT file:///tmp/orders.csv @~/staging auto_compress=TRUE; COPY INTO Orders FROM @~/staging/orders.csv.gz FILE_FORMAT=(type=csv field_delimiter=',');"

How to Install Snowflake CLI in PostgreSQL Syntax


# macOS Homebrew
brew install --cask snowflake-snowsql

# Linux RPM (CentOS/RHEL)
wget https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.29-linux_x86_64.rpm
sudo rpm -i snowsql-1.2.29-linux_x86_64.rpm

# Linux DEB (Ubuntu/Debian)
wget https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.29-linux_x86_64.deb
sudo dpkg -i snowsql-1.2.29-linux_x86_64.deb

# Windows (PowerShell)
msiexec /i "SnowSQL-1.2.29.msi" /quiet INSTALLDIR="C:\\SnowSQL" ADD_PATH=1

# Connect and load ecommerce data
snowsql -a acme_eu -u etl_user -q "COPY INTO Customers FROM @%Customers FILE_FORMAT=(type=csv field_delimiter=',' skip_header=1);"

Common Mistakes

Frequently Asked Questions (FAQs)

Do I need admin rights to install SnowSQL?

Yes on Windows and Linux RPM/DEB. Homebrew installs can work without sudo if Homebrew is in user space.

Can I manage multiple Snowflake accounts?

Create named connection profiles in ~/.snowsql/config and call them with -c profile_name.

How do I proxy SnowSQL through a corporate firewall?

Set https_proxy and no_proxy environment variables before running SnowSQL.

Want to learn about other SQL terms?

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie
BauHealth Logo
Truvideo Logo
Welcome to the Galaxy, Guardian!
Oops! Something went wrong while submitting the form.