Installing Snowflake CLI¶
Snowflake CLI is how you develop on Snowflake from the command line, from running SQL to building Snowpark, Streamlit, DCM and Native App projects. Run the Snowflake installer, and use snow upgrade to move to the latest release of the same major version.
Snowflake CLI runs on all supported platforms.
Install the CLI¶
-
Run the standalone installer:
-
In the terminal where you ran the installer, run:
The installer asks before it adds
~/.local/share/snowflake-cli/binto your shell profile. After you accept, open a new terminal and skip this export. -
Check the installation:
-
Run the installer:
-
In the terminal where you ran the installer, run:
The installer asks before it adds
~/.local/share/snowflake-cli/binto your shell profile. After you accept, open a new terminal and skip this export. -
Check the installation:
-
In PowerShell, run the installer:
-
Open a new terminal and check the installation:
Upgrade an installation¶
snow upgrade updates a standalone install to the latest release of the same major version. It doesn’t install the next major version.
Homebrew, pip, pipx, uv, and the package installers are left unchanged. The command prints the standalone installer command instead.
See snow upgrade for --revert and --dry-run.
Enable automatic upgrades¶
Add this to config.toml:
Automatic upgrades apply only to a standalone install. For the environment variable and other options, see Enable automatic upgrades.
Install with an OS tool¶
Install with Homebrew or the macOS package installer.
Homebrew¶
Homebrew formula¶
The community formula builds from source.
-
Install Snowflake CLI:
-
Upgrade later with:
Snowflake tap¶
The Snowflake tap installs the official binary.
-
Add the tap:
-
Trust the cask:
-
Install Snowflake CLI:
-
Upgrade later with:
Install the macOS package¶
-
Check which package matches this Mac:
arm64is Apple silicon.x86_64is Intel. -
Download the package from the Snowflake CLI repository. Open
darwin_arm64ordarwin_x86_64, then the highest version: -
Open the
.pkgand follow the installer. -
Open a new terminal and check the installation:
If the shell can’t find snow after you installed for your account, add this line to your shell configuration and open a new terminal:
-
Check the architecture:
aarch64is ARM.x86_64is Intel or AMD. -
Download the package from the Snowflake CLI repository. Open
linux_aarch64orlinux_x86_64, then the highest version: -
Install the package.
Debian and Ubuntu:
RHEL, CentOS, and Fedora:
Use the file that matches this machine.
-
Check the installation:
-
Download the installer from the Snowflake CLI repository. Open
windows_x86_64, then the highest version:For version 3.32.1, the file is
snowflake-cli-3.32.1.0-x86_64.msi. -
Run the installer.
-
Open a new terminal and check the installation:
Install with Python¶
Requires Python 3.11 or later.
Install for FIPS¶
Install Snowflake CLI from source in a container whose Python is linked against a FIPS-enabled OpenSSL. The image also needs a C compiler, Python development headers, and access to PyPI or your internal package index.
-
Create and activate a virtual environment:
-
Install the packages from source:
-
Confirm the OpenSSL build:
Enable command auto-completion¶
-
Install completion:
-
Restart the shell. Completion is available for
bash,zsh,fish, and PowerShell.