The official Command Line Interface for the DLBR Fiscalization and e-Invoicing Edge Infrastructure.
The DLBR CLI provides deterministic, typed execution of fiscal receipts, invoice drafting, and tenant management natively from your terminal.
You can run the CLI directly via npx, or install it globally for native autocomplete and instant access:
# Run without installing
npx @dlbr/cli help
# Install globally
npm install -g @dlbr/cliAll interactions with the API require an authenticated session. The DLBR CLI does not rely on static sandbox keys or hardcoded tokens.
- Generate an API Key from your workspace dashboard.
- Run the login command:
dlbr login
# You will be securely prompted to paste your tokenYou can also bypass the prompt in CI/CD environments by passing the token explicitly:
dlbr login --token <your_token>Check your active identity:
dlbr whoamiThe DLBR CLI supports instant, native terminal autocomplete for both zsh and bash. Because the autocomplete hook evaluates natively, it introduces zero Node.js startup penalty when hitting Tab.
Add the following to your ~/.zshrc:
eval "$(dlbr completion zsh)"Add the following to your ~/.bashrc:
eval "$(dlbr completion bash)"Once reloaded, typing dlbr [Tab] will instantly list available commands and their descriptions without falling back to local file parsing.
Authenticate and manage your identity.
dlbr login- Authenticate with the DLBR SEF APIdlbr me(ordlbr whoami) - Display information about the current authenticated session
Manage Fiscalization transactions.
dlbr fiscal status <transactionId>- Check the status of a POS transactiondlbr fiscal list- List fiscal receipts from the internal ledger
Manage SEF invoices.
dlbr invoice status <id>- Check the SEF status of an invoice by its IDdlbr invoice list- List invoices from the internal registry
Manage active workspace configuration.
dlbr workspace set <id>- Set the active workspace IDdlbr workspace get- Get the currently configured active workspace ID
Manage UBL/SEF document storage.
dlbr document list- List stored documentsdlbr document put <filePath>- Upload a document to storagedlbr document get <fileId>- Download a stored document
By default, the CLI points to https://api.dlbr.cloud. For local development or isolated staging environments, you can override the base endpoint via environment variables:
DLBR_API_URL=http://localhost:8787 dlbr whoamiThe DLBR CLI treats the client environment as hostile. It performs zero offline validation or local financial calculations. It exists purely as a highly optimized presentation and transport layer.
All role-based access control, cryptographic unsealing, and transaction sequencing guarantees are securely enforced at the Cloudflare Edge and D1/R2 layer.
MIT © DLBR