Installation
The CLI is included when you install the Hyrex Python SDK:Commands
hyrex init
Initialize a new Hyrex project with interactive setup.
hyrex init-db
Initialize the Hyrex database tables in your PostgreSQL database.
--database-string TEXT
- PostgreSQL connection string. If not provided, uses theHYREX_DATABASE_URL
environment variable.
hyrex run-worker
Run a Hyrex worker to process tasks from queues.
APP_MODULE_PATH
- Python module path to your Hyrex app (e.g.,hyrex_app:app
)
--queue-pattern TEXT
- Queue pattern for task filtering (default:*
, accepts wildcards)--num-processes INTEGER
- Number of parallel executor processes (default:8
)--log-level TEXT
- Logging level (default:INFO
, options:DEBUG
,INFO
,WARNING
,ERROR
)
hyrex studio
Launch Hyrex Studio, a web-based UI for monitoring and managing your Hyrex deployment.
--port INTEGER
- Port to run the studio server (default:1337
)--verbose
- Enable verbose logging
Environment Variables
The Hyrex CLI respects the following environment variables:For Hyrex FOSS (Self-hosted)
HYREX_DATABASE_URL
- PostgreSQL connection string for your Hyrex database
For Hyrex Cloud (Managed)
HYREX_API_KEY
- API key for Hyrex Cloud service
Configuration Priority
The CLI follows this priority order for configuration:- Command-line options (highest priority)
- Environment variables
- Configuration files (if present)
- Default values (lowest priority)