A command line client for Toggl Track: start, stop and edit timers, and review your history without leaving the terminal.
$ toggl-cli start "code review" -p Alpha
$ toggl-cli current
$ toggl-cli stop
$ toggl-cli history --week- Timers that know your project. Link a directory to a Toggl project once,
and
toggl-cli startanywhere under it picks that project. - Descriptions from the directory name. Start a timer in
~/Code/alpha/ticket-1234and it's described as1234, or match your own ticket format with a regular expression. - History as JSON.
history --jsonpipes your entries intojqor other tools. - Fix entries afterwards. Change the start time, description or project of a recent entry, or continue an earlier one.
brew install ville6000/tap/toggl-cliPrebuilt binaries for macOS, Linux and Windows, go install and shell
completion are covered in docs/install.md.
-
Find your API token at the bottom of your Toggl profile page.
-
Run the interactive setup, which asks for the token, your default workspace ID and timezone:
toggl-cli config
toggl-cli workspaceslists your workspace IDs once the token is saved. -
Link your project directory and start tracking:
cd ~/Code/alpha toggl-cli projects add-path Alpha toggl-cli start "write release notes"
| Command | Description |
|---|---|
toggl-cli start [description] |
Start a timer (-p project) |
toggl-cli current |
Show the running timer |
toggl-cli stop |
Stop the running timer |
toggl-cli continue |
Start a new timer like a recent entry |
toggl-cli edit |
Change a recent or running entry |
toggl-cli history |
Show time logged per day |
toggl-cli projects list |
List the workspace's projects |
toggl-cli projects add <name> |
Create a project |
toggl-cli projects add-path <project> |
Link the current directory to a project |
toggl-cli workspaces |
List your workspaces |
toggl-cli www |
Open Toggl in the browser |
toggl-cli config |
Create or update the config file |
Run toggl-cli <command> --help for all flags, and toggl-cli --version for
the installed version.
- Installation: binaries,
go install, shell completion - Usage: project directories, history and JSON output, editing and continuing entries
- Configuration: config file, environment variables, ticket number patterns, project cache
Bug reports and pull requests are welcome. See CONTRIBUTING.md for setting up a development environment, running the tests and making a release.