@llm-dev-ops/llm-config-cli
v0.5.0
Published
Command-line interface (Rust crate - use via cargo or build from source)
Maintainers
Readme
llm-config-cli
Command-line interface for LLM Config Manager with interactive prompts, colored output, and comprehensive configuration management.
Features
- Interactive Mode: User-friendly prompts for configuration
- Colored Output: Syntax highlighting and status colors
- Batch Operations: Import/export configurations in bulk
- Environment Management: Switch between environments easily
- Secret Management: Secure handling of sensitive values
- Version Control: View history and rollback changes
- Format Support: JSON, YAML, TOML input/output
Installation
cargo install llm-config-cliUsage
Set Configuration
# Set a simple value
llm-config set app.database.url postgres://localhost/mydb --env production
# Set a secret (encrypted)
llm-config set-secret app.api.key my-secret-key --env productionGet Configuration
# Get a value
llm-config get app.database.url --env production
# Get with JSON output
llm-config get app.database.url --env production --format jsonList Configurations
# List all configurations
llm-config list --env production
# List with pattern
llm-config list app.* --env productionVersion Control
# View history
llm-config history app.database.url
# Rollback to previous version
llm-config rollback app.database.url --version 5Import/Export
# Export configurations
llm-config export --env production > config.json
# Import configurations
llm-config import config.json --env stagingConfiguration
The CLI stores its configuration in ~/.config/llm-config/config.toml:
[default]
environment = "development"
format = "json"
storage_path = "~/.local/share/llm-config"License
Licensed under the Apache License, Version 2.0.
