Imported from roarkhq/cli-roark-analytics (
SKILL.md). Install upstream withnpx skills add roarkhq/cli-roark-analytics. Copyright stays with the author.
roark CLI
Generated CLI for the Roark Analytics API. Prefer it over hand-written curl: it handles
authentication, retries and error reporting, and its command names are checked against
the spec.
Install
npm install -g @roarkanalytics/cli
Authenticate
Set ROARK_API_BEARER_TOKEN, or run roark auth login. Never pass a token
as a flag in a script: it lands in shell history and in the process table.
Shape of a command
roark <resource> [<sub-resource>...] <verb> [<id>...] [--flags]
Verbs are list, get, create, update, delete, plus a few genuinely different
operations (run, start, lookup, promote, replace). There is no post,
put or retrieve. Identifiers are positional; everything else is a flag.
Rules
- Output is JSON on stdout and errors are on stderr. Pipe to
jqfreely. - Exit codes: 0 ok, 1 API error, 2 usage, 3 auth, 4 not found, 5 connection.
deleteprompts unless--yesis given; always pass--yesin a script.- A whole request body can be given with
--data @file.jsonor on stdin, and individual flags override what it contains. - Do not guess command names or flags. They are listed below; anything not listed
is reachable through
roark api <method> <path>.
Commands
roark agent build --name <value> --job-description <value>- Build a Roark-hosted agentroark agent create --name <value>- Create a new agentroark agent endpoint create --agent-id <value> --value <value> --direction <value>- Create a new agent endpointroark agent endpoint get <endpoint-id>- Get agent endpoint by IDroark agent endpoint list- List agent endpointsroark agent endpoint update <endpoint-id>- Update an agent endpointroark agent get <agent-id>- Get agent by IDroark agent list- List agentsroark agent prompt list <agent-id>- List an agent's promptsroark agent prompt update <agent-id> --prompt <value>- Set an agent's promptroark agent prompt version list <agent-id> <prompt-id>- List a prompt's versionsroark agent update <agent-id>- Update an agentroark agent-config get <key>- Get a managed configroark agent-config list- List managed configsroark agent-config promote <key>- Promote staging to productionroark agent-config resolve <key>- Resolve config for a sessionroark agent-config staging delete <key>- Discard the staging revisionroark agent-config update <key> --channel <value> --document <value>- Write a config revisionroark autoimprove job answer <job-id> --text <value>- Answer Roark's questionroark autoimprove job cancel <job-id>- Cancel a jobroark autoimprove job create --agent-id <value> --objective-metric-definition-id <value> --objective-label <value>- Start an Autoimprove jobroark autoimprove job dismiss <job-id>- Dismiss a verified jobroark autoimprove job get <job-id>- Get an Autoimprove jobroark autoimprove job guidance send <job-id> --text <value>- Send guidance to a running jobroark autoimprove job list- List Autoimprove jobsroark autoimprove job promote <job-id>- Promote a verified job to productionroark benchmark leaderboard get --suite <value>- Get the benchmark leaderboardroark benchmark metric list --suite <value>- List benchmark metricsroark benchmark suite list- List benchmark suitesroark benchmark target get <target-key> --suite <value>- Get a benchmark targetroark benchmark target history list <target-key> --suite <value>- List a target’s published generationsroark benchmark target score-sample list <target-key> --suite <value>- List score samples for a targetroark call create --recording-url <value> --started-at <value> --interface-type <value> --call-direction <value> --customer.phone-number-e164 <value>- Create a callroark call get <call-id>- Get a call by IDroark call list- List callsroark call metric list <call-id>- List call metricsroark call sentiment-run list <call-id>- List call sentiment runsroark call tool-invocation append <call-id> --tool-invocations <value>- Append tool invocations to a callroark call transcript get <call-id>- Get call transcriptroark config apply [dir]- Reconcile the project to a config directory (or bundle). Previews and confirms first.roark config diff [dir]- Preview the changes a config directory (or bundle) would make. No writes.roark customer-flow create --data '{...}'- Create a customer flowroark customer-flow delete <flow-id>- Delete a customer flowroark customer-flow duplicate <flow-id>- Duplicate a customer flowroark customer-flow edge-case create <flow-id> --title <value>- Add an edge caseroark customer-flow edge-case delete <flow-id> <edge-case-id>- Remove an edge caseroark customer-flow edge-case promote <flow-id> <edge-case-id>- Promote an edge case to the happy pathroark customer-flow edge-case update <flow-id> <edge-case-id>- Update an edge caseroark customer-flow get <flow-id>- Get customer flow by IDroark customer-flow graph replace <flow-id> --graph <value>- Replace a scripted flow's stepsroark customer-flow happy-path update <flow-id>- Update a flow's happy pathroark customer-flow list- List customer flowsroark customer-flow update <flow-id> --off-script-policy.reaction <value> --off-script-policy.max-attempts <value> --off-script-policy.then <value>- Update a customer flowroark health- Get API health statusroark http-request-definition create --scope <value> --url <value>- Create HTTP request definitionroark http-request-definition get <definition-id>- Get HTTP request definition by IDroark http-request-definition list- List HTTP request definitionsroark http-request-definition update <definition-id>- Update HTTP request definitionroark metric collection-job create --metrics <value>- Create and run a metric collection jobroark metric collection-job get <job-id>- Get metric collection job by IDroark metric collection-job list- List metric collection jobsroark metric definition create --data '{...}'- Create custom metric definitionroark metric definition list- List metric definitionsroark metric definition update <id-or-slug>- Update a metric definitionroark metric policy create --name <value> --modality <value> --metrics <value>- Create a metric policyroark metric policy delete <policy-id>- Delete a metric policyroark metric policy get <policy-id>- Get metric policy by IDroark metric policy list- List metric policiesroark metric policy update <policy-id>- Update a metric policyroark metric variant create <id-or-slug> --name <value>- Create a metric variantroark metric variant delete <id-or-slug> <variant-id>- Delete a metric variantroark metric variant get <id-or-slug> <variant-id>- Get a metric variantroark metric variant list <id-or-slug>- List a metric’s variantsroark metric variant update <id-or-slug> <variant-id>- Update a metric variantroark project list- List projects available to this credentialroark simulation environment create --name <value> --background-noise <value>- Create an environmentroark simulation environment delete <environment-id>- Delete an environmentroark simulation environment get <environment-id>- Get environment by IDroark simulation environment list- List environmentsroark simulation environment update <environment-id>- Update an environmentroark simulation job get <job-id>- Get simulation by IDroark simulation job lookup --roark-phone-number <value>- Lookup by phone numberroark simulation job tool-mock list <job-id>- List mocked tool invocationsroark simulation persona create --name <value> --language <value> --accent <value> --gender <value>- Create a new personaroark simulation persona get <persona-id>- Get persona by IDroark simulation persona list- List personasroark simulation persona update <persona-id>- Update a personaroark simulation plan create --name <value> --direction <value> --max-simulation-duration-seconds <value> --agent-endpoints <value> --metrics <value>- Create a run planroark simulation plan delete <plan-id>- Delete a run planroark simulation plan get <plan-id>- Get run plan by IDroark simulation plan job cancel <job-id>- Cancel a simulation plan jobroark simulation plan job get <job-id>- Get simulation plan jobroark simulation plan job list- List simulation plan jobsroark simulation plan job start <plan-id>- Run a simulation planroark simulation plan list- List run plansroark simulation plan update <plan-id>- Update a run planroark simulation run --data '{...}'- Run a simulationroark simulation template list- List simulation templatesroark simulation tool mock --simulation-job-id <value> --tool-name <value>- Mock a tool call during a test callroark simulation tool-fixture create --tool-name <value>- Set a tool fixtureroark simulation tool-fixture delete <fixture-id>- Delete a tool fixtureroark simulation tool-fixture list- List tool fixturesroark simulation tool-fixture update <fixture-id>- Update a tool fixtureroark webhook create --url <value> --events <value>- Create webhookroark webhook delete <webhook-id>- Delete webhookroark webhook get <webhook-id>- Get webhook by IDroark webhook list- List webhooksroark whoami- Describe the current credential
Optional flags
Run roark <command> --help for the full flag list of any command, including
types, allowed values and which are repeatable.
