Depictio CLI Usage¶
Note about the CLI
The depictio-cli is a command line interface that allows you to interact with the Depictio backend. It is used to register projects information including workflow files metadata. The depictio-cli is currently in development and is not yet ready for production use.
๐ Table of Contents¶
- Installation
- Quick Reference
- Global Options
- ๐ Commands
- ๐ Run Command
- ๐ Config Commands
- ๐ Data Commands
- ๐ Dashboard Commands
- ๐พ Backup Commands
- ๐ ๏ธ Common Use Cases
Installation¶
See the installation guide for instructions on how to install the depictio-cli.
Quick Reference¶
| Command | Description | Access Level |
|---|---|---|
version |
Show CLI version | All users |
run |
Execute complete workflow | All users |
config show-cli-config |
Display CLI configuration | All users |
config check-s3-storage |
Validate S3 storage setup | All users |
config check-server-accessibility |
Test server connection | All users |
config validate-project-config |
Validate project configuration | All users |
config sync-project-config-to-server |
Sync project config to server | All users |
data scan |
Scan project files | All users |
data process |
Process data collections | All users |
dashboard validate |
Validate dashboard YAML file locally | All users |
dashboard import |
Import dashboard YAML to server | All users |
dashboard export |
Export dashboard to YAML file | All users |
backup create |
Create system backup | Admin only |
backup list |
List available backups | Admin only |
backup validate |
Validate backup against models | Admin only |
backup restore |
Restore from backup | Admin only |
backup check-coverage |
Check validation coverage | Admin only |
Global Options¶
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--verbose |
-v |
boolean |
false |
Enable verbose logging |
--verbose-level |
-vl |
string |
"INFO" |
Set verbose logging level |
๐ Commands¶
๐ Run Command¶
๐ฌ ๐ฅ๏ธ `depictio-cli run` command example
Execute the complete Depictio workflow: validate โ sync โ scan โ process
Quick Start:
Pipeline Steps:
- โ Check server accessibility
- โ Check S3 storage configuration
- โ Validate project configuration
- โ Sync project configuration to server
- โ Scan data files
- โ Process data collections
๐ Basic Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--project-config-path |
string |
"" |
Pipeline configuration file path |
--workflow-name |
string |
null |
Specific workflow to process |
--data-collection-tag |
string |
null |
Data collection tag to process |
โ๏ธ Flow Control Options
| Parameter | Type | Default | Description |
|---|---|---|---|
--skip-server-check |
boolean |
false |
Skip server accessibility check |
--skip-s3-check |
boolean |
false |
Skip S3 storage validation |
--skip-sync |
boolean |
false |
Skip config sync to server |
--skip-scan |
boolean |
false |
Skip data scanning step |
--skip-process |
boolean |
false |
Skip data processing step |
๐ Sync & Scan Options
| Parameter | Type | Default | Description |
|---|---|---|---|
--update-config |
boolean |
false |
Update project configuration on server |
--rescan-folders |
boolean |
false |
Reprocess all runs for data collection |
--sync-files |
boolean |
false |
Update files for data collection |
--overwrite |
boolean |
false |
Overwrite workflow if it already exists |
๐ฅ๏ธ Output & Control
| Parameter | Type | Default | Description |
|---|---|---|---|
--rich-tables |
boolean |
false |
Show detailed execution summary |
--continue-on-error |
boolean |
false |
Continue execution on step failure |
--dry-run |
boolean |
false |
Show execution plan without running |
Examples:
# With detailed output and error handling
depictio-cli run \
--project-config-path ./config.yaml \
--continue-on-error \
--rich-tables
# Preview execution without running
depictio-cli run \
--project-config-path ./config.yaml \
--dry-run
# Skip server checks for faster execution
depictio-cli run \
--project-config-path ./config.yaml \
--skip-server-check \
--skip-s3-check
๐ Config Commands¶
Command Group: depictio-cli config
All commands in this section are part of the config command family. Use them to manage Depictio configurations and validate connections.
Manage Depictio configurations and validate connections.
config show-cli-config¶
Display the current CLI configuration.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
config check-s3-storage¶
Validate S3 storage configuration.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
config check-server-accessibility¶
Test connection to Depictio server.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
config show-depictio-project-metadata-on-server¶
Display metadata for registered projects.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--project-name |
string |
"" |
Specific project name |
config validate-project-config¶
Validate project configuration file.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--project-config-path |
string |
"" |
Pipeline configuration file path |
config sync-project-config-to-server¶
Sync project configuration to server.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--project-config-path |
string |
"" |
Pipeline configuration file path |
--update |
boolean |
false |
Update existing project configuration |
๐ Data Commands¶
Command Group: depictio-cli data
All commands in this section are part of the data command family. Use them to manage data scanning and processing operations.
Manage data scanning and processing operations.
data scan¶
Scan project files for data collections.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--project-config-path |
string |
"" |
Pipeline configuration file path |
--workflow-name |
string |
null |
Specific workflow to scan |
--data-collection-tag |
string |
null |
Data collection tag to scan |
--rescan-folders |
boolean |
false |
Reprocess all runs for data collection |
--sync-files |
boolean |
false |
Update files for data collection |
data process¶
Process data collections for workflow execution.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--project-config-path |
string |
"" |
Pipeline configuration file path |
--overwrite |
boolean |
false |
Overwrite existing workflow |
๐ Dashboard Commands¶
Command Group: depictio-cli dashboard
All commands in this section are part of the dashboard command family. Use them to manage dashboard YAML files - validate, import to server, and export from server.
Manage dashboard YAML files for the Dashboard YAML Management feature.
| Command | Description | Server Required |
|---|---|---|
validate |
Validate YAML schema locally | No |
import |
Import YAML to server | Yes (unless --dry-run) |
export |
Export dashboard to YAML | Yes |
dashboard validate¶
Validate a dashboard YAML file. Runs in two passes: schema + domain constraints (always), then server schema validation (when --config is provided).
| Parameter | Type | Default | Description |
|---|---|---|---|
yaml_file |
path |
required | Path to YAML dashboard file |
--config / -c |
string |
null |
CLI config file โ enables server schema validation (Pass 2) |
--offline |
boolean |
false |
Skip server schema check even when --config is provided |
--verbose / -v |
boolean |
false |
Show detailed validation output |
--api |
string |
from config | API base URL |
# Schema + domain only (no server needed)
depictio-cli dashboard validate my_dashboard.yaml
# Full validation including server column check
depictio-cli dashboard validate my_dashboard.yaml --config ~/.depictio/admin_config.yaml
# Force offline even when config is provided
depictio-cli dashboard validate my_dashboard.yaml --config ~/.depictio/admin_config.yaml --offline
Example Output (Success):
Validating: my_dashboard.yaml Pass 1: schema + domain constraints โ Schema + domain OK Pass 2: server schema validation โ Server schema OK โ Validation passed
Example Output (Failure โ per-component error table):
Validating: my_dashboard.yaml Pass 1: schema + domain constraints โ Schema/domain validation failed Validation Errors โโโโโโโโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ Component โ Field โ Message โ โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ โ pie-chart โ - โ Invalid visu_type 'pie' for mode='ui'. โ โ โ โ Valid values: scatter, line, bar, box, histogram โ โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
dashboard import¶
Import a dashboard YAML file to the server. The project is determined from the YAML project_tag field or the --project option.
| Parameter | Type | Default | Description |
|---|---|---|---|
yaml_file |
path |
required | Path to YAML dashboard file |
--config / -c |
string |
null |
Path to CLI config file (required unless --dry-run) |
--project / -p |
string |
null |
Project ID (overrides project_tag in YAML) |
--overwrite |
boolean |
false |
Update existing dashboard with same title |
--dry-run |
boolean |
false |
Validate schema + domain only, don't import (no server needed) |
--offline |
boolean |
false |
Skip server schema check (column names not verified) |
--api |
string |
from config | API base URL |
# Validate locally without server (no config needed)
depictio-cli dashboard import dashboard.yaml --dry-run
# Import to server
depictio-cli dashboard import dashboard.yaml --config ~/.depictio/admin_config.yaml
# Update existing dashboard with same title
depictio-cli dashboard import dashboard.yaml --config ~/.depictio/admin_config.yaml --overwrite
# Override project from YAML
depictio-cli dashboard import dashboard.yaml --config ~/.depictio/admin_config.yaml --project 646b0f3c1e4a2d7f8e5b8c9a
Example Output:
Validating: dashboard.yaml โ Validation passed Title: Iris Dashboard Demo Components: 7 Project: Iris_Dataset_Project (from YAML project_tag) Loading CLI configuration... โ Configuration loaded API URL: localhost:8058 Importing dashboard (project: Iris_Dataset_Project)... โ Dashboard imported successfully! Dashboard ID: 6824cb3b89d2b72169309737 Title: Iris Dashboard Demo Project ID: 650a1b2c3d4e5f6a7b8c9d0e View at: localhost:8058/dashboard/6824cb3b89d2b72169309737
dashboard export¶
Export a dashboard from the server to a YAML file.
| Parameter | Type | Default | Description |
|---|---|---|---|
dashboard_id |
string |
required | Dashboard ID to export |
--config / -c |
string |
required | Path to CLI config file |
--output / -o |
path |
dashboard.yaml |
Output file path |
--api |
string |
from config | API base URL |
# Export to default file
depictio-cli dashboard export 6824cb3b89d2b72169309737 --config ~/.depictio/admin_config.yaml
# Export to specific file
depictio-cli dashboard export 6824cb3b89d2b72169309737 --config ~/.depictio/admin_config.yaml -o iris_dashboard.yaml
Example Output:
Loading CLI configuration... Exporting dashboard 6824cb3b89d2b72169309737... โ Dashboard exported to: iris_dashboard.yaml
For more information about dashboard YAML format and workflows, see Dashboard YAML Management.
๐พ Backup Commands¶
Command Group: depictio-cli backup
All commands in this section are part of the backup command family. Use them to backup and restore MongoDB database and S3 data. Admin access required.
Backup and restore system data and configurations.
backup create¶
Create a backup of the MongoDB database.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--dry-run |
boolean |
false |
Validate without creating backup |
--include-s3-data |
boolean |
false |
Include S3 deltatable data in backup |
--s3-backup-prefix |
string |
backup |
Prefix for S3 backup location |
backup list¶
List available backup files on the server.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
backup validate¶
Validate a backup file against Pydantic models.
| Parameter | Type | Default | Description |
|---|---|---|---|
backup_id |
string |
required | Backup ID to validate (YYYYMMDD_HHMMSS) |
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
backup restore¶
Restore data from a backup file. Warning: destructive operation.
| Parameter | Type | Default | Description |
|---|---|---|---|
backup_id |
string |
required | Backup ID to restore (YYYYMMDD_HHMMSS) |
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
--dry-run |
boolean |
false |
Simulate restore without making changes |
--collections |
string |
null |
Comma-separated list of collections |
--force |
boolean |
false |
Skip confirmation prompt |
backup check-coverage¶
Check validation coverage for all MongoDB collections.
| Parameter | Type | Default | Description |
|---|---|---|---|
--CLI-config-path |
string |
~/.depictio/CLI.yaml |
CLI configuration file path |
๐ ๏ธ Common Use Cases¶
๐ Quick Start¶
# 1. Validate your project configuration
depictio-cli config validate-project-config --project-config-path ./config.yaml
# 2. Run the complete workflow
depictio-cli run --project-config-path ./config.yaml
# 1. Check system status
depictio-cli config check-server-accessibility
depictio-cli config check-s3-storage
# 2. Validate and sync configuration
depictio-cli config validate-project-config --project-config-path ./config.yaml
depictio-cli config sync-project-config-to-server --project-config-path ./config.yaml
# 3. Scan and process data
depictio-cli data scan --project-config-path ./config.yaml
depictio-cli data process --project-config-path ./config.yaml
๐ง Development Workflow¶
# Preview changes without execution
depictio-cli run --project-config-path ./config.yaml --dry-run
# Test with specific workflow
depictio-cli run --project-config-path ./config.yaml --workflow-name test-workflow
# Enable verbose logging
depictio-cli run --project-config-path ./config.yaml --verbose --continue-on-error
# Skip problematic steps
depictio-cli run --project-config-path ./config.yaml --skip-server-check --skip-s3-check
๐พ Backup Operations¶
Admin Access Required
All backup operations require administrator privileges.
# Create database backup
depictio-cli backup create
# Include S3 deltatable data
depictio-cli backup create --include-s3-data
# List available backups
depictio-cli backup list
# Preview restore
depictio-cli backup restore 20240115_143052 --dry-run
# Restore specific backup
depictio-cli backup restore 20240115_143052 --force
๐ Data Management¶
# Rescan all folders
depictio-cli data scan --project-config-path ./config.yaml --rescan-folders
# Sync file updates
depictio-cli data scan --project-config-path ./config.yaml --sync-files
# Overwrite existing workflow
depictio-cli data process --project-config-path ./config.yaml --overwrite
# Update and reprocess
depictio-cli run --project-config-path ./config.yaml --update-config --overwrite