The Snowflake CLI (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/embucket/embucket/llms.txt
Use this file to discover all available pages before exploring further.
snow) provides a command-line interface for interacting with Embucket’s Snowflake-compatible API. This guide walks through installation, configuration, and common workflows.
Installation
Install the Snowflake CLI using pip:Connection Configuration
Locate Configuration File
First, find where the Snowflake CLI stores its configuration:~/.snowflake/config.toml).
Configure Local Connection
Add a connection profile for your local Embucket instance:The default credentials are
user=embucket and password=embucket. These are demo credentials for local development.Test the Connection
Verify your connection is working:Running Queries
Basic Query Execution
Execute SQL queries using thesnow sql command:
Date/Time Functions
Embucket supports Snowflake’s date and time functions:Query External Catalogs
If you’ve configured external catalogs in your metastore config, query them:Common Commands and Workflows
Schema Management
Table Operations
Data Manipulation
Interactive SQL Session
Start an interactive SQL session instead of running one-off queries:Remote Connections
Lambda Deployment
For Embucket deployed on AWS Lambda, create a new connection profile:Tips and Best Practices
Use Connection Aliases
Create multiple connection profiles for different environments (local, staging, production).
Query History
Access your query history with the up/down arrow keys in interactive mode.
Output Formats
The CLI outputs results in table format by default, making them easy to read.
Error Messages
Embucket returns Snowflake-compatible error codes for debugging failed queries.
Troubleshooting
Connection timeout errors
Connection timeout errors
- Verify Embucket is running:
docker psor check the process - Ensure the port matches your configuration (default: 3000)
- Check firewall rules if connecting to a remote instance
Authentication failed
Authentication failed
- Verify username and password match your Embucket configuration
- Default credentials are
embucket/embucketfor demo environments - For production, ensure proper credentials are configured
Database or schema not found
Database or schema not found
- Check available databases:
SHOW DATABASES; - Verify schema exists:
SHOW SCHEMAS IN database_name; - Use fully qualified names:
database.schema.table
Next Steps
dbt Integration
Use Embucket as a dbt target for local development
Querying Guide
Learn about supported SQL syntax and query patterns
Security
Configure authentication and secure your deployment
External Catalogs
Connect to AWS S3 Table Buckets and Iceberg tables