Loading...
Loading...
Manage Apifox project resources via Apifox CLI. Trigger scenarios: Run API automated testing/test suites, query/create/update/delete project resources such as APIs, environments, Schema, Mock, branches, import and export API documents, view test reports, manage CI/CD configurations like Runner, scheduled tasks, notifications. CLI output is structured JSON, often containing agentHints.nextSteps; all commands support --help.
npx skill4agent add apifox/apifox-cli-skills apifox-cli--helpcli-schemacli-schema validateagentHints.nextStepsapifox --versionapifox --helpapifoxnpm i -g apifox-cli@latest --registry=https://registry.npmmirror.com/apifox login --with-token <TOKEN>apifox --help
apifox <command> --help
apifox <command> <subcommand> --help--project <projectId> Project ID
--branch <branchName> Branch name; pure numeric values are compatible with old branchId
--access-token <token> Override current login token
--api-base-url <url> Private deployment addressapifox login --with-token <TOKEN>~/.apifox/config.toml.apifox/settings.jsonprojectIdapifox project listcreateupdatecli-schema validateapifox cli-schema get <schemaKey>apifox cli-schema validate <schemaKey> --file <path>createupdatevalidateagentHints.nextStepsapifox <command> --helpapifox cli-schema listagentHints.nextStepsmerge-requestmerge| Symptom | Troubleshooting |
|---|---|
| Not logged in | |
| Unknown project | |
| Unknown command parameters | |
| Parameter or schema error | Run |
| AI writing restricted | Explain AI branches/permission switches and let the user choose |
| Private deployment | Add |