apxy traffic
View, filter, query, and manage captured network traffic.
apxy logs
Read and manage captured traffic records.
apxy logs list
List captured HTTP traffic records from the proxy database.
apxy logs list [flags]Examples:
apxy logs list
apxy logs list --limit 10 --format markdown| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | json | Output format: json, markdown, or toon |
--limit | int | 50 | Number of records |
--offset | int | 0 | Pagination offset |
-q, --quiet | - | false | Output only IDs, one per line |
apxy logs show
Show the full details of a single captured traffic record.
apxy logs show [flags]Examples:
apxy logs show --id abc123| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | json | Output format: json, markdown, or toon |
--id | string | - | Record ID |
apxy logs search
Search captured traffic records by URL, headers, or body content.
apxy logs search [flags]Examples:
apxy logs search --query "api.example.com"
apxy logs search --query "error" --limit 5 --format markdown| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | json | Output format: json, markdown, or toon |
--limit | int | 20 | Max results |
--query | string | - | Search query |
-q, --quiet | - | false | Output only IDs, one per line |
apxy logs search-bodies
Search request and response bodies in captured traffic.
apxy logs search-bodies [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | json | Output format: json, markdown, or toon |
--limit | int | 20 | Max results |
--pattern | string | - | Text pattern to search |
--scope | string | both | Search scope: request, response, or both |
apxy logs stats
Show aggregate statistics for captured traffic, including request counts, status code distribution, and top domains.
apxy logs stats [flags]Examples:
apxy logs stats
apxy logs stats --format toon| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | json | Output format: json or toon |
apxy logs clear
Delete ALL captured traffic records from the database.
Warning: This action cannot be undone.
apxy logs clear [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | - | false | Preview what would happen without executing |
apxy logs diff
Compare two captured traffic records.
apxy logs diff [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--id-a | string | - | First record ID |
--id-b | string | - | Second record ID |
--scope | string | both | What to diff: request, response, or both |
apxy logs replay
Replay one captured request against the live upstream.
apxy logs replay [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | - | Traffic record ID to replay |
--port | int | 8080 | Proxy port |
apxy logs label
Add a color label and free-text comment to a captured traffic record for easy identification.
apxy logs label [flags]Examples:
apxy logs label --id abc123 --color red --comment "investigate this 500 error"| Flag | Type | Default | Description |
|---|---|---|---|
--color | string | - | Color label: red, green, blue, yellow, purple |
--comment | string | - | Free-text comment |
--id | string | - | Record ID |
apxy logs jsonpath
Extract JSON fields from captured traffic bodies.
apxy logs jsonpath [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | - | Traffic record ID |
--path | string | - | gjson path expression |
--scope | string | response | Which body: request or response |
apxy logs graphql
Search captured GraphQL requests.
apxy logs graphql [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | json | Output format: json, markdown, or toon |
--limit | int | 20 | Max results |
--operation-name | string | - | Filter by operation name |
--operation-type | string | - | Filter by type: query, mutation, subscription |
apxy logs export-curl
Export one traffic record as a reusable client snippet.
apxy logs export-curl [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | curl | Export format: curl, fetch, httpie, python |
--id | string | - | Traffic record ID |
apxy logs export-har
Export captured traffic as a HAR 1.2 file.
apxy logs export-har [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | stdout | Output file path |
--limit | int | 10000 | Max records to export |
See HAR Import & Export for details.
apxy logs import-har
Import traffic records from a HAR file.
apxy logs import-har [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--file | string | - | HAR file to import |
apxy traffic filter
Create and manage traffic filter rules for the running proxy.
apxy traffic filter set
Add a traffic filter rule that blocks or allows requests matching a domain pattern.
apxy traffic filter set [flags]Examples:
apxy traffic filter set --type block --target "ads.example.com"
apxy traffic filter set --type allow --target "*.internal.corp"| Flag | Type | Default | Description |
|---|---|---|---|
--control-url | string | http://localhost:8081 | Control API URL |
--target | string | - | Target domain pattern |
--type | string | block | Filter type: block or allow |
apxy traffic filter list
List all configured traffic filter rules.
apxy traffic filter list [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--control-url | string | http://localhost:8081 | Control API URL |
--format | string | json | Output format: json or toon |
-q, --quiet | - | false | Output only IDs, one per line |
apxy traffic filter remove
Remove a traffic filter rule by its unique ID, or remove all filter rules with --all.
apxy traffic filter remove [flags]Examples:
apxy traffic filter remove --id abc123
apxy traffic filter remove --all| Flag | Type | Default | Description |
|---|---|---|---|
--all | - | false | Apply to all resources |
--control-url | string | http://localhost:8081 | Control API URL |
--dry-run | - | false | Preview what would happen without executing |
--id | string | - | Filter rule ID |
See Filtering for details.
apxy recording
Start or stop traffic recording on the running proxy.
apxy recording start
Start capturing traffic on the running proxy.
apxy recording start [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--control-url | string | http://localhost:8081 | Control API URL |
apxy recording stop
Stop capturing traffic on the running proxy.
apxy recording stop [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--control-url | string | http://localhost:8081 | Control API URL |
apxy sql
Run read-only SQL queries against the APXY database.
apxy sql query
Run a read-only SQL SELECT query against the APXY SQLite database.
Available tables:
traffic_logs— id, timestamp, method, url, host, path, status_code, duration_ms, tls, mocked, …mock_rules— id, name, priority, active, url_pattern, match_type, method, …
apxy sql query [SQL] [flags]Examples:
apxy sql query "SELECT host, COUNT(*) FROM traffic_logs GROUP BY host"See SQL Queries for table schemas and examples.
apxy traffic devices
List devices currently using the proxy.
apxy traffic devices list
List all devices currently connected through the proxy, showing IP, platform, client app, and request count.
apxy traffic devices list [flags]Examples:
apxy devices list --format json
apxy devices list --format toon| Flag | Type | Default | Description |
|---|---|---|---|
--format | string | markdown | Output format: json, markdown, or toon |
--mobile | - | false | Show only mobile devices |
-q, --quiet | - | false | Output only IDs, one per line |
--web-url | string | http://localhost:8082 | Web server URL |
See Devices for details.
Inherited Options
| Flag | Type | Default | Description |
|---|---|---|---|
--config | string | ./configs/default.yaml | Config file path |
--error-format | string | text | Error output format: text or json |
--help-format | string | default | Help output format: default or agent |
--verbose | - | false | Enable verbose output |