| name | toggl |
| description | Track time with Toggl via the toggl CLI. Use when the user wants to start/stop time tracking, check current timer, view today's or weekly reports, list recent entries, or manage time entries. Triggers on "toggl", "time tracking", "timer", "track time", "what am I working on", "log time", "timesheet". |
Toggl Time Tracking
Use the toggl CLI (@beauraines/toggl-cli) for Toggl Track integration.
Prerequisites
Install the CLI:
npm install -g @beauraines/toggl-cli
Configure authentication (create ~/.toggl-cli.json):
{
"api_token": "YOUR_TOGGL_API_TOKEN",
"default_workspace_id": "YOUR_WORKSPACE_ID",
"timezone": "Your/Timezone"
}
Get your API token from: https://track.toggl.com/profile
Get your workspace ID from your Toggl URL: https://track.toggl.com/{workspace_id}/...
Set permissions: chmod 600 ~/.toggl-cli.json
Commands
Status
toggl now
toggl me
Start/Stop
toggl start
toggl start -d "Task name"
toggl start -d "Task" -p "Project"
toggl stop
Continue Previous
toggl continue
toggl continue "keyword"
Reports
toggl today
toggl week
List Entries
toggl ls
toggl ls -d 7
toggl ls --today
toggl ls "search term"
Add Completed Entry
toggl add "9:00AM" "10:30AM" "Meeting notes"
Edit Current
toggl edit -s "10:00AM"
toggl edit -d "New desc"
toggl edit -p "Project"
Delete
toggl rm <id>
Projects
toggl project ls
Other
toggl web
toggl create-config
Notes
- Times must be parsable by dayjs (e.g.,
4:50PM, 12:00 AM, 9:00)
- Config file:
~/.toggl-cli.json
- Environment variables override config:
TOGGL_API_TOKEN, TOGGL_DEFAULT_WORKSPACE_ID, TOGGL_TIMEZONE