LogChef CLI v0.1.0
·
46 commits
to main
since this release
LogChef CLI v0.1.0
Initial release of the LogChef command-line interface.
Features
- Query logs from the terminal with
logchef query - Multiple output formats: table (default), JSON, compact
- Syntax highlighting for log output
- Team/source resolution by name or ID (case-insensitive)
- Source formats: friendly name (
"Kite Nomad"), table reference (logs.nomad_apps), or numeric ID - OIDC authentication via browser-based flow
- Multi-server support with named profiles
- TTY-aware output: stats shown in terminal, suppressed when piped
Installation
Download the appropriate binary for your platform and add to PATH:
# Linux (x86_64)
curl -LO https://github.com/mr-karan/logchef/releases/download/cli-v0.1.0/logchef-cli_0.1.0_linux-x86_64-musl.tar.gz
tar -xzf logchef-cli_0.1.0_linux-x86_64-musl.tar.gz
sudo mv logchef /usr/local/bin/
# macOS (Apple Silicon)
curl -LO https://github.com/mr-karan/logchef/releases/download/cli-v0.1.0/logchef-cli_0.1.0_macos-aarch64.tar.gz
tar -xzf logchef-cli_0.1.0_macos-aarch64.tar.gz
sudo mv logchef /usr/local/bin/Quick Start
# Add a server
logchef config add-server prod https://logchef.example.com
# Authenticate
logchef auth login
# Query logs
logchef query "level:error" --team myteam --source logs.app --limit 100Documentation
See CLI documentation for full usage details.