GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - carbon-host/cli: The CLI for interacting with the Carbon Host platform

BranchesTags
Open more actions menu

Latest commit

 

History

42 Commits
42 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
bun.lock
bun.lock
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Carbon CLI

The Carbon CLI (@carbonhost/cli) provides a command-line interface for managing your Carbon deployments and resources.

Version Downloads/week

Installation

npm:

npm install -g @carbonhost/cli

yarn:

yarn global add @carbonhost/cli

pnpm:

pnpm add -g @carbonhost/cli

bun:

bun add -g @carbonhost/cli

Command Reference

Authentication

# Login to Carbon CLI
carbon login

The login command opens your browser to authenticate with Carbon. It will display a verification code that you should verify matches in the browser. After successful authentication, your API key will be saved locally.

Options:

  • --port, -p: Specify a custom port for the local authentication server (optional)

List Stars

# List all your stars
carbon list
# or
carbon ls

The list command displays all your stars in a table format with key information.

Options:

  • --format, -f: Output format (table, json) (default: table)
  • --columns, -c: Only show specified columns (comma-separated) (default: id,name,type,status,ram,cpu)
  • --sort, -s: Property to sort by (default: name)

Examples:

# List all stars in table format
carbon ls

# Show only name and status columns
carbon ls --columns name,status

# Sort by creation date
carbon ls --sort created

# Output as JSON
carbon ls --format json

File Deployment

# Deploy a file to a star
carbon deploy <localPath> <starDirectory> --star <starId> [--watch]

The deploy command uploads a local file to a specified directory on your star (server).

Arguments:

  • localPath: Path to the local file you want to deploy
  • starDirectory: Target directory on the star where the file should be uploaded
  • --star, -s: The ID of the star to deploy to
  • --watch, -w: Watch for local file changes and auto-deploy (optional)
  • --postDeploy, -p: Command to run after deployment (optional)
  • --restart, -r: Restart the server after deployment (optional)

Examples:

# Deploy a single file
carbon deploy ./presets/paper-global.yml /config --star abc123

# Deploy and watch for changes
carbon deploy ./build/libs/PluginPortal.jar /plugins --star abc123 --watch

# Deploy with post-deploy command
carbon deploy ./plugins/MyPlugin.jar /plugins --star abc123 --postDeploy "reload confirm"

# Deploy and restart server
carbon deploy ./server.properties /config --star abc123 --restart

Note: When using the watch flag, the CLI will monitor the specified file for changes and automatically upload new versions when detected. This is particularly useful during development.

Help

# Get general help
carbon help

# Get help for a specific command
carbon help <command>

The help command provides detailed information about available commands and their usage.

About

The CLI for interacting with the Carbon Host platform

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.