@qikdev/cli
v2.0.0-alpha.3
Published
The qik platform from your terminal — for people, scripts and AI agents
Readme
qik CLI
The qik platform from your terminal — for people, scripts and AI agents. One self-contained binary for macOS, Linux and Windows; no Node.js needed.
REST API docs · SDK docs · qik.dev
Install
macOS or Linux — paste into Terminal:
curl -fsSL https://app.qik.dev/install.sh | shWindows — paste into PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://app.qik.dev/install.ps1 | iex"Homebrew:
brew tap qik/tap https://gitlab.com/qikdevelopers/cli.git
brew install qik/tap/qiknpm (handy for AI coding agents, which usually have Node):
npm install -g @qikdev/cli # or run it without installing: npx @qikdev/cli <command>Each installs one self-contained binary — nothing else is needed to run it. The install scripts put it in your home folder (no admin rights) and verify the download against npm's published checksum.
Updating: run the same install command again, or brew upgrade qik /
npm update -g @qikdev/cli. qik tells you, at most once a day, when a newer
version is out.
Get started
qik login # sign in through your browser and pick an organisation
qik whoami
qik types # content types in your organisation
qik schema profile # a type's fields
qik list profile -w lastName=Smith --select firstName,lastName,emails
qik get <id>
qik create article title="Season launch" data.body="<p>Hi</p>"
qik update <id> title="New title"
qik delete <id> --yes
qik upload Road_Trip_Plan.pdf --scope Internal # scope name or id
qik download <id> -o plan.pdfAnything the commands don't cover:
qik tools search merge duplicates # find a server tool
qik tools describe start_merge # its arguments
qik call start_merge ids:='["…","…"]'
qik api GET /user/organisations # any REST endpointqik call runs the same tools AI assistants use through qik's hosted MCP
server, with the same validation and dry-run defaults — new tools show up
without a CLI update.
Sign-in
| | |
|---|---|
| qik login | Browser sign-in (OAuth with PKCE); you choose the organisation on the consent screen. Tokens refresh automatically. |
| qik login --org <key> | Preselect an organisation. |
| qik login --with-token | Store a token read from stdin, e.g. an application at-… token. |
| QIK_TOKEN=… | Use a token for one command without storing it — for CI. Create a narrow, long-lived one with qik call create_api_token. |
| qik switch <org> | Move the stored login to another organisation. |
| --profile <name> | Keep several logins side by side. |
Credentials are stored in credentials.json in your config directory
(~/Library/Application Support/qik, ~/.config/qik, or %APPDATA%\qik;
override with QIK_CONFIG_DIR), readable only by you.
For scripts and AI agents
- Piped output is compact single-line JSON; a terminal gets tables. Force either with
--jsonor--format json|ndjson|table|text. - Empty values are dropped from output (
--rawkeeps them).qik listreturns only_idandtitleunless you--selectfields, and--limitdefaults to 20 — so a query costs only the tokens it needs. - stdout carries data only; notes and errors go to stderr (errors as JSON when output is JSON).
qik deleterefuses to run without--yeswhen there's no terminal to confirm in.
Exit codes:
| Code | Meaning | |---|---| | 0 | OK | | 1 | Error | | 2 | Usage error (bad flags or arguments) | | 3 | Not logged in, or the login expired | | 4 | Not found | | 5 | Forbidden | | 6 | Validation failure or conflict | | 7 | Rate limited |
Environment
| Variable | |
|---|---|
| QIK_TOKEN | Access token to use instead of the stored login |
| QIK_API_URL | production (default), local, or a URL |
| QIK_PROFILE | Credentials profile (default default) |
| QIK_FORMAT | Default output format |
| QIK_CONFIG_DIR | Where credentials are stored |
| NO_COLOR | Disable colour |
Shell completion
qik completions zsh > "${fpath[1]}/_qik" # or bash, fish, powershell, elvishDevelopment
Building needs Rust; using the CLI doesn't.
cargo test
cargo clippy
cargo run -- --api local whoamiReleasing (version in Cargo.toml):
node scripts/build-npm.mjs # build every platform (needs zig + cargo-zigbuild)
scripts/publish-npm.sh # publish to npm (you'll approve with 2FA)
node scripts/update-homebrew.mjs # point the Homebrew formula at the new release, then commitThe install scripts live in install/; the copies served from app.qik.dev are
in the admin repo's public/ folder.
