CLI
@dhahaby-com/aurelia-cli needs Node 20 or later.
npm i -g @dhahaby-com/aurelia-cli
aurelia price
aurelia estimate --karat 21 --grams 40
aurelia login # opens Dhahaby sign-in with a short code
aurelia pieces
| Command | What it does | Sign-in |
|---|---|---|
price | Gold price per gram, 24K to 18K | no |
estimate --karat K --grams G | Indicative value, loan and card limits | no |
products | Gold-backed loan vs card | no |
jewellers | Partner jewellers for a certified appraisal | no |
login / logout | Device-code sign-in / revoke this device | |
whoami, pieces, status | Your account, gold pieces, applications and appraisals | yes |
tools, run <tool> key=value… | List or call any tool | |
mcp | Run as a stdio MCP server |
--json prints machine-readable output; --server or AURELIA_SERVER sets the server. Exit codes: 0 ok, 2 bad input, 3 not signed in, 4 not allowed, 5 server problem.
Credentials are stored in ~/.config/aurelia/credentials.json (mode 0600) and refreshed automatically.