freshbooks-cli
FreshBooks CLI for managing invoices, clients, and billing. Use when the user mentions freshbooks, invoicing, billing, clients, or accounting.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- freshbooks-cli
- metadata
- { "openclaw": { "emoji": "💰", "install": [ { "id": "npm", "bins": [ "freshbooks" ], "kind": "node", "label": "Install freshbooks-cli (npm)", "package": "@haseebuchiha/freshbooks-cli" } ], "requires": { "bins": [ "freshbooks" ] } } }
- description
- FreshBooks CLI for managing invoices, clients, and billing. Use when the user mentions freshbooks, invoicing, billing, clients, or accounting.
03 SKILL.md 正文
freshbooks-cli
CLI tool for managing FreshBooks invoices, clients, and billing. Uses the official @freshbooks/api SDK.
Install
npm install -g @haseebuchiha/freshbooks-cli
Requires .npmrc with @haseebuchiha:registry=https://npm.pkg.github.com for GitHub Package Registry.
Setup (once)
Authenticate with FreshBooks OAuth2. You must use the --manual flag (localhost redirect does not work with FreshBooks).
freshbooks auth login \
--client-id "<FRESHBOOKS_CLIENT_ID>" \
--client-secret "<FRESHBOOKS_CLIENT_SECRET>" \
--manual
This opens the browser. Authorize, then copy the code from the page and paste it into the CLI. Tokens are stored at ~/.config/freshbooks-cli/config.json (0600 permissions) and auto-refresh before expiry.
Verify: freshbooks auth status
Auth commands
freshbooks auth login --client-id <id> --client-secret <secret> --manual-- authenticate via OAuth2 OOB flowfreshbooks auth logout-- clear stored tokens and credentialsfreshbooks auth status-- show account ID, token expiry, and auth statefreshbooks auth refresh-- manually refresh the access token
Clients commands
freshbooks clients list [-p <page>] [--per-page <n>] [-s <search>]-- list clients, search by org namefreshbooks clients get <id>-- get a single client by IDfreshbooks clients create [--fname <name>] [--lname <name>] [--email <email>] [--organization <org>]-- create a clientfreshbooks clients create --data '<json>'-- create with full JSON payloadfreshbooks clients update <id> --data '<json>'-- update a client
Example: freshbooks clients create --fname "Taha" --organization "abcg.io"
Invoices commands
freshbooks invoices list [-p <page>] [--per-page <n>]-- list invoicesfreshbooks invoices get <id>-- get a single invoice by IDfreshbooks invoices create --client-id <id> [--lines '<json>']-- create an invoice with line itemsfreshbooks invoices create --client-id <id> --data '<json>'-- create with full JSON payloadfreshbooks invoices update <id> --data '<json>'-- update an invoicefreshbooks invoices archive <id>-- archive an invoice (no permanent delete in FreshBooks)freshbooks invoices share-link <id>-- get a shareable link for an invoice
Line items format
Lines are a JSON array. Each line has name, qty, and unitCost (money object):
[
{"name": "Web Services", "qty": 1, "unitCost": {"amount": "15000.00", "code": "USD"}},
{"name": "App Services", "qty": 1, "unitCost": {"amount": "15000.00", "code": "USD"}}
]
Example (full invoice create):
freshbooks invoices create --client-id 818183 \
--lines '[{"name":"Web Services","qty":1,"unitCost":{"amount":"15000.00","code":"USD"}},{"name":"App Services","qty":1,"unitCost":{"amount":"15000.00","code":"USD"}}]'
Workflows
Onboard a new client and invoice them
freshbooks clients create --fname "Name" --organization "Company"-- note the returnedidfreshbooks invoices create --client-id <id> --lines '[...]'-- create the invoicefreshbooks invoices share-link <invoice-id>-- get shareable link
Look up billing for a client
freshbooks clients list -s "company name"-- find the client IDfreshbooks invoices list-- list all invoices (filter by client in output)freshbooks invoices get <id>-- get full invoice details
Notes
- All output is JSON to stdout. Pipe to
jqfor filtering:freshbooks clients list | jq '.clients[].organization' - Money values are
{"amount": "string", "code": "USD"}. The amount is always a string like"30000.00", never a number. Do not use parseFloat on money. archivesets vis_state=1. FreshBooks does not support permanent deletion.- Tokens auto-refresh. If refresh fails, re-run
freshbooks auth login --client-id <id> --client-secret <secret> --manual. - Client credentials can also be read from env vars
FRESHBOOKS_CLIENT_IDandFRESHBOOKS_CLIENT_SECRET(takes priority over stored config). - Always use
--manualfor auth login. The localhost callback redirect URI does not work with FreshBooks. - Confirm with the user before creating invoices or modifying billing data.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.