Snowflake CLI
$ snow Official High RiskSnowflake CLI (snow) is Snowflake's modern open-source developer CLI replacing legacy SnowSQL for SQL queries, Snowpark, Streamlit, Native Apps, and stage management. Supports --format JSON, config.toml connection profiles, and non-interactive CI auth.
brew install snowflake-cli snow sql --format JSON and snow stage give deterministic CI/scripting control; Snowflake MCP fits natural-language Cortex/analyst querying.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Built specifically for automation with --format JSON / JSON_EXT / CSV, --query non-interactive SQL, and SNOWFLAKE_* env vars.
- Supports
--format JSON,--query, andSNOWFLAKE_*connection env vars
Supports key-pair/OAuth auth and named connection profiles, though SQL execution has full permissions of the configured Snowflake role.
- Named profiles and key-pair auth; no client-side read-only flag on
snow sql
Installable via Homebrew, PyPI (pip/uvx), and native installers across macOS, Linux, and Windows.
- Distributed via Homebrew, PyPI, and OS packages
Unifies SQL queries, stages, Snowpark, Streamlit, and Native Apps in one modern CLI.
- Covers SQL, object management, stages, and developer app lifecycles
Official snowflakedb/snowflake-cli maintained by Snowflake under Apache-2.0.
- Official
snowflakedb/snowflake-clirepository
Comprehensive official reference docs for every subcommand and config.toml option.
- Official docs at docs.snowflake.com/en/developer-guide/snowflake-cli
Security, Auth & Guardrails
Connection profiles in ~/.snowflake/config.toml (with OS keychain or private-key path), or SNOWFLAKE_* env vars.
CLI is Apache-2.0 open-source; queries consume Snowflake warehouse credits based on warehouse size and runtime.
# Snowflake CLI Agent Rules - Always pass `--format JSON` and explicit `-c <connection>` profile flags. - Scope `SELECT` queries with `LIMIT` and `EXPLAIN` to avoid scanning multi-terabyte tables. - NEVER run `DROP`, `TRUNCATE`, or `ALTER WAREHOUSE` resize commands autonomously.
Agent-Ready Command Recipes
Safe Read-Only Queries
snow sql --format JSON --query "SHOW WAREHOUSES;"
Lists accessible Snowflake warehouses and their sizes as clean JSON.
snow stage list-files @my_stage --format JSON
Checks staged files and sizes without downloading data.
Controlled Writes & Previews
snow stage copy ./build/app.zip @my_stage
Copies a build artifact to a named internal stage for Snowpark or Native App deployment.
Strengths for Agents
- + Replaces legacy SnowSQL with clean
--format JSONand--queryergonomics. - + Supports
config.tomlprofiles, key-pair auth, andSNOWFLAKE_*env vars for headless agents. - + Rich object/stage/Snowpark management beyond raw SQL.
Caveats & Pitfalls
- ! Large warehouse queries triggered via
snow sqlcan burn credits rapidly ifLIMITis omitted. - !
config.tomlfile permissions (0600) are strictly checked by the CLI.