@flowapt/flowiq-cli
v0.1.2
Published
Command-line tool for FlowIQ staff: round-trip agent prompts, questionnaires, webhooks, and more without ever touching service-role credentials.
Maintainers
Readme
flowiq
FlowIQ staff CLI. Round-trips agent prompts, questionnaires, webhooks, and
other internal config through https://api.flowiq.live/cli/* so the Supabase
service role never leaves the server.
Install
npm i -g @flowapt/flowiq-cliAuthenticate
Get a personal staff API key from your FlowIQ admin (an fiq_staff_…
string). Then:
flowiq auth login
# paste your key when promptedYour key is saved to ~/.config/flowiq/auth.json with chmod 600. To
verify what you're authenticated as:
flowiq auth whoamiTo log out (deletes the local key file, does NOT revoke the key server-side — ask your admin to revoke):
flowiq auth logoutCommands
flowiq prompts pull <organization_id>
Fetches the active WhatsApp agent's prompt_sections and writes them to
./.flowiq/prompts/<org-slug>.json.
flowiq prompts pull 0689d0be-ba76-43d9-a0d5-f4d59c1db537
# → wrote .flowiq/prompts/kickz-sa-african-oils.json (18 sections, 18,747 chars)flowiq prompts push <slug-or-path>
Reads the JSON file and sends the prompt_sections array back to the
server, which regenerates the agent's system_prompt.
flowiq prompts push kickz-sa-african-oils
# → pushed 18 sections, system_prompt now 17,337 charsEnvironment variables
| Var | Default | Use |
|---|---|---|
| FLOWIQ_API_URL | https://api.flowiq.live | Override the API host (e.g. local dev). |
| FLOWIQ_TOKEN | (saved in ~/.config/flowiq/auth.json) | Override the auth token, useful for CI. |
License
UNLICENSED. Internal staff tool — install requires a valid fiq_staff_…
key issued by a FlowIQ super-admin.
