List network snapshots using the CLI
Use the invariant snapshots
command to list prior snapshot analysis results for your networks.
# List snapshots for the default network
$ invariant snapshots
The output displays a table with snapshot details including UUID and creation time.
# Example Output
+--------------------------------------+---------+---------------------+---------+----------------+
| uuid | network | created_at | status | ap_violations |...
|--------------------------------------+---------+---------------------+---------+----------------|
| adf11172-9f8a-4333-b7c7-f9f0ecefe8d9 | default | 2024-01-01T12:00:00 | success | 0 |...
| 6c334806-126c-4b63-bafe-495b39fdf995 | default | 2024-01-02T14:30:00 | success | 1 |...
+--------------------------------------+---------+---------------------+---------+----------------+...
Use --network
to filter by network name. Use --tsv
or --json
for control the output format.
# List snapshots for a specific network in TSV format
$ invariant snapshots --network live_scans --tsv
# List snapshots for a specific network in JSON format
$ invariant snapshots --network live_scans --json
# List snapshots for a specific network in JSON format (no whitespace)
$ invariant snapshots --network live_scans --fast-json
See Reference > CLI for complete CLI documentation.