cli-policy-audit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
<!-- 由 src/lib/agentSkills/generator.ts 生成;手动编辑将被覆盖 -->

Overview

概述

Inspect audit logs, manage access policies, view telemetry data, and review request history from the CLI. Filter by event type, user, or time range for compliance workflows.
通过 CLI 检查审计日志、管理访问策略、查看遥测数据并审查请求历史。可按事件类型、用户或时间范围筛选,以支持合规工作流。

Quick install

快速安装

bash
npm install -g omniroute   # or: npx omniroute
omniroute --version
bash
npm install -g omniroute   # 或:npx omniroute
omniroute --version

Subcommands

子命令

audit

audit

Example:
bash
omniroute audit
示例:
bash
omniroute audit

audit tail

audit tail

Flags:
  • --source <s>
  • --follow
  • --limit <n>
Example:
bash
omniroute audit tail
参数:
  • --source <s>
  • --follow
  • --limit <n>
示例:
bash
omniroute audit tail

audit search <query>

audit search <query>

Flags:
  • --source <s>
  • --since <ts>
  • --until <ts>
  • --limit <n>
  • --actor <id>
  • --action <a>
Example:
bash
omniroute audit search <query>
参数:
  • --source <s>
  • --since <ts>
  • --until <ts>
  • --limit <n>
  • --actor <id>
  • --action <a>
示例:
bash
omniroute audit search <query>

audit export <file>

audit export <file>

Flags:
  • --source <s>
  • --format <f>
  • --since <ts>
  • --until <ts>
Example:
bash
omniroute audit export <file>
参数:
  • --source <s>
  • --format <f>
  • --since <ts>
  • --until <ts>
示例:
bash
omniroute audit export <file>

audit stats

audit stats

Flags:
  • --source <s>
  • --period <p>
Example:
bash
omniroute audit stats
参数:
  • --source <s>
  • --period <p>
示例:
bash
omniroute audit stats

audit get <id>

audit get <id>

Flags:
  • --source <s>
Example:
bash
omniroute audit get <id>
参数:
  • --source <s>
示例:
bash
omniroute audit get <id>

logs

logs

Flags:
  • --follow
  • --filter <level>
  • --lines <n>
  • --timeout <ms>
  • --base-url <url>
  • --request-id <id>
  • --api-key <key>
  • --combo <name>
  • --status <code>
  • --duration-min <ms>
  • --duration-max <ms>
  • --export <path>
Example:
bash
omniroute logs
参数:
  • --follow
  • --filter <level>
  • --lines <n>
  • --timeout <ms>
  • --base-url <url>
  • --request-id <id>
  • --api-key <key>
  • --combo <name>
  • --status <code>
  • --duration-min <ms>
  • --duration-max <ms>
  • --export <path>
示例:
bash
omniroute logs

policy

policy

Example:
bash
omniroute policy
示例:
bash
omniroute policy

policy list

policy list

Flags:
  • --kind <k>
  • --scope <s>
Example:
bash
omniroute policy list
参数:
  • --kind <k>
  • --scope <s>
示例:
bash
omniroute policy list

policy get <id>

policy get <id>

Example:
bash
omniroute policy get <id>
示例:
bash
omniroute policy get <id>

policy create

policy create

Flags:
  • --file <path>
Example:
bash
omniroute policy create
参数:
  • --file <path>
示例:
bash
omniroute policy create

policy update <id>

policy update <id>

Flags:
  • --file <path>
Example:
bash
omniroute policy update <id>
参数:
  • --file <path>
示例:
bash
omniroute policy update <id>

policy delete <id>

policy delete <id>

Flags:
  • --yes
Example:
bash
omniroute policy delete <id>
参数:
  • --yes
示例:
bash
omniroute policy delete <id>

policy evaluate

policy evaluate

Flags:
  • --api-key <k>
  • --action <a>
  • --resource <r>
  • --context <json>
Example:
bash
omniroute policy evaluate
参数:
  • --api-key <k>
  • --action <a>
  • --resource <r>
  • --context <json>
示例:
bash
omniroute policy evaluate

policy export <file>

policy export <file>

Example:
bash
omniroute policy export <file>
示例:
bash
omniroute policy export <file>

policy import <file>

policy import <file>

Flags:
  • --overwrite
Example:
bash
omniroute policy import <file>
参数:
  • --overwrite
示例:
bash
omniroute policy import <file>

telemetry

telemetry

Example:
bash
omniroute telemetry
示例:
bash
omniroute telemetry

telemetry summary

telemetry summary

Flags:
  • --period <p>
  • --compare-to <p>
Example:
bash
omniroute telemetry summary
参数:
  • --period <p>
  • --compare-to <p>
示例:
bash
omniroute telemetry summary

telemetry export

telemetry export

Flags:
  • --out <path>
  • --period <p>
Example:
bash
omniroute telemetry export
参数:
  • --out <path>
  • --period <p>
示例:
bash
omniroute telemetry export