Installation
Usage
The CLI provides two commands:Available Commands
build- Build workflow bundles for deploymentdev- Start development server with file watching (Coming soon)
workflow --help to see all available commands.
Global Flags
--help
Show help for any command:
--json
Output results in JSON format (available on all commands):
Command Overview
Build
Build workflow bundles for deployment:Dev (Coming Soon)
Start development server:Package Information
- Package:
@workflow/cli - Binary:
workflow,wf - Framework: oclif
Exit Behavior
All commands properly clean up resources before exiting:- Closes cached World instance
- Cleans up database connections
- Closes HTTP agents
- Exits with appropriate code (0 for success, 1 for error)
Error Handling
Errors are displayed with clear messages:Environment Variables
The CLI respects various environment variables for configuration. These are typically set by framework integrations or deployment platforms. Common variables:NODE_ENV- Development or production modeVERCEL_DEPLOYMENT_ID- Vercel deployment detectionWORKFLOW_TARGET_WORLD- World target (local, vercel, etc.)
Logging
Commands provide informative logging:- Info: General information about progress
- Warn: Warnings about deprecated features or invalid options
- Error: Error messages with details