upnext CLI is installed with the upnext package. It provides commands for running services, interacting with tasks, and managing the server.
upnext run
Start workers and APIs defined in Python files.
upnext.Worker and upnext.Api instances in the given files and starts them together.
Options:
| Option | Short | Description |
|---|---|---|
--only | -o | Only run specific components by name (repeatable) |
--redis-url | Redis URL (overrides UPNEXT_REDIS_URL and constructor config) | |
--verbose | -v | Enable verbose logging |
upnext call
Execute a registered task function directly from the command line.
The worker must have been initialized (via
upnext run or worker.initialize()) at least once so the function is registered in Redis.upnext list
List all registered functions (tasks, cron jobs, event handlers).
upnext server start
Start the UpNext API server and web dashboard.
Backend-first: persistence backend is selected by
--backend or UPNEXT_BACKEND. Passing --database-url does not select sqlite or postgres by itself.| Option | Default | Description |
|---|---|---|
--host | 0.0.0.0 | Host to bind to |
--port | 8080 | Port to listen on |
--backend | UPNEXT_BACKEND or redis | Persistence backend: redis, sqlite, or postgres |
--database-url | UPNEXT_DATABASE_URL or unset | SQL database URL for server startup checks and migrations |
--redis-url | UPNEXT_REDIS_URL or unset | Redis URL for runtime streams and queue integration |
--reload | false | Enable auto-reload |
--verbose, -v | false | Enable verbose logging |