Snowflake CLI is an open-source command-line interface designed for developers building applications and managing workloads on Snowflake. It supports tasks across Streamlit in Snowflake, the Snowflake Native App Framework, Snowpark Container Services, and general SQL operations. The library maintains an active development pace with frequent, often monthly or bi-monthly, releases and major version updates introducing significant behavior changes.
pip install snowflake-cliNo compatibility data collected yet for this library.
This quickstart demonstrates how to install Snowflake CLI, configure a new connection, and execute a basic SQL query. It also shows how to initialize a project from a template. For authentication, it relies on environment variables or an interactively configured `config.toml` file.
Upgrade your Python environment to version 3.10 or higher.
Update existing scripts and workflows to use the new command syntax. Refer to the official release notes for a complete list of changes.
Transition from SnowSQL to Snowflake CLI. The `snow helpers import-snowsql-connections` command can assist in migrating existing SnowSQL connection configurations.
Set the correct file permissions using `chown $USER config.toml` and `chmod 0600 config.toml`.
Install the CLI using `pipx install snowflake-cli` (recommended) or `pip install snowflake-cli`, and ensure your shell's PATH includes the directory where pipx/pip installs executables (often `~/.local/bin`).
Verify your connection details in your `~/.snowflake/config.toml` file, environment variables, or by explicitly providing them via command-line arguments (e.g., `--connection <name>`, `--account <account_id>`).
Consult the `snowflake --help` and `snowflake <subcommand> --help` outputs to find the correct command name and its subcommands (e.g., `snowflake native-app init`, `snowflake streamlit deploy`).
Set a default connection using `snowflake connection set <connection_name>` or specify the connection for the command using the `--connection <connection_name>` flag.