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. Initialize a new Canvas project

canvas init

This creates the folder structure, sample schemas, and starter configuration files.

2. Login to your Canvas platform

canvas login

This will prompt for your API base URL and authentication token, storing them securely.

3. List your projects

canvas list projects

4. List agents in a project

canvas list agents --project=<project-id>

5. Deploy an agent

canvas push <agent-name> <project-id>

Commands

canvas init

Creates the folder structure, sample schemas, and a starter canvas.yaml, environments/dev.yaml. Adds .canvasrc to .gitignore.

canvas login

Stores a profile (API base + token) in ~/.canvasrc (OS keychain if available).

canvas list projects

Lists projects from the platform API.

canvas list agents --project={projectId}

Lists agents for a specific project.

canvas push <agent> <projectid>

Pushes the effective agent definition to the target project via platform API:

  • Uploads bundle to registry (if configured)
  • Registers the version
  • Applies metadata (owners/tags)
  • Does not set or read secret values—only validates presence by name

Directory Structure

When you run canvas init or pull from a project, the following structure is created:

my-canvas-repo/
├── canvas.yaml                 # workspace config
├── .canvasrc                   # local profiles (ignored by VCS)
├── agents/
│   ├── test-agent/
│   │   ├── agent.yaml          # core definition (env-agnostic)
│   │   ├── README.md
│   │   ├── prompts/
│   │   │   ├── system.txt
│   │   │   └── fewshot.md
│   │   ├── evals/
│   │   │   └── smoke.yaml
│   │   └── agent.lock.json     # generated by `canvas lock/package`
│   └── claim-router/
│       └── agent.yaml
├── tools/
│   └── fetch-rules.yaml
├── datasources/
│   └── rules-db.yaml
└── environments/
    ├── dev.yaml
    ├── stage.yaml
    ├── prod.yaml
    └── customer-acme.yaml

Configuration

The CLI uses the following configuration files:

  • ~/.canvasrc - Global user configuration and profiles
  • canvas.yaml - Workspace configuration
  • environments/*.yaml - Environment-specific overrides

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-0.1.5.tar.gz (28.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-0.1.5-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raga_canvas_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 28.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-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c91f6b3a2c1f01541abd560eb65b8c4f26c47574660a96de27bf5498d2dbe8cb
MD5 9c80920810e43c981a52b865bf4d0933
BLAKE2b-256 741597d2bec8185de5c6ff9c5088650d1ce1ddd8d4aa8a85bc68e0790580a137

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for raga_canvas_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 645ebf650d529c28fab5816cbb6cf8148339b25a9084050aea0b60b0ec24dd69
MD5 d64928d8feabe1aa582b4cb22ae25824
BLAKE2b-256 d7d2127c48a37fbb396e027d69fb4576cb6d5987180cf46b3da28774dad3651e

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