Skip to main content

Dremio CLI

A comprehensive command-line interface for Dremio Cloud and Dremio Software.

🚀 Features

  • 100% API Coverage - Complete support for all Dremio APIs
  • Dual Platform Support - Works with both Dremio Cloud and Software
  • Profile Management - Easily switch between environments
  • Rich Output - Table, JSON, and YAML formatting
  • Comprehensive Documentation - Detailed guides for every feature

📦 Installation

pip install alt-dremio-cli

⚡ Quick Start

# Configure a 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.summary" \
  --sql "SELECT * FROM customers WHERE region = 'US'"

📚 Documentation

Complete Documentation (GitHub) →

(Use the link above if browsing on PyPI)

Core Guides

  • Installation - Setup and configuration
  • Profiles - Manage connection profiles
  • Catalog - Browse and navigate data
  • SQL - Execute queries and analyze plans
  • Jobs - Monitor query execution

Data Management

Governance & Security

Dremio-as-Code (GitOps)

Productivity

🎯 Key Features

Catalog Operations

Browse and navigate your Dremio catalog with ease.

alt-dremio-cli catalog list
alt-dremio-cli catalog get <id>
alt-dremio-cli catalog get-by-path "MySpace.MyFolder.MyView"

SQL Execution

Execute queries, explain plans, and validate syntax.

alt-dremio-cli sql execute "SELECT * FROM table"
alt-dremio-cli sql execute --file query.sql --async
alt-dremio-cli sql explain "SELECT * FROM table"
alt-dremio-cli sql validate "SELECT * FROM table"

Source Management

Connect to and manage data sources.

alt-dremio-cli source list
alt-dremio-cli source create --name MyDB --type POSTGRES --config-file db.json
alt-dremio-cli source refresh <id>

View Management

Create and manage virtual datasets.

alt-dremio-cli view create --path "Analytics.summary" --sql "SELECT * FROM data"
alt-dremio-cli view update <id> --sql "SELECT * FROM updated_data"
alt-dremio-cli view list --space Analytics

Job Management

Monitor and manage query jobs.

alt-dremio-cli job list
alt-dremio-cli job get <id>
alt-dremio-cli job results <id> --output-file results.json
alt-dremio-cli job profile <id> --download profile.zip

Access Control

Manage permissions and grants.

alt-dremio-cli grant list <catalog-id>
alt-dremio-cli grant add <id> --grantee-type ROLE --grantee-id analyst --privileges SELECT
alt-dremio-cli user list
alt-dremio-cli role list

🔧 Configuration

Profile-Based Configuration

# Create profile
alt-dremio-cli profile create --name prod --type cloud \
  --base-url https://api.dremio.cloud \
  --project-id <project-id> \
  --token <pat-token>

# Use profile
alt-dremio-cli --profile prod catalog list

# Set default profile
alt-dremio-cli profile set-default prod

Environment Variables

# Set in .env file
DREMIO_BASE_URL=https://dremio.company.com
DREMIO_USERNAME=admin
DREMIO_PASSWORD=secret

📊 Output Formats

# Table format (default)
alt-dremio-cli catalog list

# JSON format
alt-dremio-cli --output json catalog list

# YAML format
alt-dremio-cli --output yaml catalog list

🌐 Platform Support

Feature Software Cloud
Catalog Operations ✅ ✅
SQL Execution ✅ ⚠️ Limited
Job Management ✅ ✅
View Management ✅ ✅
Source Management ✅ ✅
Grant Management ✅ ✅
User/Role Management ✅ ⚠️ Via Console

💻 Development

# Clone repository
git clone https://github.com/developer-advocacy-dremio/dremio-python-cli.git
cd dremio-python-cli/dremio-cli

# Install in development mode
pip install -e .

# Run tests
pytest

# Run live tests
python scripts/test_sql_operations.py

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

🔗 Links

🆘 Support

For issues and questions:

Metadata

Release files for alt-dremio-cli 1.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alt-dremio-cli 1.11.0
File Size Uploaded
alt_dremio_cli-1.11.0.tar.gz 106.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alt-dremio-cli 1.11.0
File Interpreter ABI Platform
alt_dremio_cli-1.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 192.4 kB

Release files / alt_dremio_cli-1.11.0.tar.gz

Download URL alt_dremio_cli-1.11.0.tar.gz
Size 106.6 kB
Tags Source
SHA-256 checksum
How to use checksums
923724fe91de3679a1a4e4eab776a850db0e411eb337e37e03ac8c4042e0e18d
BLAKE2b-256 checksum
How to use checksums
8c7689d14e79f62d5c859c164339515662a3ef11a2f7fb137c0d50b3e3b1282c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release files / alt_dremio_cli-1.11.0-py3-none-any.whl

Download URL alt_dremio_cli-1.11.0-py3-none-any.whl
Size 85.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4237c65719a363bd78c3bcb9221b95ad61cb1dbd7d17c32e7e67f69da8dcdfa
BLAKE2b-256 checksum
How to use checksums
7375ae8a0c0391c8dd327ac85aed5873bfb609ad520cd9d688449f0d3a9f3efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.11.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page