--- name: cli-policy-audit description: 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. --- ## 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. ## Quick install ```bash npm install -g omniroute # or: npx omniroute omniroute --version ``` ## Subcommands ### `audit` **Example:** ```bash omniroute audit ``` ### `audit tail` **Flags:** - `--source ` - `--follow` - `--limit ` **Example:** ```bash omniroute audit tail ``` ### `audit search ` **Flags:** - `--source ` - `--since ` - `--until ` - `--limit ` - `--actor ` - `--action ` **Example:** ```bash omniroute audit search ``` ### `audit export ` **Flags:** - `--source ` - `--format ` - `--since ` - `--until ` **Example:** ```bash omniroute audit export ``` ### `audit stats` **Flags:** - `--source ` - `--period

` **Example:** ```bash omniroute audit stats ``` ### `audit get ` **Flags:** - `--source ` **Example:** ```bash omniroute audit get ``` ### `logs` **Flags:** - `--follow` - `--filter ` - `--lines ` - `--timeout ` - `--base-url ` - `--request-id ` - `--api-key ` - `--combo ` - `--status ` - `--duration-min ` - `--duration-max ` - `--export ` **Example:** ```bash omniroute logs ``` ### `policy` **Example:** ```bash omniroute policy ``` ### `policy list` **Flags:** - `--kind ` - `--scope ` **Example:** ```bash omniroute policy list ``` ### `policy get ` **Example:** ```bash omniroute policy get ``` ### `policy create` **Example:** ```bash omniroute policy create ``` ### `policy update ` **Example:** ```bash omniroute policy update ``` ### `policy delete ` **Flags:** - `--yes` **Example:** ```bash omniroute policy delete ``` ### `policy evaluate` **Flags:** - `--resource ` - `--context ` **Example:** ```bash omniroute policy evaluate ``` ### `policy export ` **Example:** ```bash omniroute policy export ``` ### `policy import ` **Flags:** - `--overwrite` **Example:** ```bash omniroute policy import ``` ### `telemetry` **Example:** ```bash omniroute telemetry ``` ### `telemetry summary` **Flags:** - `--period

` - `--compare-to

` **Example:** ```bash omniroute telemetry summary ``` ### `telemetry export` **Flags:** - `--out ` - `--period

` **Example:** ```bash omniroute telemetry export ```