VirtuousAI

CLI Reference

vai command-line interface documentation

CLI Reference

The vai CLI provides powerful command-line access to VirtuousAI for automation, scripting, and CI/CD integration.

Quick Install

pip install vai-client
uv pip install vai-client
pipx install vai-client

Quick Start

Verify Installation

vai --version

Authenticate

vai auth login

A browser window opens for OAuth authentication.

Start Using

vai connections list
vai templates list
vai sync run shopify-orders --connection my-shopify

Key Features

FeatureDescription
Device Flow AuthSecure OAuth2 authentication via browser
Multiple ProfilesSwitch between environments and orgs
JSON OutputMachine-readable output for scripting
Rich TablesBeautiful formatted output for humans
Shell CompletionTab completion for bash/zsh/fish

CLI Sections

Example: CI/CD Pipeline

# In GitHub Actions or similar
export VAI_API_KEY="${{ secrets.VAI_API_KEY }}"

# Run sync with JSON output for parsing
vai sync run shopify-orders \
  --connection $CONNECTION_ID \
  --output json \
  | jq '.runId'

Output Formats

vai connections list              # Rich table (default)
vai connections list -o json      # JSON for parsing
vai connections list -o quiet     # IDs only for scripting

On this page