Getting Started
Prerequisites
trueloc requires the GitHub CLI (gh) to be installed and authenticated:
# Install GitHub CLI (if not already installed)
# macOS
brew install gh
# Ubuntu/Debian
sudo apt install gh
# Windows
winget install GitHub.cli
Then authenticate:
Installation
Verify Installation
You should see the available commands and options.
Your First Count
Count your lines of code from the last month:
This will:
- Fetch all repositories you have access to
- Find merged PRs and direct commits since the specified date
- Count lines added and deleted across all commits
- Display a summary with per-PR breakdown and file type analysis
Next Steps
- Learn about all usage options
- Understand the caching strategy