Usage¶
The best place to start is the Quickstart.
Available Commands¶
xerotrust provides several commands to interact with your Xero data:
xerotrust login- Authenticate with Xeroxerotrust tenants- List available tenantsxerotrust explore {ENDPOINT}- Explore data from specific endpointsxerotrust export- Export data to filesxerotrust reconcile- Compare and validate data consistency between sourcesxerotrust check {ENDPOINT}- Validate data exported from an endpoint
For help with any command, use:
xerotrust {COMMAND} --help
xerotrust {COMMAND} --help
Export File Structure¶
When you export data, xerotrust creates this folder structure:
export-folder/
├── Tenant Name 1/
│ ├── tenant.json # Tenant metadata
│ ├── latest.json # Export tracking information
│ ├── accounts.jsonl # Chart of accounts
│ ├── contacts.jsonl # Contacts and customers
│ ├── journals-....jsonl # Journal entries split by journal date
│ └── transactions-....jsonl # Bank transactions split by transaction date
└── Tenant Name 2/
├── tenant.json
├── latest.json
└── ...
Basic Usage Examples¶
Export all data:
xerotrust export
xerotrust export
Export specific data types:
xerotrust export contacts journals
xerotrust export contacts journals
Update existing export:
xerotrust export --update
xerotrust export --update
Validate your exported data:
xerotrust check journals */journals-*.jsonl
xerotrust check transactions */transactions-*.jsonl
xerotrust check journals *\journals-*.jsonl
xerotrust check transactions *\transactions-*.jsonl
Reconcile journals with bank transactions:
xerotrust reconcile journals=*/journals-*.jsonl transactions=*/transactions-*.jsonl
xerotrust reconcile journals=*\journals-*.jsonl transactions=*\transactions-*.jsonl