Skip to content

canvas-ai/canvas-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas Shell

Simple set of command-line utilities for interacting with Canvas API from your terminal. For a more streamlined experience, use canvas-cli (assuming, its ready :)

CLI Functions

  • context - Manage Canvas contexts
  • ws - Manage Canvas workspaces
  • canvas - General Canvas system commands (including secure login)
  • Extends the default shell prompt (PS1) with Canvas workspace and context info

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/canvas-shell.git
cd canvas-shell
  1. Run the installation script:
./install.sh
  1. Restart your terminal or source your bashrc:
source ~/.bashrc

Usage

Canvas Command

# Set or update Canvas API key securely, defaults to localhost
canvas login

# Set Canvas server URL and API key in one step (URL format: protocol://host[:port])
canvas login https://my.cnvs.ai

# Connect to Canvas API
canvas connect

# Check connection status
canvas status

# View configuration
canvas config

# Disconnect from Canvas API
canvas disconnect

# For the whole list, run
canvas help

Workspace Command

# Show current workspace
ws

# Set workspace
ws set myworkspace

# List available workspaces
ws list

# For the whole list, run
ws help

Context Command

# Set context URL
context set https://example.com

# Show current context path
context path

# List available paths
context paths

# Show context tree
context tree

# For the whole list, run
context help

Configuration

Configuration is stored in ~/.canvas/config/canvas-shell.ini.

Example configuration:

protocol="http"
host="127.0.0.1"
port="8001"
base_url="/rest/v2"
api_key="your-auth-token"

default_workspace="universe"
default_context="default"
default_session="default"

License

Licensed under AGPL-3.0-or-later. See main project LICENSE file.

About

Canvas UI (shell)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages