npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@carbonhost/cli

v1.2.2

Published

A CLI to interact with the carbon.host platform

Readme

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.