Snowflake CLI

3.16.0 · active · verified Fri Apr 17

The `snowflake-cli-labs` package provides the official Snowflake Command Line Interface (CLI), a powerful tool for interacting with Snowflake accounts, managing objects, and deploying applications like Snowpark Container Services or Streamlit apps. It's developed by Snowflake-Labs, with version 3.16.0 currently active. Releases typically align with Snowflake platform updates and feature developments.

Common errors

Warnings

Install

Imports

Quickstart

The Snowflake CLI is primarily used via the `snow` command in your terminal. This quickstart demonstrates verifying installation, configuring a connection, and running a basic SQL query.

# 1. Verify installation and see available commands
snow --help

# 2. Add a new connection profile (replace with your details)
# This will prompt for your Snowflake account URL, username, and password.
# The 'default' profile is used if no other is specified.
snow connection add --name default

# 3. List existing connection profiles
snow connection list

# 4. Run a simple SQL query
snow sql -q "SELECT current_version();"

view raw JSON →