Installation
Install the binary from crates.io, then run it.
cargo install hackatime
hackatime
Quick Start
- Run
hackatime. - Complete the browser-based sign-in flow.
- Return to the terminal after authentication finishes.
Views
hackatimeShows the multi-range summary and lifetime languages.
hackatime --fetchShows a neofetch-style overview.
hackatime --graphShows a coding heatmap for the last 365 days.
hackatime --projectsShows top projects with per-project language graphs and a key.
hackatime --currentShows the current project report.
hackatime .Shows stats for the current folder when it matches a Hackatime project.
Ranges
hackatime --todayShows today's total and language breakdown.
hackatime --weekShows this week's total and language breakdown.
hackatime --monthShows this month's total and language breakdown.
hackatime --yearShows this year's total and language breakdown.
hackatime --lifetimeShows lifetime total and language breakdown.
hackatime --projects --week|--month|--year|--lifetimeScopes the projects view to a selected range.
Lookup
hackatime --lookup <username>Shows public stats for another user.
hackatime --lookup <username> -gShows that user's coding graph.
hackatime --lookup <username> --projects --yearShows that user's yearly top projects.
Settings
hackatime settingsShows the current saved settings.
hackatime settings colorOpens the color picker.
hackatime settings clear toggleToggles terminal clearing on or off.
hackatime settings clear on|offSets terminal clearing explicitly.