The official CLI for the Hypeman REST API.
It is generated with Stainless.
brew tap onkernel/tap
brew install hypemango install 'github.com/onkernel/hypeman-cli/cmd/hypeman@latest'go run cmd/hypeman/main.go# Pull an image
hypeman pull nginx:alpine
# Run an instance (auto-pulls image if needed)
hypeman run nginx:alpine
hypeman run --name my-app -e PORT=3000 nginx:alpine
# List running instances
hypeman ps
hypeman ps -a # show all instances
# View logs
hypeman logs <instance-id>
hypeman logs -f <instance-id> # follow logs
# Execute a command in a running instance
hypeman exec <instance-id> -- /bin/sh
hypeman exec -it <instance-id> # interactive shellFor details about specific commands, use the --help flag.
The CLI also provides resource-based commands for more advanced usage:
hypeman [resource] [command] [flags]--debug- Enable debug logging (includes HTTP request/response details)--version,-v- Show the CLI version
When developing features in the main hypeman repo, Stainless automatically creates preview branches in stainless-sdks/hypeman-cli with your API changes. You can check out these branches locally to test the CLI changes:
# Checkout preview/<branch> (e.g., if working on "devices" branch in hypeman)
./scripts/checkout-preview devices
# Checkout an exact branch name
./scripts/checkout-preview -b main
./scripts/checkout-preview -b preview/my-featureThe script automatically adds the stainless remote if needed and also updates go.mod to point the hypeman-go SDK dependency to the corresponding preview branch in stainless-sdks/hypeman-go.
Warning: The
go.modandgo.sumchanges fromcheckout-previeware for local testing only. Do not commit these changes.
After checking out a preview branch, you can build and test the CLI:
go build -o hypeman ./cmd/hypeman
./hypeman --helpYou can also point the SDK dependency independently:
# Point hypeman-go to a specific branch
./scripts/use-sdk-preview preview/my-feature
# Point to a specific commit
./scripts/use-sdk-preview abc1234def567