Rool CLI
v0.3.12
Command-line interface for the Rool platform.
Installation
npm install -g @rool-dev/cliUsage
rool <command> [options]Commands
| Command | Description |
|---|---|
chat [prompt] | Chat with a space (interactive if no prompt) |
media upload <file> | Upload a file to a space and create an object with the media URL |
space list | List all spaces |
space create <name> | Create a new space |
space delete <name> | Delete a space |
extension create [name] | Create a new Rool extension |
extension dev | Start the dev server |
extension build | Build the extension |
extension publish | Build and publish the extension |
extension list | List published extensions |
extension unpublish <extension-id> | Unpublish an extension |
user | Show current user info |
logout | Log out |
Global Options
| Option | Description |
|---|---|
-V, --version | Show version number |
-h, --help | Show help for any command |
Command Options
| Option | Description | Default | Used by |
|---|---|---|---|
-s, --space <name> | space name | Rool CLI | chat, media upload |
-c, --channel <id> | channel ID | rool-dev | chat |
-m, --message <text> | optional comment/description | media upload | |
-y, --yes | skip confirmation prompt | space delete |
Examples
# Chat with the default spacerool chat "What is the capital of France?"
# Interactive chat moderool chat
# Use a specific spacerool chat -s "My Project" "Summarize the current state"
# Upload a filerool media upload photo.jpg
# Upload with a commentrool media upload report.pdf -m "Q4 sales report"
# Upload to a specific spacerool media upload logo.png -s "My Project"
# List your spacesrool space list
# Create a new spacerool space create "My New Project"
# Delete a space (with confirmation)rool space delete "Old Project"
# Delete without confirmationrool space delete "Old Project" -y
# Show user inforool user
# Log outrool logoutAuthentication
On first use, the CLI opens your browser to authenticate. Credentials are stored in ~/.config/rool/.
License
MIT - see LICENSE for details.