Run a seed
Start a Seed Run from the command line or the desk and follow its progress.
A Seed Run is one seeding of a site. You create it, and the site's workers play it out one simulated day at a time. Only a System Manager can open or start a Seed Run.
Before you start
Pause the site's own scheduler for the length of the run. Seed refuses to start while the scheduler is on and not paused.
cardinal scheduler pause -t HOST --ttl 7dLeft running, the live scheduler acts on today's date inside the seeded history. HRMS's hourly auto attendance, for example, would mark the simulated days' employees Absent. For a run longer than the pause, renew the pause before it ends.
From the command line
cardinal seed:run -t demo.localhost --domains erp,gst,hrms -n 10000 \
--from 2024-04-01 --to 2026-03-31 --seed 42The command creates the run and returns at once:
Queued SEED-00001: erp,gst,hrms from 2024-04-01 to 2026-03-31, seed 42. Follow it with `cardinal seed:status -t demo.localhost SEED-00001`.The workers do the seeding, so keep cardinal start running, or a worker or all release.
| Flag | Required | Meaning |
|---|---|---|
-t HOST | yes | The site |
--domains | yes | Comma-separated: erp, gst, hrms, crm |
-n N | yes | Submitted transactions the domains aim for over the period |
--from DATE | yes | First simulated day, YYYY-MM-DD |
--to DATE | no | Last simulated day. Defaults to today |
--company NAME|new | no | new (default) creates the pack's company. A name continues a company the site has |
--employees N | no | Headcount for hrms. Defaults to N/150, at least 15 and never fewer than the pack's users |
--pack NAME | no | The data pack. Defaults to electronics_in |
--seed N | no | Random seed, 0 to 2147483647. Random when left out, and stored on the run |
--user-password P | no | Login password for every user the run creates |
The same parameters and the same --seed give the same records.
From the desk
Running: day 12 of 30. It updates without a refresh.A saved run is read-only.
Follow a run
cardinal seed:status -t demo.localhost # latest runs, one line each
cardinal seed:status -t demo.localhost SEED-00001 # cursor, records per RecType, errorWhen the run completes, resume the scheduler:
cardinal scheduler resume -t demo.localhostThe data pack
A pack is a YAML file describing one industry. It holds the company, its calendar and holidays, the team, items and prices, parties, expenses and the HR setup. Two ship with Seed:
| Pack | Company |
|---|---|
electronics_in | Kesar Electronics Distributors Pvt Ltd, an electronics and appliances distributor in Ahmedabad, Gujarat, in INR |
revaik_in | Revaik Private Limited, the same business under another name, with no crm section |
Every seeded email address is on example.in.
Seeded users and passwords
The pack's users list becomes real users: 4 Sales Users, a Sales Manager, 2 Purchase Users and so on, 17 in electronics_in. Each event runs as the user who would do it, so documents show their names.
Without a password, nobody can sign in as these users. For a training site, pass --user-password or fill Seeded Users' Password. The run stores it as a Password field that no read returns. With System Settings' enforce_password_strength on, a weak password fails the run at its first user. On a shared machine, use the form, since the flag stays in your shell history.
Continuing an existing company
--company NAME seeds more history onto a company the site already has. The run is refused before anything is written when:
- the company is missing, or its currency differs from the pack's;
- it has no bank ledger, stock warehouse or default price lists;
--fromis not after its last GL, Stock Ledger or submitted document date. A company still in use needs a--toafter today;- ERP's naming and order settings differ from what Seed needs.
| Setting | Needed |
|---|---|
Selling Settings cust_master_name, Buying Settings supp_master_name | Customer Name, Supplier Name |
Stock Settings item_naming_by | Item Code |
Selling Settings so_required, dn_required | No |
Buying Settings po_required, pr_required | No |
Stock Settings auto_indent | off |
Seed adds only what is missing, such as Fiscal Years and the pack's parties and items. Its planners leave the company's own open orders and unpaid invoices alone.
With gst or hrms in the run, the company needs more:
| Domain | The run is refused unless |
|---|---|
gst | The company has a GSTIN, is in India and keeps INR books, and GST Settings' Enable API Features is off |
hrms | Default Payroll Payable Account is a Payable account, Default Employee Advance Account is a Receivable account, and the company has a Salary ledger and a Duties and Taxes group |
Setup then adds only the HR masters the company lacks.
cardinal seed:run -t demo.localhost --domains erp,gst,hrms -n 4000 \
--company "Kesar Electronics Distributors Pvt Ltd" --from 2026-04-01 --to 2026-12-31 --seed 7