Skip to main content

CLI command flags

This page lists all available flags and their usage across commands.

Global flagsโ€‹

These are flags that can be used with any command.

--configโ€‹

Server config file (default "resonate.yml")

--log-levelโ€‹

Log level, can be one of:

  • debug
  • info (default)
  • warn
  • error

--passwordโ€‹

Basic auth password

--serverโ€‹

Server address used by the client (default "http://127.0.0.1:8001").

--usernameโ€‹

Basic auth username

Command flagsโ€‹

These are flags that are specific to a command.

--cronโ€‹

Schedule cron expression.

Used in:

--descriptionโ€‹

Schedule description.

Used in:

--idempotency-keyโ€‹

An optional idempotency key to ensure idempotency in promise operations.

Used in:

--strictโ€‹

Enforces strict mode in promise operations. Default is true.

Used in:

--timeoutโ€‹

Specifies the timeout duration for promises

Used in:

--promise-timeoutโ€‹

Specifies the timeout duration for promises in Schedules.

Used in:

--dataโ€‹

Specifies the data for promises.

Used in:

--headerโ€‹

Specifies headers for promise requests.

Used in:

--tagโ€‹

Assigns tags to promises or schedules.

Used in:

--promise-tagโ€‹

Promise tags. Default is [].

Used in:

--promise-dataโ€‹

Promise param data

Used in:

--promise-headerโ€‹

Promise param header. Default is [].

Used in:

--promise-idโ€‹

Templated schedule id, can include {{.timestamp}}.

Used in:

--stateโ€‹

Filters promises by state.

Used in:

--limitโ€‹

Limits the number of results in searches.

Used in:

--cursorโ€‹

Pagination cursor for search results.

Used in:

--outputโ€‹

Specifies the output format.

Used in:

--api-sizeโ€‹

Specifies the size of the submission queue buffered channel for the API.

Used in:

--api-http-addrโ€‹

Sets the HTTP server address for the API. Default is "0.0.0.0:8001".

Used in:

--api-http-timeoutโ€‹

Specifies the graceful shutdown timeout for the HTTP server. Default is 10s.

Used in:

--api-grpc-addrโ€‹

Sets the gRPC server address for the API. Default is "0.0.0.0:50051".

Used in:

--api-base-urlโ€‹

Sets the base URL used to generate absolute URLs for the server's resources. Default is "http://localhost:8001".

Used in:

--api-http-authโ€‹

Provides basic authentication with username/password pairs for HTTP requests. Default is [].

Used in:

--aio-sizeโ€‹

Specifies the size of the completion queue buffered channel for AIO. Default is 100.

Used in:

--aio-storeโ€‹

Specifies the type of promise store (e.g., sqlite, postgres). Default is "sqlite".

Used in:

--aio-store-sizeโ€‹

Specifies the size of the store submission queue buffered channel for AIO. Default is 100.

Used in:

--aio-store-workersโ€‹

Specifies the number of concurrent store connections for AIO. Default is 1

Used in:

--aio-store-batch-sizeโ€‹

Specifies the maximum number of submissions processed by a store worker per tick. Default is 100.

Used in:

--aio-store-sqlite-pathโ€‹

Specifies the SQLite database path. Default is "resonate.db".

Used in:

--aio-store-sqlite-tx-timeoutโ€‹

Specifies the SQLite transaction timeout. Default is 10s.

Used in:

--aio-store-sqlite-resetโ€‹

Enables resetting the SQLite database on shutdown.

Used in:

--aio-store-postgres-hostโ€‹

Specifies the PostgreSQL host. Default is "localhost".

Used in:

--aio-store-postgres-portโ€‹

Specifies the PostgreSQL port. Default is "5432".

Used in:

--aio-store-postgres-usernameโ€‹

Specifies the PostgreSQL username.

Used in:

--aio-store-postgres-passwordโ€‹

Specifies the PostgreSQL password.

Used in:

--aio-store-postgres-databaseโ€‹

Specifies the PostgreSQL database name. Default is "resonate".

Used in:

--aio-store-postgres-queryโ€‹

Specifies query options for PostgreSQL. Default is [].

Used in:

--aio-store-postgres-tx-timeoutโ€‹

Specifies the PostgreSQL transaction timeout. Default is 10s.

Used in:

--aio-store-postgres-resetโ€‹

Enables resetting the PostgreSQL database on shutdown.

Used in:

--aio-network-sizeโ€‹

Specifies the size of the network submission queue buffered channel for AIO. Default is 100.

Used in:

--aio-network-workersโ€‹

Specifies the number of concurrent HTTP requests for the network. Default is 3.

Used in:

--aio-network-batch-sizeโ€‹

Specifies the maximum number of submissions processed by a network worker per tick. Default is 100.

Used in:

--aio-network-timeoutโ€‹

Specifies the network request timeout. Default is 10s.

Used in:

--aio-queuing-sizeโ€‹

Specifies the size of the queuing submission queue buffered channel for AIO. Default is 100.

Used in:

--aio-queuing-batch-sizeโ€‹

Specifies the maximum number of submissions processed by a queuing worker per tick. Default is 100.

Used in:

--aio-queuing-connectionsโ€‹

Specifies the queuing subsystem connections.

Used in:

--aio-queuing-routesโ€‹

Specifies the queuing subsystem routes.

Used in:

--system-coroutine-max-sizeโ€‹

Specifies the maximum number of coroutines to run concurrently. Default is 1000.

Used in:

--system-notification-cache-sizeโ€‹

Specifies the maximum number of notifications to keep in the cache. Default is 100.

Used in:

--system-submission-batch-sizeโ€‹

Specifies the maximum number of submissions to process on each tick. Default is 100.

Used in:

--system-completion-batch-sizeโ€‹

Specifies the maximum number of completions to process on each tick. Default is 100.

Used in:

--system-schedule-batch-sizeโ€‹

Specifies the maximum number of schedules to process on each tick. Default is 1000.

Used in:

--metrics-portโ€‹

Specifies the Prometheus metrics server port. Default is 9090.

Used in:

--ignore-assertsโ€‹

Enables ignore-asserts mode.

Used in:

--counterโ€‹

The counter is a feature that keeps track of the number of Tasks. It increments each time a new Task is added and decrements when a Task is completed or removed.

Used in:

--process-idโ€‹

Unique process ID that identifies the claimant.

Used in:

--ttlโ€‹

Time to live.

Used in: