@scramjet/cli
v2.2.0
Published
This package is part of Scramjet Transform Hub. The package provides a CLI interface to communicate with Scramjet Transform Hub.
Keywords
Readme
@scramjet/cli
The Transform Hub CLI (si) is the primary command-line interface for interacting with Transform Hub. It connects to a Hub or Manager API and provides commands for deploying, monitoring, and managing Sequences, Instances, Topics, and connected Hubs.
When to use
Install @scramjet/cli on any machine that needs to interact with a Transform Hub — developer workstations for local testing, CI/CD pipelines for automated deployments, or operator consoles for production monitoring.
Quick start
Install globally:
npm install -g @scramjet/cliVerify installation:
si --versionTargeting a Hub or Manager
By default the CLI connects to http://localhost:8000. Change the target:
si config set apiUrl http://manager-host:8200Common commands
Manage Sequences:
si sequence pack ./sequence-dir -o output.tar.gz
si sequence deploy ./my-sequence.tar.gz
si sequence listManage running Instances:
si instance list
si instance info <id>
si instance log <id>
si instance stop <id> <timeout>
si instance kill <id>Manage Topics:
si topic create my-topic
si topic list
si topic send my-topic < data.jsonInspect Hubs where hub commands are available in the active profile/environment:
si hub list
si hub infoRun si --help for all commands, or si <resource> --help for resource-specific options.
Note: The CLI currently uses compatibility workflows targeting the v1 Hub/Manager API (
/api/v1route tree). A v2 API update is planned; backwards compatibility will be maintained.
Configuration
The CLI stores profiles and configuration in ~/.scramjet/. Use si config to view and update settings:
si config print
si config set apiUrl <url>
si config set <key> <value>Stability
This package is stable. The CLI command surface is part of the public API.
See also
- CLI usage for detailed command patterns and examples.
- Generated CLI reference for command, argument, and option details.
- Transform Hub overview for platform architecture.
- API client documentation for programmatic access.
Install
npm install @scramjet/cliImport
import { /* ... */ } from "@scramjet/cli";Documentation
See the package docs for full documentation.
