octopus generate accounts
octopus generate accounts
Generate AccountHolder + Account seed data as resource NDJSON
Synopsis
Write holders.ndjson and accounts.ndjson into --dir, one resource manifest per line.
Each holder gets one account per unit in --units. INDIVIDUAL holders get a single PRIMARY shard; the other holder types get --shards. Account external refs are derived deterministically from the holder and unit, so regenerating is idempotent.
--from-manifest re-runs a previous generation from a seed-manifest.json (tenant, count, units, shards, workers) and writes into the directory that contains it. This command does not write seed-manifest.json yet, so the file has to exist already.
octopus generate accounts [flags]
Examples
# From flags
octopus generate accounts \
--count 1000 \
--tenant stress-test \
--units USD,ARS \
--shards 4 \
--dir ./fixtures/
# Load the result into the kernel
octopus apply -f ./fixtures/holders.ndjson --parallel 10
octopus apply -f ./fixtures/accounts.ndjson --parallel 10
# From an existing seed-manifest.json
octopus generate accounts --from-manifest ./fixtures/seed-manifest.json
Options
-n, --count int Number of holders to generate (required)
-d, --dir string Output directory for generated files (default ".")
--from-manifest string Path to seed-manifest.json — loads all params from manifest
-h, --help help for accounts
--shards int Number of PRIMARY shards per account (default 3)
-t, --tenant string Tenant code to embed in resource metadata (required)
-u, --units strings Currency unit codes (comma-separated) (default [USD])
--workers int Number of parallel generator goroutines (default 8)
Options inherited from parent commands
-c, --correlation string Correlation ID for request tracing (UUID, auto-generated if omitted)
-g, --global Shorthand for --tenant global
-i, --idempotency-key string Idempotency key for exactly-once execution (UUID, auto-generated per operation if omitted)
-o, --output string Output format: human, json (default "human")
-p, --profile string Override active config profile for this command.
-v, --verbose Enable verbose output
SEE ALSO
- octopus generate - Generate seed data for stress testing and local development