The bragdoc CLI helps you track and document your achievements by extracting information from your Git repositories. It seamlessly integrates with bragdoc.ai to maintain your professional brag document.
npm install -g @bragdoc/cli
- Authenticate with bragdoc:
bragdoc login
- Add your repository:
bragdoc repos add /path/to/repo --name "My Project"
- Extract achievements from commits:
bragdoc extract
Manage your bragdoc authentication.
# Login to bragdoc
bragdoc auth login # aliased as `login`
# Check authentication status
bragdoc auth status
# Logout from bragdoc
bragdoc auth logout # aliased as `logout`
Manage repositories that bragdoc will track.
# List configured repositories
bragdoc repos list
# Add a repository (current directory if path not specified)
bragdoc repos add [path] --name "Project Name" --max-commits 100
# Update repository settings
bragdoc repos update [path] --name "New Name" --max-commits 200
# Remove a repository
bragdoc repos remove [path]
# Enable/disable repository tracking
bragdoc repos enable [path]
bragdoc repos disable [path]
Extract achievements from Git commits.
# Extract from current repository
bragdoc extract
# Extract from specific branch
bragdoc extract --branch main
# Limit number of commits
bragdoc extract --max-commits 50
# Dry run to preview what would be extracted
bragdoc extract --dry-run
Manage the local commit cache to optimize performance.
# List cached commits
bragdoc cache list
bragdoc cache list --stats
# Clear cache
bragdoc cache clear # Clear current repo's cache
bragdoc cache clear --all # Clear all cached data
bragdoc cache clear --repo name # Clear specific repo's cache
The CLI stores configuration in your user's config directory:
- Authentication tokens
- Repository settings
- Commit cache
-
Regular Updates: Run
extract
periodically to keep your brag document current. -
Repository Organization:
- Add repositories you actively contribute to
- Use meaningful repository names
- Set appropriate max-commit limits
-
Cache Management:
- The cache prevents re-processing of commits
- Clear cache if you need to re-process commits
- Use
cache list --stats
to monitor cache size
The CLI provides detailed error messages and logging:
- Authentication errors
- Repository validation issues
- API communication problems
- Cache-related errors
-
BRAGDOC_API_URL
: Override the API endpoint -
BRAGDOC_DEBUG
: Enable debug logging
-
Authentication Issues
- Ensure you're logged in:
bragdoc auth status
- Try logging out and back in
- Check your internet connection
- Ensure you're logged in:
-
Repository Issues
- Verify repository path exists
- Ensure repository has a remote URL
- Check repository permissions
-
Extraction Issues
- Verify repository is enabled
- Check max-commits setting
- Try clearing the cache
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE for details.