Description
There is no CLI command to cancel a pending invoice. Freelancers managing invoices from the terminal need this for cleanup workflows.
Requirements and context
iln cancel --id X
- Fetch invoice first and confirm it is in
Pending state; show an error if not
- Show confirmation prompt: "Cancel Invoice #X (100 USDC, due 2025-12-31)? This cannot be undone. [y/N]"
- Print
Invoice #X cancelled. TX: [hash] on success
Suggested execution
git checkout -b feat/cli-cancel
- Create
cli/src/commands/cancel.ts
- Register command in CLI entry point
- Write tests
Example commit message
feat(cli): add iln cancel command for pending invoice cancellation
Description
There is no CLI command to cancel a pending invoice. Freelancers managing invoices from the terminal need this for cleanup workflows.
Requirements and context
iln cancel --id XPendingstate; show an error if notInvoice #X cancelled. TX: [hash]on successSuggested execution
cli/src/commands/cancel.tsExample commit message
feat(cli): add iln cancel command for pending invoice cancellation