Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Snowflake CLI

$ snow Official High Risk
Snowflake · Database & Data · Apache-2.0 · macos / linux / windows

Snowflake 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install snowflake-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

snow sql --format JSON and snow stage give deterministic CI/scripting control; Snowflake MCP fits natural-language Cortex/analyst querying.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Built specifically for automation with --format JSON / JSON_EXT / CSV, --query non-interactive SQL, and SNOWFLAKE_* env vars.

  • Supports --format JSON, --query, and SNOWFLAKE_* connection env vars
Trust & Safety 19 / 25

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
Setup & Portability 13 / 15

Installable via Homebrew, PyPI (pip/uvx), and native installers across macOS, Linux, and Windows.

  • Distributed via Homebrew, PyPI, and OS packages
Utility & Efficiency 14 / 15

Unifies SQL queries, stages, Snowpark, Streamlit, and Native Apps in one modern CLI.

  • Covers SQL, object management, stages, and developer app lifecycles
Maintenance & Lineage 9 / 10

Official snowflakedb/snowflake-cli maintained by Snowflake under Apache-2.0.

  • Official snowflakedb/snowflake-cli repository
Docs & Verifiability 8 / 10

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

Auth Modes
Config File Env API Key OAuth Browser OS Keychain
Credential Storage

Connection profiles in ~/.snowflake/config.toml (with OS keychain or private-key path), or SNOWFLAKE_* env vars.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is Apache-2.0 open-source; queries consume Snowflake warehouse credits based on warehouse size and runtime.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run a metadata SQL query in JSON
snow sql --format JSON --query "SHOW WAREHOUSES;"

Lists accessible Snowflake warehouses and their sizes as clean JSON.

Inspect a Snowflake stage file listing
snow stage list-files @my_stage --format JSON

Checks staged files and sizes without downloading data.

Controlled Writes & Previews

Upload a local artifact to a Snowflake stage
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 JSON and --query ergonomics.
  • + Supports config.toml profiles, key-pair auth, and SNOWFLAKE_* env vars for headless agents.
  • + Rich object/stage/Snowpark management beyond raw SQL.

Caveats & Pitfalls

  • ! Large warehouse queries triggered via snow sql can burn credits rapidly if LIMIT is omitted.
  • ! config.toml file permissions (0600) are strictly checked by the CLI.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI