Skip to main content

CLI tool for interacting with Raga Canvas no-code agent deployment platform

Project description

Raga Canvas CLI

A command-line interface for interacting with the Raga Canvas no-code agent deployment platform.

Installation

pip install raga-canvas-cli

Quick Start

  1. Login to authenticate with Canvas platform
canvas login [--api-base https://api.canvas.raga.ai] [--profile <name>]
  1. Initialize a workspace
canvas init <directory> [--profile <name>] [--force]
  1. Add a project to your workspace
canvas add project <project-short-name> [--profile <name>]
  1. Set the default project
canvas set default-project <project-short-name>
  1. Pull an agent and its dependencies
canvas pull agent <agent-short-name> [--project <project-name>] [--profile <name>]
  1. Push your modified agent
canvas push agent <agent-short-name> [--project <project-name>] [--profile <name>] [--force]
  1. Deploy the agent
canvas deploy agent <agent-short-name> [--project <project-name>] [--profile <name>]

Commands

canvas login

Authenticate with the Canvas platform and save credentials.

Usage:

canvas login [--api-base <url>] [--profile <name>]

Prompts for username and password, validates, and stores a token securely (in system keychain or ~/.canvasrc).

Options:

  • --api-base: API base URL (default: https://api.canvas.raga.ai)
  • --profile: Profile name to save credentials under (default: default)

canvas init

Initialize a Canvas workspace.

Usage:

canvas init <directory> [--profile <name>] [--force]

Creates the workspace structure:

  • canvas.yaml - workspace configuration
  • agents/, tools/, datasources/ - resource directories
  • .gitignore - excludes sensitive files

Arguments:

  • <directory>: Directory to initialize (use . for current directory)

Options:

  • --profile: Profile to use for authentication
  • --force: Proceed even if files already exist

canvas add

Add projects to your workspace.

Usage:

canvas add project <project-short-name> [--profile <name>]

Downloads project configuration and sets up environment templates for the specified project.

Examples:

canvas add project my-project
canvas add project my-project --profile production

canvas set

Set workspace-level defaults.

Usage:

canvas set default-project <project-short-name>

Sets the default project in canvas.yaml that will be used by other commands when --project is not specified.


canvas list

List Canvas resources.

List Projects:

canvas list projects [--profile <name>] [--local]
  • --local: List projects added to local workspace instead of remote projects

List Agents:

canvas list agents [--project <short-name>] [--profile <name>]

Shows all agents in the specified project (or default project if not specified).


canvas pull

Pull resources from Canvas platform into your workspace.

Pull Agent:

canvas pull agent <agent-short-name> [--project <short-name>] [--profile <name>]

Pulls an agent and all its dependencies (tools, datasources, sub-agents) into the global agents/ directory.

Examples:

canvas pull agent my-agent
canvas pull agent my-agent --project my-project

Note: The deprecated canvas pull project command has been replaced by canvas add project.


canvas push

Push local resources to Canvas platform.

Push Agent:

canvas push agent <agent-short-name> [--project <short-name>] [--profile <name>] [--force]

Creates or updates an agent and its dependencies in the target project.

Arguments:

  • <agent-short-name>: Agent directory name in agents/

Options:

  • --project: Target project short name (uses default project if not specified)
  • --profile: Profile to use for authentication
  • --force: Force push even if validation warnings exist

Examples:

canvas push agent my-agent
canvas push agent my-agent --project my-project
canvas push agent my-agent --force

canvas deploy

Deploy an agent to Canvas platform.

Usage:

canvas deploy agent <agent-short-name> [--project <short-name>] [--profile <name>]

Triggers deployment of an existing agent version in the target project.

Examples:

canvas deploy agent my-agent
canvas deploy agent my-agent --project my-project

canvas help

Show help information for Canvas CLI commands.

Usage:

canvas help [<command>] [--structure]

Options:

  • --structure: Show workspace directory structure

Examples:

canvas help                # General help
canvas help pull          # Help for pull command
canvas help --structure   # Show directory structure

Directory Structure

When you run canvas init and canvas add project, the following structure is created:

my-canvas-workspace/
├── canvas.yaml              # Workspace configuration
├── .gitignore              # Ignores sensitive files (.canvasrc, *.env, etc.)
│
├── agents/                 # Global agents directory
│   └── my-agent/
│       ├── agent.yaml      # Agent configuration
│       └── system_prompt.txt  # System prompt (if extracted)
│
├── tools/                  # Global tools directory  
│   └── my-tool/
│       └── tool.yaml       # Tool configuration
│
├── datasources/            # Global datasources directory
│   └── my-datasource/
│       └── datasource.yaml # Datasource configuration
│
├── projects/               # Project-specific configurations
│   └── my-project/
│       └── project.yaml    # Project metadata
│
└── env/                    # Environment-specific variables
    ├── dev.yaml           # Development environment
    ├── staging.yaml       # Staging environment
    └── prod.yaml          # Production environment

Key Files:

  • canvas.yaml: Workspace config with default project name and version
  • ~/.canvasrc: Global user profiles and authentication tokens (stored in system keychain when available)
  • agents/<name>/agent.yaml: Agent configuration with references to tools and datasources by short name
  • projects/<name>/project.yaml: Project-specific metadata including project ID, environment, and profile
  • env/<environment>.yaml: Environment-specific variables (API keys, connection strings, etc.)

Configuration

The CLI uses the following configuration files:

  • ~/.canvasrc - Global user configuration and profiles (or system keychain)
  • canvas.yaml - Workspace configuration
  • projects/<name>/project.yaml - Project metadata and settings
  • env/*.yaml - Environment-specific variables

Development

To set up for development:

git clone https://github.com/raga-ai/raga-canvas-cli
cd raga-canvas-cli
pip install -e ".[dev]"

Run tests:

pytest

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raga_canvas_cli-1.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raga_canvas_cli-1.0-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

Details for the file raga_canvas_cli-1.0.tar.gz.

File metadata

  • Download URL: raga_canvas_cli-1.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for raga_canvas_cli-1.0.tar.gz
Algorithm Hash digest
SHA256 8b38b65f53ad6d27e33ce92e559b2172987285f4617414b0acb84379979b5621
MD5 7c208104914ce8510496251d33b44fa6
BLAKE2b-256 712524394410abb38639082edc71181dd763f64e14159128c17ad2d0c60bfb5f

See more details on using hashes here.

File details

Details for the file raga_canvas_cli-1.0-py3-none-any.whl.

File metadata

  • Download URL: raga_canvas_cli-1.0-py3-none-any.whl
  • Upload date:
  • Size: 48.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for raga_canvas_cli-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2987aa48fd7fd6c6cbf2f6fbce7f5ad1f0f176d90726b64ba6fd70fb2bf6b7cd
MD5 963a29427832c7cc8353e43d998818e7
BLAKE2b-256 6a957ed8afb61f80758a7a152df7cf7d8f37f4bf4e337c50f97b77488647473e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page