CLI Overview¶
Command Structure¶
shepherd [OPTIONS] COMMAND [ARGS]
Global Options¶
Option |
Description |
|---|---|
|
Show help message |
|
Install shell completion |
|
Show completion script |
Commands¶
Command |
Description |
|---|---|
|
Show version information |
|
Start interactive shell |
|
Manage configuration |
|
List and inspect sessions (routes to current provider) |
|
List and inspect traces (Langfuse only) |
|
Langfuse-specific commands |
|
AIOBS-specific commands |
Provider-Aware Commands¶
Top-level sessions and traces commands route to your default provider:
# Set default provider
shepherd config set provider langfuse
# These now use Langfuse
shepherd sessions list
shepherd sessions search --user-id alice
shepherd traces list
shepherd traces search --tag production
Explicit Provider Commands¶
Use provider-specific commands regardless of default:
# Always use Langfuse
shepherd langfuse traces list
shepherd langfuse sessions search --min-cost 0.01
# Always use AIOBS
shepherd aiobs sessions list
shepherd aiobs sessions search --has-errors
Output Formats¶
# Table (default)
shepherd sessions list
# JSON
shepherd sessions list -o json
# IDs only (for scripting)
shepherd sessions list --ids
Exit Codes¶
Code |
Meaning |
|---|---|
|
Success |
|
Error |
Environment Variables¶
Variable |
Description |
|---|---|
|
AIOBS API key (overrides config) |
|
Langfuse public key (overrides config) |
|
Langfuse secret key (overrides config) |
|
Disable colored output |