Rachuba documentation
CLI reference
rachuba [--config PATH] [--ledger PATH] [--json] <command>
Options every command takes
-c,--config PATH: the configuration file, defaultrachuba.toml.-l,--ledger PATH: the payroll ledger, defaultledger.toml.--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_TABLES: the tables folder, when it is nottablesbeside the configuration file.
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 |
| 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 |
| 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 |
| 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. | nothing |