Queek OS from the terminal
Use Queek OS from a shell, a script or a coding agent with the Queek CLI. Sign in, pick a store, call tools and approve sensitive changes.
The Queek CLI gives you the same Queek OS tools as the Claude and ChatGPT connector, from a terminal. Use it from a script, a CI job, an SSH session, or a coding agent that can run shell commands. It is for store owners and staff, not only developers.
It acts on the stores you choose when you sign in, with your own Queek role, and the same safeguards as the connector: sensitive changes wait for your approval.
Install
You need Node 22.12 or later.
npm i -g @usequeek/cli
queek --versionSign in
queek auth loginThe CLI opens your browser. With no browser or terminal to open one in (a sandbox, an SSH
session, CI) it uses a device code automatically. Add --device to force it:
queek auth login --deviceThe CLI prints a code and a link. Open dashboard.usequeek.com/device on any device, sign in and enter the code. The approval page shows:
- Who asked — the IP address and device that requested the sign-in. Approve only a request you started.
- Your stores, each labelled live or dev. By default the sign-in reaches all your stores, including ones you open later. Limit it to specific stores if you prefer.
- Allow changes on live stores, off by default. A dev store can be changed either way. Leave it off for a read-only sign-in to your live stores.
If you are a developer, the same sign-in also carries your developer tools (apps, themes and dev
stores), so queek app … and queek theme … work without a second login.
Queek emails you each time a sign-in is approved. A staff member's reach follows their current role: if the role changes, so does what the CLI can do.
queek auth logoutqueek auth logout ends the sign-in everywhere, not only on this machine.
Choose a store
queek storesEach store is listed with its p_id, name and whether it is live or dev. Set the default store for
later commands:
queek store use 1095With a single store, the CLI picks it automatically.
List the tools
queek tools
queek tools --jsonThese are the same tools as in What Queek OS can do, with the same names.
Call a tool
queek call get_store_overview '{}'
queek call list_products '{}' --store 1095queek call <tool> '<json>' sends the arguments as JSON and prints the result as JSON. Use
--store <p_id> to act on a store other than your default.
Approve sensitive changes
Changes that are permanent or store-wide, the ones marked Confirm first in
What Queek OS can do, do not run straight away. The call prints an
approval link and a code, then exits with code 3. Open the link and approve the change in your
browser.
To wait for the approval inside the same command, add --wait:
queek call <tool> '<json>' --store 1095 --wait| Exit code | Meaning |
|---|---|
0 | Approved, and the change ran. |
4 | Refused. |
3 | Still waiting, or the wait timed out. |
Without --wait, or after a timeout, check on the change later with the code the call printed:
queek call confirmation_status '{"code":"<code>"}'Never re-run the original call to check
Running the original call again creates a second pending change. Always check with
confirmation_status.
Errors
| You see | What it means | Fix |
|---|---|---|
| It asks you to pick a store | You have several stores and the call named none. | Pass --store <p_id>, or run queek store use <p_id>. |
| Access denied | The store is outside this sign-in. | Run queek auth login again and include that store. |
| A change to a live store is refused | The sign-in does not allow changes on live stores. | Run queek auth login again and switch on Allow changes on live stores. |
Remove access
To end the sign-in on this machine and everywhere else, run queek auth logout.
A store owner can also remove a connection from the store itself: open Settings → Connections in the dashboard or the mobile app, on any store it reaches. The sign-in then loses that store.