Loading...
Loading...
Compare original and translation side by side
cli-anything-wiremock/__admin/cli-anything-wiremock/__admin/stubstub| Command | Description |
|---|---|
| List all registered stubs |
| Get details of a specific stub by UUID |
| Create a stub from a JSON string |
| Quickly create a stub: METHOD URL STATUS_CODE |
| Delete a stub by UUID |
| Reset all stubs to the defaults on disk |
| Persist in-memory stubs to disk |
| Import stubs from a JSON file |
| 命令 | 描述 |
|---|---|
| 列出所有已注册的存根 |
| 通过UUID获取特定存根的详细信息 |
| 通过JSON字符串创建存根 |
| 快速创建存根:METHOD URL STATUS_CODE |
| 通过UUID删除存根 |
| 将所有存根重置为磁盘上的默认值 |
| 将内存中的存根持久化到磁盘 |
| 从JSON文件导入存根 |
requestrequest| Command | Description |
|---|---|
| List recent served requests |
| Find requests matching a JSON pattern |
| Count requests matching a JSON pattern |
| List requests that matched no stub (404s) |
| Clear the request journal |
| 命令 | 描述 |
|---|---|
| 列出最近处理的请求 |
| 查找匹配JSON模式的请求 |
| 统计匹配JSON模式的请求数量 |
| 列出未匹配到任何存根的请求(404请求) |
| 清空请求日志 |
scenarioscenario| Command | Description |
|---|---|
| List all scenarios and current states |
| Set scenario NAME to STATE |
| Reset all scenarios to their initial state |
| 命令 | 描述 |
|---|---|
| 列出所有场景及其当前状态 |
| 将指定NAME的场景设置为STATE状态 |
| 将所有场景重置为初始状态 |
recordrecord| Command | Description |
|---|---|
| Start proxying + recording to TARGET_URL |
| Stop recording, return captured stubs |
| Check if currently recording |
| Snapshot in-memory requests as stubs |
| 命令 | 描述 |
|---|---|
| 启动代理并录制流量到TARGET_URL |
| 停止录制,返回捕获的存根 |
| 检查当前是否正在录制 |
| 将内存中的请求快照为存根 |
settingssettings| Command | Description |
|---|---|
| Get current global WireMock settings |
| Show WireMock server version |
| 命令 | 描述 |
|---|---|
| 获取当前WireMock全局设置 |
| 显示WireMock服务器版本 |
| Command | Description |
|---|---|
| Check if WireMock is running |
| Full reset: stubs + requests + scenarios |
| Gracefully shut down the WireMock server |
| 命令 | 描述 |
|---|---|
| 检查WireMock是否正在运行 |
| 完全重置:存根 + 请求 + 场景 |
| 优雅关闭WireMock服务器 |
undefinedundefinedundefinedundefined--json--json--jsonundefined--jsonundefinedundefinedundefinedexport WIREMOCK_HOST=localhost
export WIREMOCK_PORT=8080export WIREMOCK_HOST=localhost
export WIREMOCK_PORT=8080cli-anything-wiremock --json stub quick POST /api/payment 200 --body '{"success":true}'cli-anything-wiremock --json request count '{"method":"POST","url":"/api/payment"}'cli-anything-wiremock resetcli-anything-wiremock --json stub quick POST /api/payment 200 --body '{"success":true}'cli-anything-wiremock --json request count '{"method":"POST","url":"/api/payment"}'cli-anything-wiremock reset--json{"status": "error", "message": "..."}--json{"status": "error", "message": "..."}