• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Manage your Toggl.com time entries from the familiarity of the nearby CLI.

toggl-cli

Build Status Codeship Status for meeDamian/toggl-cli Coverage Status codecov.io npm version XO code style Dependency Status devDependency Status

Manage your Toggl.com time entries from the familiarity of the nearby CLI.

Download (node v5.0+)

$ npm install -g toggl-cli

Usage (Simple)

Simple Mode demo

$ toggl --help

  Manage your Toggl.com time entries from the familiarity of the nearby CLI.

  Usage:
    Interactive mode:
      $ toggl

    Single request:
      $ toggl <cmd>

  Flags:
    -v --version     - output version
    -h --help        - output this help
    --examples       - show usage examples
    --no-colors      - disable colors
    --save-token     - save provided token and exit
    -t --token       - run with a custom token (will not be saved)
    --set-background - set color theme. Choose more readible: dark or light

  Commands:
    c current             - see details of currently running time entry (if any).
    l list [amount|when]  - list last <amount> of time entries (default: 8) or <when> (see below)
    s smart [name|number] - start or stop the entry, whatever makes more sense.
      start [name|number] - start new time entry with the given name, or resume if number is given.
      stop                - stop running entry.
    r rename <new-name>   - rename currently running entry to <new-name>.
    b browser             - open Toggl timer in default browser.


  Note:
    → Values in [square brackets] are optional.
    → <when> is one of:
        today, yesterday, last Monday, last tue, etc…


$ toggl --examples

  Set default token for all future launches:
    $ toggl --save-token d9db051bf06be16c2027d3cb08769451

  List last 17 time entries for a different account:
    $ toggl --token a1ad615af03be16c2027d3dc08291457 list 17

  Run interactive mode with a different token:
    $ toggl --token a1ad615af03be16c2027d3dc08291457

  Start a new task named "Writing toggl-cli docs":
    $ toggl start Writing toggl-cli docs

  Resume last running time entry:
    $ toggl start 1

  List entries from the last Friday:
    $ toggl list last friday

  Alias toggl for work:
    $ echo "toggl2='toggl --token <work-token>'" >> ~/.bashrc
    $ toggl list yesterday  # yesterday entries from your private account
    $ toggl2 list           # last 8 entries from your work account


$ toggl --logo

              NN
           .: NN :.
         cX0l NN l0Nc
        xM;   NN   ;Mx
        WK    OO    KW
        oMc        cMo
         ;0Xd:,,:dX0;
           .xNMMNx.

Usage (Interactive)

Interactive Mode demo

  Time entry
    c ⇾ current        1-9 ⇾ resume from the list
    s ⇾ start or stop    r ⇾ rename        l ⇾ list last 8
    d ⇾ discard          p ⇾ add project   L ⇾ list last 16

  Other
    x ⇾ clear         h, ? ⇾ help          v ⇾ version
    b ⇾ open in browser  q ⇾ quit

  What do you want to do [c,1-9,s,r,d,p,l,L,b,v,h,?,q]?

Notice

  • This module is in no way supported nor developed by Toggl.com .
  • It's still WIP, any and all PRs highly appreciated (esp. tests ☺)

Bugs and feedback

If you discover a bug please report it here.

Mail me at [email protected], or on twitter @meeDamian.

codecov.io

License

MIT @ Damian Mee

More Repositories

1

country-emoji

Converts between country names, ISO 3166-1 codes and flag emojis.
JavaScript
81
star
2

github-release

Github Action to create, update, or add files to Github Releases
Shell
65
star
3

raspios

[unofficial] Add first boot script to Raspberry Pi OS Lite (Raspbian)
Shell
17
star
4

simple-qemu

Emulating other CPU architectures in Docker made easy
Shell
13
star
5

meeDamian.github.io

Bitcoin, Golang and Script page.
HTML
11
star
6

Pretty-Binary-Clock

Teh binary clock that, for change, is not ugly :) Works always in progress...
Java
10
star
7

sync-readme

Github Action to sync README.md from Github to Docker Hub
Shell
6
star
8

onions

A curated & personal list of Tor integrations
5
star
9

Two-Way-Data-Binding

Blog post companion repository
Java
4
star
10

bc1toolkit

A set of various Bitcoin tools
Go
4
star
11

dvorak-programmer

DVORAK layout for OSX
3
star
12

svg-square-grid-generator

Small utility that generates a grid of squares, for given parameters, in svg format
CoffeeScript
3
star
13

crypto

Integrations with various crypto exchanges
Go
3
star
14

node-fun

Just having a lil fun with node.js + now.js
JavaScript
2
star
15

mee

Experimental nodejs modules pattern handler
JavaScript
2
star
16

chrome-bitcoin-monitor

Chrome Extension notifying you about in/outgoing transactions from specified Bitcoin addresses.
JavaScript
2
star
17

Tabs-Butcher

Simple extension that helps you to decrease number of opened tabs.
JavaScript
2
star
18

Basic-Info

Android app that gives you a JSON API with your public information. Currently: phone, city, country
Java
1
star
19

Good-Fucking-Design-Advice-Android

Java
1
star
20

HelloAndroid

This is a test project; testing workflow between eclipse + EGit + android SDK
Java
1
star
21

google-search-cli

CLI tool to launch Google Search in the default browser
JavaScript
1
star
22

youtubeProtector

Chrome extension that passoword protects access to youtube. Passoword is hardcoded in source code.
JavaScript
1
star
23

Apps-Monitor

Chrome extension to monitor facebook apps via JSON backend with simple authentication for more info
JavaScript
1
star
24

Games-For-Cats

Collection of games for cats on Android Tablets
Java
1
star
25

tag-suggestions

Github Action to suggest short tags, given a new one added
Shell
1
star
26

useful

A collection of maybe useful stuff I keep forgetting
Shell
1
star
27

30-Days-Challange-Django

Python
1
star
28

map-game

Google Maps API + node.js + cross-platform MP. Attempt No. 1
JavaScript
1
star
29

grzenio-magazyn

JavaScript
1
star
30

30-Days-Challenge

PHP
1
star
31

js-flows

Examples of different JS flows.
JavaScript
1
star
32

net-test

Tests WiFi quality, and saves results for later (and others)
CoffeeScript
1
star
33

speechRecognizer

Continous speech recognition in android
Java
1
star
34

github-actions-bugs

This repo aims to track progress of some of the bugs in Github Actions
1
star
35

all-that-is

Draft of structure used to manage all kind of information
1
star
36

BitcoinMonitor

Android DashClock Extension to track BTC prices, as well as differences between them
Java
1
star
37

savepass

CLI tool archiving your keybase.io-encrypted data to Google Drive
CoffeeScript
1
star