tillie CLI commands
A list of the tillie CLI’s command groups, common options, store scope, credits for generating product photos, and output formats. See all options for a command with tillie <command> --help, and the full machine-readable list with tillie --agent describe.
Common options
These can be added to any command.
| Option | Description |
|---|---|
--agent |
Preset for AI agents. Fixes output to JSON and sends update notices to stderr as JSON |
--quiet |
Low-token output preset, the same as --agent |
--output <json|table> |
Output format. Default table |
--fields <csv> |
Include only the chosen top-level fields in the output (comma-separated) |
--full |
Include the audit and metadata fields left out by default |
--no-update-check |
Turn off new-version checks and notices |
--api-url <url> |
Change the API address. Default https://dillie.work, environment variable TILLIE_API_BASE_URL |
--workspace <tenantId or name> |
Run only this command in that workspace without changing the current one. The environment variable TILLIE_WORKSPACE does the same (the option wins). Applies to stores, menu, inventory, recipes, orders, receipts, sales and whoami. Use it when several terminals or agents work in different workspaces at once — workspace use changes the current workspace for every terminal |
--version |
Print the CLI version |
Account and workspace
| Command | Description |
|---|---|
tillie login |
Sign in through the browser. --device uses code entry; --workspace <tenantId> preselects that workspace on the approval screen |
tillie logout |
Revoke the session on the server and delete the saved session |
tillie whoami |
Ask the server for this session’s name, email, and workspace, and show them with the CLI version |
tillie workspace list |
Workspaces you belong to. The current workspace is marked |
tillie workspace use <tenantId or name> |
Switch the current workspace without a browser |
tillie upgrade |
Replace the CLI with the latest release |
tillie describe |
Print the manifest for AI agents (commands, options, conventions, examples, CLI version) as JSON |
Installing and signing in are covered in Install the tillie CLI.
Command groups
| Group | What it covers | Subcommands |
|---|---|---|
brands |
Brands in the current workspace (including logos) | list, get, create, update, logo |
stores |
Stores in the current workspace that your role assignments reach (by brand), and creating stores and changing their basic settings | list, get, create, update |
menu categories |
Menu categories | list, create, update, move, delete |
menu items |
Products (translations, photos, prices, options, set items, sale status) | list, get, create, update, sale, delete |
menu option-groups |
Option groups | list, get, create, update, archive |
menu photos |
Product gallery photos | list, download, generate, status |
inventory |
Stock, lots, receiving, issuing, adjustments, transfers, stock counts, storage locations, disposals, suppliers, purchase terms, and automatic deduction on sale | stock, lots, balance, items, movements, adjust, receive, transfer, transfers, counts, locations, zones, deduction, disposals, dispose, suppliers, offers |
recipes |
Recipes, ingredients, product links, cooking instructions, and importing and proposing shared recipes | list, get, create, update, candidates, ingredients, links, platform, import, promote, cooking-doc |
orders |
Orders (read-only) | search, get |
receipts |
Receipts (read-only) | search, get |
sales |
Sales reports (read-only) | summary, items, tenders, business-days, business-day |
Store scope
What you can see and change is set by the scopes you approved at sign-in and your store assignments. tillie stores list also shows the data you can read for each store (reads). Searches in orders, receipts, and sales cover every store whose data you can read unless you pass --store. Periods are in the store’s local date (--from, --to, YYYY-MM-DD, both ends inclusive).
tillie stores list
tillie sales summary --from 2026-11-01 --to 2026-11-15
tillie orders search --store <storeId> --from 2026-11-01 --to 2026-11-15
Creating and changing brands and stores
Create a brand, then create stores under it. A store’s business type (FNB, RETAIL, SERVICE) cannot be changed once the store has opened a business day, so choose it when you create the store. Time zone, locale, and currency come from the workspace.
tillie brands create "Pho House"
tillie brands list
tillie brands logo <brandId> ./logo.png
tillie brands update <brandId> --name "Pho House" --translation en.name="Pho House" --translation vi.name="Nhà Phở"
tillie stores create --brand <brandId> --name "District 1" --vertical FNB --phone +84901234567
If brands logo stops because processing takes too long, rerun it with the --file-id shown in the error to attach that upload without sending it again.
brands update --translation <locale>.name=<name> changes only that language and leaves the other translations as they are — an empty value removes that language’s translation. --clear-logo removes the logo. With --if-match <etag> (the etag from brands get), the change is refused if someone else saved the brand in the meantime.
stores update changes the same basic settings as the store settings screen, and only what you pass. An empty value ("") clears the phone, time zone, or locale (time zone and locale then follow the workspace). The address is given in parts — --country (ISO country code), --region (province or city), --city (city or district — the ward or commune in Vietnam), --street (street and number), --detail (floor or unit), --postal-code. Only the parts you pass change, and an empty value clears that part. The server builds the one-line address printed on receipts from these parts. --clear-address removes the address parts and the one-line address; the country stays (change it with --country). Closing a store with --status CLOSED archives its store channel, blocks invitations, and revokes the staff role assignments scoped to that store (reopening does not restore them). With --if-match <etag> (the etag of tillie stores get), the change is refused if someone else saved the store since.
tillie stores update <storeId> --name "District 1 (Ben Thanh)" --timezone ""
tillie stores update <storeId> --country VN --region "TP. Hồ Chí Minh" --city "Phường Sài Gòn" --street "123 Lê Lợi"
If a create command loses its response, the brand or store may have been created already. Check with tillie brands list or tillie stores list first. Rerunning within 24 hours with the --idempotency-key shown in the error replays the saved first result (the server does not otherwise check for duplicates).
These commands need a session that approved “Manage stores and brands” at sign-in. If you signed in before these commands were added, run tillie login again and approve it.
Download and generate product photos
Product gallery photos exist per kind (ORIGINAL, TOP_DOWN_CUTOUT, EYE_LEVEL_CUTOUT, MAIN, OTHER).
tillie menu photos list <itemId>
tillie menu photos download <itemId> --dir ./photos
download saves to <dir>/<itemId>/<kind>-<photoId>.<ext> and places an item.json next to them with the product details and photo list. Files that already exist are skipped (use --overwrite to download them again).
generate uses AI to make a top-down cutout, an eye-level cutout and a menu photo from one real photo. It spends credits. One run makes them and adds them to the item’s gallery by kind. The --source photo goes in as ORIGINAL (except with --refine). --no-save keeps them as drafts. The result’s settlement shows the credits used.
tillie menu photos generate <itemId> --source ./real.jpg
You can also see the result and the credits used by request id.
tillie menu photos status <requestId>
--source is a local file (jpg, png, webp, gif, up to 5 MB) or a ready product image file id. --kinds picks which photos to make, and --refine <instruction> changes one earlier result by instruction. If the run stopped before you got the result, run the --request-id command it printed to pick up the same request.
Output formats
- The default output is a human-readable table (
table). With--output jsonor--agent, it is JSON. - With
--agent, errors go to stderr as{ "error": { … } }and update notices go to stderr as{ "advisory": { … } }. - Responses leave out audit and metadata fields by default. Use
--fullto see everything, or--fieldsto see only some.