gb run-prompt
Run a Claude Code prompt remotely in your Genbox environment.
Synopsis
gb run-prompt <prompt> [options]
gb run <prompt> [options]Description
Executes a Claude Code prompt directly in your Genbox environment. Perfect for running AI-assisted tasks in the cloud context.
Arguments
| Argument | Description |
|---|---|
prompt | The prompt to execute |
Options
| Option | Description |
|---|---|
--name <env> | Target environment |
--app <name> | Run in specific app directory |
--stream | Stream output in real-time |
-y, --yes | Auto-approve all tool calls |
Examples
Basic Usage
gb run "fix the TypeScript errors in the auth module"Target Specific App
# Run in API directory
gb run "add input validation to the users endpoint" --app apiStream Output
# Watch Claude work in real-time
gb run "refactor the database queries for better performance" --streamAuto-Approve
# Don't prompt for tool approvals
gb run "run the tests and fix any failures" -yUse Cases
Bug Fixes
gb run "investigate and fix the login timeout issue"Code Generation
gb run "create a new endpoint for user preferences with full CRUD operations"Testing
gb run "write unit tests for the payment service"Refactoring
gb run "refactor the auth middleware to use dependency injection"Documentation
gb run "add JSDoc comments to all exported functions in the API"Environment Context
Claude Code runs with full access to:
- Your codebase in the Genbox
- Running services (can test changes)
- Database (can inspect data)
- Environment variables
- Terminal commands
Notes
- Requires Claude Code to be installed in the Genbox
- Uses your Claude API key (configured during login)
- Prompts run in the Genbox, not locally
- Changes are made directly in the Genbox
See Also
gb connect- SSH for manual workgb push- Push local changesgb status- Check environment
Last updated on