CLI Reference
CLI Reference
TagCache provides a comprehensive command-line interface for server management and cache operations.
Global Options
These options are available for all commands:
| |
Authentication Options
| |
Connection Options
| |
Output Options
| |
Server Management
Start Server
| |
Server Options:
| |
Configuration Management
| |
Cache Operations
Set Operations
| |
Get Operations
| |
Atomic Operations
| |
Delete Operations
| |
Information Commands
| |
Administrative Commands
User Management
| |
Server Control
| |
Batch Operations
Import/Export
| |
Bulk Operations
| |
Monitoring and Debugging
Real-time Monitoring
| |
Debugging
| |
Examples
Common Use Cases
Session Management:
| |
API Rate Limiting:
| |
Cache Warming:
| |
Performance Testing:
| |
Output Formats
JSON Format
| |
| |
Table Format (Default)
| |
┌─────────────────────┬──────────────┐
│ Metric │ Value │
├─────────────────────┼──────────────┤
│ Total Keys │ 1,234 │
│ Total Memory │ 45.2 MB │
│ Operations/sec │ 12,543 │
│ Hit Rate │ 94.5% │
│ Uptime │ 2d 5h 30m │
└─────────────────────┴──────────────┘YAML Format
| |
| |
Error Handling
TagCache CLI provides clear error messages and appropriate exit codes:
0: Success1: General error2: Authentication error3: Connection error4: Not found5: Validation error
| |
Configuration via Environment
CLI options can be set via environment variables:
| |