Usage

Setup / Configuration

For now, configuration means setting some environment variables.

Nothing needs to be configured, as everything can be controlled with options to the toggl-dinero tool.

The following environment variables can be set so that less options are needed when using toggl-dinero tool:

  • TOGGL_API_TOKEN - Toggl API token from your Profile settings on https://toggl.com.

  • TOGGL_WORKSPACE - The name of the Toggl workspace to use.

  • DINERO_CLIENT_ID - Client ID received after applying as a developer

    with Dinero.

  • DINERO_CLIENT_SECRET - Client secret received after applying as a

    developer with Dinero.

  • DINERO_ORGANIZATION - Name of Dinero organization to use.

  • DINERO_API_KEY - Dinero API key from Dinero integration page.

Create Invoice

To create an invoice from time entries in Toggl (the actual purpose of this tool), do something like

toggl-dinero invoice FooBar this-month

to create an invoice with all the time entries in this month for Toggl client named “FooBar”.

Supported periods are today, yesterday, this-week, last-week, this-month, last-month, this-year, last-year.