@raketa-cloud/cli
v1.2.2
Published
Collection of useful CLI tools for humans and coding agents.
Downloads
28
Readme
Raketa CLI
A collection of useful CLI tools for humans and coding agents.
Overview
Raketa CLI is a command-line toolkit designed to streamline the creation and management of three key artifact types in your projects:
- Widgets - React UI components
- Skills - Claude AI agent capabilities and prompts
- Commands - Custom CLI commands
Exploring Available Commands
To see all available commands and options:
npx @raketa-cloud/cli --helpTo get detailed help for a specific command:
npx @raketa-cloud/cli widgets --help
npx @raketa-cloud/cli skills --help
npx @raketa-cloud/cli commands --helpEach command namespace has multiple sub-commands. Use the --help flag to discover what's available and explore the full capabilities of the tool.
Usage Examples
Working with Widgets
List all widgets in your project:
npx @raketa-cloud/cli widgets listCreate a new widget:
npx @raketa-cloud/cli widgets new --name MyWidgetWorking with Skills
List all skills (local and global):
npx @raketa-cloud/cli skills list-allView available skills from the remote repository:
npx @raketa-cloud/cli skills list-remoteInstall a skill locally to your project:
npx @raketa-cloud/cli skills install my-skill-nameInstall a skill globally for system-wide use:
npx @raketa-cloud/cli skills install-global my-skill-nameCreate a new custom skill:
npx @raketa-cloud/cli skills new --name my-custom-skillWorking with Commands
List all custom commands:
npx @raketa-cloud/cli commands listCreate a new command:
npx @raketa-cloud/cli commands new --name "namespace.command"Local Development
If you want to develop or contribute to Raketa CLI itself, follow these steps:
Setup
- Clone the repository and navigate to the project directory:
git clone <repository-url>
cd raketa-cli- Install dependencies:
npm install- Link the package globally to use your local version:
npm linkAfter running npm link, the raketa-cli command will use your local development version instead of the published package. Any changes you make to the source code will be immediately available.
Testing Your Changes
Run commands directly to test your changes:
raketa-cli widgets list
raketa-cli skills --helpCleanup
When you're done developing, unlink the package:
npm unlink -g @raketa-cloud/cliThis removes the global symlink and restores the default behavior.
Project Structure
The CLI is built using Commander.js and follows a modular command structure:
src/commands/- Command implementations organized by namespacesrc/index.js- Main entry point and command registration- Each command extends a base
Commandclass for consistency
Contributing
Contributions are welcome! Please follow the existing patterns when adding new commands or features.
Release Process
This project uses automated NPM publishing via GitHub Actions.
Publishing a New Version
- Bump the version using npm version command:
# For a patch release (bug fixes): 1.1.0 → 1.1.1
npm version patch
# For a minor release (new features): 1.1.0 → 1.2.0
npm version minor
# For a major release (breaking changes): 1.1.0 → 2.0.0
npm version majorThis command automatically:
- Updates
package.jsonandpackage-lock.json - Creates a git commit with the version change
- Creates a git tag (e.g.,
v1.2.0)
- Push the changes and tags to GitHub:
git push origin main
git push origin --tags- Automated publishing:
The GitHub Action workflow automatically:
- Validates that the package.json version matches the git tag
- Installs dependencies
- Publishes the package to NPM with public access
- Creates a GitHub release with auto-generated release notes
- Verify the release:
npm view @raketa-cloud/cliVisit https://www.npmjs.com/package/@raketa-cloud/cli to see the published package.
Requirements
- The GitHub repository must have an
NPM_TOKENsecret configured in Settings → Secrets and variables → Actions - The NPM token should be an "Automation" type token with publish permissions for the @raketa-cloud scope
Troubleshooting
Version mismatch error:
Ensure the version in package.json matches the git tag (without the 'v' prefix).
NPM authentication error:
Verify that the NPM_TOKEN secret is properly configured in the GitHub repository settings and has the correct permissions.
Package already published: You cannot republish the same version. Bump the version and create a new release.
License
See LICENSE file for details.
