Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

Main Command

acuity-index [OPTIONS] <COMMAND>

Global Options

These options are accepted by acuity-index for every command:

OptionDescription
-v, --verbose...Increase logging verbosity
-q, --quiet...Decrease logging verbosity
-h, --helpPrint help
-V, --versionPrint version

Commands

CommandDescription
runRun the indexer for the specified chain
purge-indexDelete the index database for the specified chain
generate-index-specGenerate a starter index spec TOML from live node metadata

run

acuity-index run [OPTIONS] <INDEX_SPEC>

Run the indexer for the specified chain.

Arguments

ArgumentDescription
<INDEX_SPEC>Path to a hot-reloading index specification TOML file

Options

OptionDefaultDescription
--options-config <OPTIONS_CONFIG>nonePath to a hot-reloading options TOML file
-d, --db-path <DB_PATH>noneDatabase path
--db-mode <DB_MODE>low-spaceDatabase mode: low-space or high-throughput
--db-cache-capacity <DB_CACHE_CAPACITY>1024.00 MiBMaximum size for the system page cache
-u, --url <URL>noneURL of Substrate node to connect to
--queue-depth <QUEUE_DEPTH>1Maximum number of concurrent block requests
-f, --finalizedfalseOnly index finalized blocks
-p, --port <PORT>8172WebSocket port
--metrics-port <METRICS_PORT>noneOpenMetrics HTTP port
--max-connections <MAX_CONNECTIONS>1024Maximum concurrent WebSocket connections
--max-total-subscriptions <MAX_TOTAL_SUBSCRIPTIONS>65536Maximum total subscriptions across all connections
--max-subscriptions-per-connection <MAX_SUBSCRIPTIONS_PER_CONNECTION>128Maximum subscriptions per connection
--subscription-buffer-size <SUBSCRIPTION_BUFFER_SIZE>256Per-connection subscription notification buffer size
--subscription-control-buffer-size <SUBSCRIPTION_CONTROL_BUFFER_SIZE>1024Subscription control channel buffer size
--idle-timeout-secs <IDLE_TIMEOUT_SECS>300Idle connection timeout in seconds
--max-events-limit <MAX_EVENTS_LIMIT>1000Maximum number of events returned per query

purge-index

acuity-index purge-index [OPTIONS] <INDEX_SPEC>

Delete the index database for the specified chain.

Arguments

ArgumentDescription
<INDEX_SPEC>Path to an index specification TOML file

Options

OptionDescription
-d, --db-path <DB_PATH>Database path

generate-index-spec

acuity-index generate-index-spec [OPTIONS] --url <URL> <INDEX_SPEC>

Generate a starter index spec TOML from live node metadata.

Arguments

ArgumentDescription
<INDEX_SPEC>Path to write the generated index spec TOML file

Options

OptionDescription
-u, --url <URL>URL of Substrate node to connect to
-f, --forceOverwrite the output file if it already exists