Use this guide for end-to-end DualEntry CLI workflows aimed at both developers and accountants. For installation and authentication, see the Quickstart Guide. For a complete list of resources and flags, see the Command Reference.Documentation Index
Fetch the complete documentation index at: https://docs.dualentry.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before running any workflow on this page, complete the steps in the Quickstart Guide:- The CLI is installed and on your
PATH. - You’re authenticated (
dualentry auth login) or haveX_API_KEYset for CI/CD. - You have read access to the resources used in each workflow (invoices, bills, journal entries).
Review outstanding invoices
This workflow shows accountants and developers how to identify outstanding invoices and export them for further analysis.Steps
Step 1 - List your invoices:Status column (e.g., posted, archived) so you can see at a glance which invoices are still outstanding.
Step 2 - Discover available filters for the invoices resource:
journal-entries and bills (--start-date, --end-date, --status) may also be available on invoices - --help is the source of truth for your installed version.
Step 3 - Pull the full details on a specific invoice:
INV-ID with the ID from the list output. This shows all the detail for a single invoice - line items, customer, amounts, and status.
Step 4 - Export to JSON for further analysis:
> operator redirects the output to a file instead of printing it to screen.
Result: You have an exported JSON file of your invoice data, ready for downstream filtering and analysis with tools like jq, Python, or Excel.
Run a month-end journal entry review
This workflow shows accountants (and the developers supporting them) how to review every journal entry booked in a given month before closing the books.Steps
Step 1 - List journal entries for the month:--start-date and --end-date flags are confirmed on journal-entries. This returns every journal entry booked in March.
Step 2 - Fetch all pages if the list is long:
--all fetches every page so you don’t miss anything - important during close when completeness matters.
Step 3 - Spot-check a specific entry:
JE-ID with the ID from your list. This pulls the full detail - debits, credits, accounts, memo, posting date - for a single journal entry so you can verify it’s correct.
Step 4 - Export the full month for the workpaper file:
Combining
--all with --format json gives you a complete, machine-readable export. This is the fastest way to pull data out of DualEntry for external analysis.Automate bill status checks in CI/CD
This workflow shows developers how to build automation around accounts payable - for example, a scheduled job that checks for new posted bills and sends a notification to Slack, or a pipeline that reconciles bill data against another system.Steps
Step 1 - Set up authentication for your pipeline: In your CI/CD environment (GitHub Actions, Jenkins, etc.), addX_API_KEY as a secret. The CLI uses this automatically when the environment variable is set - no browser-based login required.
--status and --format flags are confirmed on bills. JSON output makes it straightforward to parse programmatically.
Step 3 - Pipe into jq or another tool:
Inspect the raw JSON output once to confirm the exact field names available on your version, then build your jq filter against those keys. For example, after inspecting the output:
Tips for all workflows
The tips below apply across every workflow on this page and will save time as you build your own.- Start with
--help- the CLI is evolving fast and flags may change between versions.dualentry [resource] list --helpis your source of truth. - Use
--format jsonfor anything automated - table output is great for humans but brittle for scripts. - Combine
--allwith JSON for complete exports - don’t assume the first page is everything. - The CLI is read-heavy today - while
createandupdateexist, the highest-value use cases right now tend to be listing, filtering, and exporting data.
