
Apidog Cli
- 147 installs
- apidog.com
apidog-cli is a Claude skill that drives the Apidog CLI to manage API project resources and run API automation tests.
About
This skill drives the Apidog CLI to manage a project's API resources: endpoints, environments, schemas, mocks, branches, imports/exports, and CI/CD config. A developer uses it to run API automation tests and test suites, query or edit project resources, and view test reports without guessing payloads. It leans on CLI --help, cli-schema, and agentHints.nextSteps to pick the next action and validates data with cli-schema validate before any create or update.
- Drives the Apidog CLI to manage API project resources (endpoints, environments, schemas, mocks, branches)
- Runs API automation tests and test suites, and reads test reports
- Enforces a schema-validate-before-write workflow with permission and AI-branch safety rules
Apidog Cli by the numbers
- 147 all-time installs (skills.sh)
- Ranked #2,511 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
apidog-cli capabilities & compatibility
Needs an Apidog API access token; CLI installed via npm.
- Capabilities
- api development · api testing · mock server · test automation
- Use cases
- api development · testing · ci cd
- Runs
- Runs locally
- Pricing
- Bring your own API key
What apidog-cli says it does
Manage Apidog project resources through Apidog CLI.
Required: before running `create` or `update`, first get the complete resource definition and data format, then run `cli-schema validate` before the real write:
If `apidog` is missing or cannot output a version, install the CLI first: `npm install -g apidog-cli@latest`.
npx skills add https://github.com/apidog.com --skill apidog-cliAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 147 |
|---|---|
| Repository | apidog.com ↗ |
What it does
Manage Apidog API project resources and run API automation tests from the CLI.
Who is it for?
Managing an Apidog API project (endpoints, environments, schemas, mocks) and running its automation tests from the CLI.
Skip if: Teams that do not use Apidog, or work that needs no API resource management.
When should I use this skill?
When running Apidog API tests or querying, creating, updating, or deleting Apidog endpoints, environments, schemas, mocks, or branches.
What you get
API resources are managed and validated through the CLI with schema checks before writes and structured JSON output guiding next steps.
- Managed API endpoints, environments, schemas, and mocks
- API automation test runs and reports
By the numbers
- 4-step write workflow: get schema, generate JSON, validate, then create/update
Files
Apidog CLI
Use Apidog CLI to complete the user's request. Do not guess payloads from memory; prefer CLI --help, cli-schema, cli-schema validate, and agentHints.nextSteps to drive the next action.
New Session Check
- When first handling an Apidog CLI task, lightly verify CLI availability:
apidog --version,apidog --help. - If
apidogis missing or cannot output a version, install the CLI first:npm install -g apidog-cli@latest. - After installation, run
apidog login --with-token <TOKEN>. Get the API access token from the Apidog app or web console: user avatar → Account Settings → API Access Token. - Do not upgrade by default every time; suggest upgrade only when a command returns version-too-low / unknown command / parameter issues likely caused by an old CLI, or when the user's task depends on a new capability.
Basic Usage
apidog --help
apidog <command> --help
apidog <command> <subcommand> --helpCommon global options:
--project <projectId> Project ID
--branch <branchName> Branch name; pure numeric values are compatible with legacy branchId
--access-token <token> Override current login token
--api-base-url <url> Private deployment URLLogin And Project
- If not logged in, ask the user for an API access token and run:
apidog login --with-token <TOKEN>. - Apidog CLI token is stored in
~/.apidog/config.toml; do not print the token in logs, commit it to the repo, or include it in chat summaries. - If the user does not specify a project, first check whether
.apidog/settings.jsonexists in the current workspace. If it contains a commonly used defaultprojectId, prefer that project. - Recommend that the user get the project ID from Project Settings - Basic Settings - Project ID; or first run
apidog project listand ask the user to confirm the target project for the command. - Ask the user before writing any local config file.
Write Workflow
Required: before running create or update, first get the complete resource definition and data format, then run cli-schema validate before the real write:
1. Get schema: apidog cli-schema get <schemaKey> 2. Generate a JSON data file. 3. Validate: apidog cli-schema validate <schemaKey> --file <path> 4. Only run the real create or update command after validate passes.
After command output, prefer reading agentHints.nextSteps in the JSON output to continue or recover.
CLI Facts First
- Concrete commands, options, and schema keys must follow the current CLI output:
apidog <command> --help,apidog cli-schema list, andagentHints.nextSteps. - If this skill conflicts with the current CLI output, follow the current CLI output and update the factual description in this skill.
CLI Write Permission Statement
- When writes are blocked by AI (CLI source) permission, do not choose for the user unless they already specified a preference. Ask whether to enable direct edit permission on the target branch, or edit target branch data through an AI branch.
- To directly edit main branch, sprint branch, or general branch data, ask the user to enable direct edit permission in Apidog client 2.8.32+: Project Settings - Feature Settings - AI Feature Settings - External AI Edit Permissions.
- If the user chooses an AI branch, the workflow is:
step1: create an AI branch and specify the source branch; step2: import (pick-to) source branch resources as needed; step3: edit the AI branch according to the user request; step4: after completion, ask the user to confirm whether to create a merge request or merge.
- When directly running merge or merge-request from CLI, require direct edit permission switches to be enabled for both the source branch and target branch. Otherwise, remind the user to enable the permission switches for the corresponding branch types, or manually trigger merge in the client.
AI Branch
- AI branch is an isolated branch for AI/automation to modify project resources without directly polluting the source branch.
- An AI branch with no difference from its source branch within 24 hours will be auto-archived.
- AI branch starts empty and does not automatically clone source resources; before editing/deleting existing source resources, import them into the AI branch.
- Resources newly created in the AI branch do not need import first.
- AI branch changes are not written back automatically; after completion, ask the user to confirm whether to merge immediately or create a merge request.
- If the target main branch is protected, prefer
merge-request; do not direct merge.
Must Ask User
- Login token, local config writes, private deployment URL.
- Creating/switching AI branch, importing source resources into AI branch.
- Destructive operations such as delete, archive, overwrite import, batch update.
- Merging AI branch changes back through merge / merge-request.
- Whether to upgrade CLI.
Recovery
| Issue | Action |
|---|---|
| Not logged in | apidog login --with-token <TOKEN> |
| Unknown project | apidog project list |
| Unknown parameters | apidog <command> --help |
| Parameter or schema error | Run cli-schema get / cli-schema validate first |
| AI write blocked | Explain AI branch / permission switch and let user choose |
| Private deployment | Add --api-base-url https://your-server |
Related skills
FAQ
How do I authenticate the Apidog CLI?
Run apidog login --with-token <TOKEN>, using an API access token from the Apidog app or web console under Account Settings > API Access Token.
What runs before a create or update?
Get the schema with cli-schema get, generate a JSON data file, then run cli-schema validate before the real write.