Complete documentation for the Dremio Command Line Interface.
- Installation - Install and set up the Dremio CLI
- Profiles - Configure connection profiles for Cloud and Software
- Catalog - Browse and navigate the Dremio catalog
- SQL - Execute SQL queries, explain plans, validate syntax
- Jobs - Monitor and manage query jobs
- Sources - Manage data source connections
- Views - Create and manage virtual datasets
- Tables - Promote and configure physical datasets
- Reflections - Manage reflections for acceleration
- Scripts - Manage scripts (Cloud only)
- Spaces & Folders - Organize your data catalog
- Tags & Wiki - Document and categorize datasets
- Grants - Manage access control and permissions
-
Users - User account management
-
Roles - Role-based access control
-
Dremio-as-Code Guide - GitOps for Dremio
# Install
pip install alt-dremio-cli
# Configure profile
alt-dremio-cli profile create --name myprofile --type software \
--base-url https://dremio.company.com \
--username admin --password secret
# List catalog
alt-dremio-cli catalog list
# Execute SQL
alt-dremio-cli sql execute "SELECT * FROM customers LIMIT 10"
# Create a view
alt-dremio-cli view create --path "Analytics.customer_summary" \
--sql "SELECT id, name, email FROM customers"Data Exploration:
Data Engineering:
- Sources - Connect to data systems
- Tables - Configure physical datasets
- Views - Create virtual datasets
Data Governance:
- Tags & Wiki - Document datasets
- Grants - Control access
- Users & Roles - Manage users
Organization:
- Spaces & Folders - Structure your catalog
- Tags & Wiki - Categorize and document
alt-dremio-cli catalog list # List catalog items
alt-dremio-cli catalog get <id> # Get item details
alt-dremio-cli catalog get-by-path <path> # Get by pathalt-dremio-cli sql execute <query> # Execute SQL
alt-dremio-cli sql explain <query> # Show execution plan
alt-dremio-cli sql validate <query> # Validate syntaxalt-dremio-cli source list # List sources
alt-dremio-cli source create # Create source
alt-dremio-cli source refresh <id> # Refresh metadataalt-dremio-cli view list # List views
alt-dremio-cli view create # Create view
alt-dremio-cli view update <id> # Update viewalt-dremio-cli job list # List jobs
alt-dremio-cli job get <id> # Get job details
alt-dremio-cli job results <id> # Get results
alt-dremio-cli job cancel <id> # Cancel jobalt-dremio-cli space create --name <name> # Create space
alt-dremio-cli folder create --path <path> # Create folderalt-dremio-cli grant list <id> # List grants
alt-dremio-cli grant add <id> # Add grant
alt-dremio-cli user list # List users
alt-dremio-cli role list # List roles| Feature | Software | Cloud |
|---|---|---|
| Catalog Operations | ✅ | ✅ |
| SQL Execution | ✅ | |
| Job Management | ✅ | ✅ |
| View Management | ✅ | ✅ |
| Source Management | ✅ | ✅ |
| Space/Folder Management | ✅ | ✅ |
| Tags & Wiki | ✅ | ✅ |
| Grant Management | ✅ | ✅ |
| User Management | ✅ | |
| Role Management | ✅ | |
| Table Operations | ✅ | ✅ |
- Use profiles - Configure multiple profiles for different environments
- JSON output - Use
--output jsonfor scripting - Verbose mode - Add
--verbosefor debugging - File-based operations - Store SQL queries and configs in files
- Async execution - Use
--asyncfor long-running queries
# 1. Create source
alt-dremio-cli source create --name MyDB --type POSTGRES --config-file db.json
# 2. Create space
alt-dremio-cli space create --name Analytics
# 3. Create view
alt-dremio-cli view create --path "Analytics.sales_summary" \
--sql "SELECT date, SUM(amount) FROM sales GROUP BY date"
# 4. Grant access
alt-dremio-cli grant add <view-id> --grantee-type ROLE \
--grantee-id analyst --privileges SELECT# List recent jobs
alt-dremio-cli job list --max-results 10
# Get job details
alt-dremio-cli job get <job-id>
# Download profile
alt-dremio-cli job profile <job-id> --download profile.zip# Add wiki
alt-dremio-cli wiki set <id> --file README.md
# Add tags
alt-dremio-cli tag set <id> --tags "production,sensitive,pii"# General help
alt-dremio-cli --help
# Command help
alt-dremio-cli <command> --help
# Subcommand help
alt-dremio-cli <command> <subcommand> --helpSee LICENSE file for details.