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:
A Homebrew cask install works for every account on this Mac. It registers /etc/paths.d/snowflake-cli and doesn’t edit shell startup files.
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:
The installer copies the application to ~/Applications or /Applications. Open a new terminal after you install.
A machine-wide install in /Applications registers /etc/paths.d/snowflake-cli. It doesn’t edit shell startup files.
An install for your account adds a PATH entry to ~/.zprofile for zsh, or to the first existing login profile for Bash: ~/.bash_profile, ~/.bash_login, or ~/.profile. If none of those files exists, or if you use another shell, add this line to your shell configuration and open a new terminal:
Remove PATH entries from older installers¶
Older macOS package installers, including older Homebrew cask installs, appended export PATH= lines to shell startup files. Those lines can keep an outdated snow ahead of the current one.
-
Preview the lines the command would remove:
-
Remove them:
-
Open a new terminal.
The command copies each file it changes before editing it. For details, see snow helpers clean-installer-path.
-
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.