UPDATED TO USE Toggl v9 API
A command line interface for toggl written in node, based on the python TogglCli project. Attempting to use similar syntax.
This was made possible because saintedlama had already built a node API for toggl.
- Configure your environment, with environment variables or a
.env
file in the project root. Eventually, these will be read from a config file as an alternative -
TOGGL_API_TOKEN
(required) -
TOGGL_DEFAULT_WORKSPACE_ID
(required) -
TOGGL_DEFAULT_PROJECT_ID
(optional) -
TOGGL_TIMEZONE=America/Los_Angeles
(defaults toAmerica/New_York
)
- toggl-client - Used from saintedlama/toggl-client repository as the latest code hasn't been released to npm
- dotenv
- yargs
Feature | Available | Comments |
---|---|---|
Start time entry | ✅ | |
Start time entry with description | ✅ | |
Start time entry with project | ✅ | |
stop time entry | ✅ | |
Continue named time entry | ✅ | |
Report today by project | ✅ | |
Report this week by project by day | ✅ | |
Edit time entry | ✅ | |
Use config from file | ||
Save config to file | ||
Refactor: Display and format modules | ||
Client: reset PAT | ||
Client: other user feature? | ||
Client: specify client name | ||
Colorize output | ||
Better table output | ||
List recent time entries | ✅ | |
Command line completion | ✅ | #6 |
Priority order... I think.
today - improve the outputweekly - improve the output formatnow - format the display time entry outputtoggl continueduration to display helper function?- read configuration (token, default workspace) from files (client and utils)
- now - update running description, project, start time
- now - update start time with overlap detection and adjust prior time entry
- project list - format the output, group by client
- Add ability to lookup project by name not just id
- start - add project name to output, add time started
- toggl workspace add - this command is not yet supported.
- toggl workspace list - improve output
- colorized output
- config - some way to save /me information to a file
- default workspace?
- API key?
- display formats?
- toggl project add - this command is not yet supported.
There are several features that I do not use from Toggl, so including them is a priority for me. I'm not opposed to them being in there and would welcome collaboration to include them.
- tags
- multiple workspaces
- billable
I need to clean up and refactor the code and establish a few more helper and utility functions, but I'm open to contributions!