Queek docs

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.

Install the Queek CLI
npm i -g @usequeek/cli
queek --version

Sign in

Sign in
queek auth login

The 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:

Sign in with a device code
queek auth login --device

The 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.

Sign out everywhere
queek auth logout

queek auth logout ends the sign-in everywhere, not only on this machine.

Choose a store

List your stores
queek stores

Each store is listed with its p_id, name and whether it is live or dev. Set the default store for later commands:

Set the default store
queek store use 1095

With a single store, the CLI picks it automatically.

List the tools

List the Queek OS tools
queek tools
queek tools --json

These are the same tools as in What Queek OS can do, with the same names.

Call a tool

Call a tool
queek call get_store_overview '{}'
queek call list_products '{}' --store 1095

queek 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:

Call and wait for approval
queek call <tool> '<json>' --store 1095 --wait
Exit codeMeaning
0Approved, and the change ran.
4Refused.
3Still waiting, or the wait timed out.

Without --wait, or after a timeout, check on the change later with the code the call printed:

Check a pending change
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 seeWhat it meansFix
It asks you to pick a storeYou have several stores and the call named none.Pass --store <p_id>, or run queek store use <p_id>.
Access deniedThe store is outside this sign-in.Run queek auth login again and include that store.
A change to a live store is refusedThe 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.

On this page