Smart-Diff CLI Reference
Sprint: SPRINT_3500_0001_0001
Task: SDIFF-MASTER-0008 - Update CLI documentation with smart-diff commands
Overview
Smart-Diff analyzes changes between container image versions to identify material risk changes. It detects reachability shifts, VEX status changes, binary hardening regressions, and intelligence signal updates.
Commands
stellaops smart-diff
Compare two artifacts and report material risk changes.
Required Options
| Option |
Description |
--base <ARTIFACT> |
Base artifact (image digest, SBOM path, or purl) |
--target <ARTIFACT> |
Target artifact to compare against base |
Output Options
| Option |
Description |
Default |
--output <PATH> |
Output file path |
stdout |
--output-format <FMT> |
Output format: json, yaml, table, sarif |
table |
--output-dir <DIR> |
Output directory for bundle format |
- |
--include-proofs |
Include proof ledger in output |
false |
--include-evidence |
Include raw evidence data |
false |
--pretty |
Pretty-print JSON/YAML output |
false |
Analysis Options
| Option |
Description |
Default |
--rules <PATH> |
Custom detection rules file |
built-in |
--config <PATH> |
Scoring configuration file |
default config |
--tier <TIER> |
Filter by evidence tier: imported, executed, tainted_sink |
all |
--min-priority <N> |
Minimum priority score (0-1) |
0.0 |
--include-unchanged |
Include unchanged findings |
false |
Feed Options
| Option |
Description |
Default |
--feed-snapshot <HASH> |
Use specific feed snapshot |
latest |
--offline |
Run in offline mode |
false |
--feed-dir <PATH> |
Local feed directory |
- |
Examples
Basic Comparison
SARIF Output for CI/CD
Filtered Analysis
Export with Proofs
Offline Mode
stellaops smart-diff show
Display results from a saved smart-diff report.
Options
| Option |
Description |
Default |
--format <FMT> |
Output format: table, json, yaml |
table |
--filter <EXPR> |
Filter expression (e.g., priority>=0.8) |
- |
--sort <FIELD> |
Sort field: priority, vuln, component |
priority |
--limit <N> |
Maximum results to show |
all |
Example
stellaops smart-diff verify
Verify a smart-diff report's proof bundle.
Options
| Option |
Description |
Default |
--proof-bundle <PATH> |
Proof bundle path |
inferred |
--public-key <PATH> |
Public key for signature verification |
- |
--strict |
Fail on any warning |
false |
Example
stellaops smart-diff replay
Re-run smart-diff with different feed or config.
Options
| Option |
Description |
Default |
--feed-snapshot <HASH> |
Use specific feed snapshot |
latest |
--config <PATH> |
Different scoring config |
original |
--dry-run |
Preview without saving |
false |
Example
Exit Codes
| Code |
Meaning |
| 0 |
Success, no material changes |
| 1 |
Success, material changes found |
| 2 |
Success, hardening regressions found |
| 3 |
Success, KEV additions found |
| 10 |
Invalid arguments |
| 11 |
Artifact not found |
| 12 |
Feed not available |
| 20 |
Verification failed |
| 99 |
Internal error |
Environment Variables
| Variable |
Description |
STELLAOPS_OFFLINE |
Run in offline mode |
STELLAOPS_FEED_DIR |
Local feed directory |
STELLAOPS_CONFIG |
Default config file |
STELLAOPS_OUTPUT_FORMAT |
Default output format |
Configuration File
Related Commands
stellaops scan - Full vulnerability scan
stellaops score replay - Score replay
stellaops verify-bundle - Verify proof bundles
Related Documentation