Rachuba documentation
CLI reference
rachuba [--config PATH] [--ledger PATH] [--json] <command>
Options every command takes
-c,--config PATH: the configuration file, defaultrachuba.tomlin the data directory.-l,--ledger PATH: the payroll ledger, defaultledger.tomlin the data directory.--json, anywhere on the line: the same figures as one JSON document instead of text. Every amount is a string such as"1234.56", so no float rounds a dollar.RACHUBA_HOME: the data directory, when it is not the platform's default.RACHUBA_TABLES: the tables folder, when it is neithertablesbeside the configuration file nor the tables built into rachuba.
Exit status
0: the command did what it says.1: a refusal, printed asError: <sentence>; or, forowedandcheck, a passed due date or a breached limit, reported after the full output.2: a wrong invocation, such as an unknown option or a missing argument.
The refusals every command shares (configuration, ledger, tables, state) are on configuration.
Commands
| Command | What it does | Writes |
|---|---|---|
| init | Writes a starting configuration file and an empty ledger. | both files |
| location | Prints where the configuration, the ledger and the tables are. | nothing |
| onboarding | Says where first use stands and what completes each step. | nothing |
| explain | Prints Worksheet 1A line by line for a prospective run. | nothing |
| run | Computes a payroll run; records it with --commit. | the ledger, with --commit |
| stub | Prints the pay stub of a recorded run. | nothing |
| void | Takes the last committed run back out, before any of its money moved. | the ledger |
| ytd | Year-to-date totals. | nothing |
| runs | Every recorded run of a year and whether its money moved. | nothing |
| sheet | Every recorded run of a year as one CSV sheet, the ledger's fields as columns. | nothing |
| cost | What payroll cost the company in each month of a year, and in the year. | nothing |
| owed | Money that has to move, and by when. | nothing |
| deposited | Records that a run's Form 941 taxes were deposited. | the ledger |
| remitted | Records that a run's deferral reached the plan. | the ledger |
| retract | Takes back a deposit or remittance recorded by mistake. | the ledger |
| calendar | Filing and deposit due dates for a year. | nothing |
| obligations | The year's filings, open deposits and remittances and estimated tax installments as one document a register imports. | nothing |
| check | Checks the year against the statutory limits. | nothing |
| form 941 | 940 | w2 | Line values for a federal return. | nothing |
| return | Projects the employee's own federal return, and Form 540 for a California resident. | nothing |
| sources | Reads a payroll provider's register of paychecks into ledger runs; lists and takes back the imports that added runs. | the ledger and its import log, with --commit or forget --yes |
| gui | Serves the sources importer in a browser on this machine's loopback. | what the sources words it runs write |
| doctor | Answers what payroll history stays outside the ledger: none is looked for on this machine. | nothing |