Skip to content

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

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

depictio-cli run [OPTIONS]

Quick Start:

depictio-cli run --project-config-path ./config.yaml

Pipeline Steps:

  1. โœ… Check server accessibility
  2. โœ… Check S3 storage configuration
  3. โœ… Validate project configuration
  4. โœ… Sync project configuration to server
  5. โœ… Scan data files
  6. โœ… 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:

# Complete workflow execution
depictio-cli run --project-config-path ./config.yaml
# 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.

depictio-cli config show-cli-config [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
depictio-cli config show-cli-config

config check-s3-storage

Validate S3 storage configuration.

depictio-cli config check-s3-storage [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
depictio-cli config check-s3-storage

config check-server-accessibility

Test connection to Depictio server.

depictio-cli config check-server-accessibility [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
depictio-cli config check-server-accessibility

config show-depictio-project-metadata-on-server

Display metadata for registered projects.

depictio-cli config show-depictio-project-metadata-on-server [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
--project-name string "" Specific project name
depictio-cli config show-depictio-project-metadata-on-server --project-name my-project

config validate-project-config

Validate project configuration file.

depictio-cli config validate-project-config [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
--project-config-path string "" Pipeline configuration file path
depictio-cli config validate-project-config --project-config-path ./config.yaml

config sync-project-config-to-server

Sync project configuration to server.

depictio-cli config sync-project-config-to-server [OPTIONS]
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
depictio-cli config sync-project-config-to-server --project-config-path ./config.yaml --update

๐Ÿ“Š 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.

depictio-cli data scan [OPTIONS]
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
depictio-cli data scan --project-config-path ./config.yaml --workflow-name my-workflow

data process

Process data collections for workflow execution.

depictio-cli data process [OPTIONS]
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
depictio-cli data process --project-config-path ./config.yaml --overwrite

๐Ÿ“ˆ 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).

depictio-cli dashboard validate <yaml_file> [OPTIONS]
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.

depictio-cli dashboard import <yaml_file> [OPTIONS]
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.

depictio-cli dashboard export <dashboard_id> [OPTIONS]
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.

depictio-cli backup create [OPTIONS]
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
depictio-cli backup create --include-s3-data

backup list

List available backup files on the server.

depictio-cli backup list [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
depictio-cli backup list

backup validate

Validate a backup file against Pydantic models.

depictio-cli backup validate <backup_id> [OPTIONS]
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
depictio-cli backup validate 20240115_143052

backup restore

Restore data from a backup file. Warning: destructive operation.

depictio-cli backup restore <backup_id> [OPTIONS]
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
depictio-cli backup restore 20240115_143052 --dry-run

backup check-coverage

Check validation coverage for all MongoDB collections.

depictio-cli backup check-coverage [OPTIONS]
Parameter Type Default Description
--CLI-config-path string ~/.depictio/CLI.yaml CLI configuration file path
depictio-cli backup check-coverage

๐Ÿ› ๏ธ 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

๐Ÿ“– Configuration References