CLI
Operate the queue from the terminal with the standalone flexiq command.
Operate the queue from the terminal with the standalone flexiq command.
A standalone flexiq command (no Python) operates the queue from the terminal.
Connect with --db <path>, or --backend/--dsn for Postgres/Redis.
flexiq --db flexiq.db enqueue add '[2,3]'
flexiq --db flexiq.db stats
flexiq --db flexiq.db jobs --status failed
flexiq --db flexiq.db dlq list
flexiq --db flexiq.db dlq retry <deadId>
flexiq --db flexiq.db pause default
flexiq --db flexiq.db resume default
flexiq --db flexiq.db paused
flexiq --db flexiq.db cancel <jobId>Add --json to any read command for machine-readable output.
run loads a module that exports a configured Queue and runs its worker:
flexiq run ./app.js --queues default,emailsThe module registers its tasks on the exported queue; run starts a worker
over them. Use it as your container entrypoint for worker processes.
flexiq --db flexiq.db dashboard --port 8787Serves openly by default. --auth enables session authentication
(login/setup, CSRF, roles); --token <token> uses the legacy shared-token
gate instead — see Dashboard.
flexiq --backend postgres --dsn "$DATABASE_URL" scaler --port 9091Serves the queue-depth metric for KEDA.
flexiq --db flexiq.db autoscale ./app.js --min-workers 2 --max-workers 20Spawns and drains run-style workers to track queue depth, for hosts without
Kubernetes — see Autoscaling.
The CLI ships in the package bin. Commands operate over --db/--backend/
--dsn, except run and dashboard, which load your app module and serve
the dashboard respectively.