clockify-cli show

clockify-cli show

Show information about one time entry.

Synopsis

Show information about one time entry.

If no time entry ID is informed it shows the running it exists.

To show the last ended time entry you can use “last” for it, for the one before that you can use “^2”, for the previous “^3” and so on.

Use clockify-cli report --help for more information about printing time entries.

clockify-cli show [ <time-entry-id> | current | last | ^n ] [flags]

Examples

# trying to show running time entry, when there is none
$ clockify-cli show
looking for running time entry: time entry was not found

# show the last time entry (ended)
$ clockify-cli show last -q
62af70d849445270d7c09fbd

# show the time entry before the last one
$ clockify-cli show ^2 -q
62af668b49445270d7c092e4

Options

  -v, --csv                  print as CSV
  -F, --duration-float       prints only the sum of duration as a "float hour"
  -D, --duration-formatted   prints only the sum of duration formatted
  -f, --format string        golang text/template format to be applied on each time entry
  -h, --help                 help for show
  -j, --json                 print as JSON
  -m, --md                   print as Markdown
  -q, --quiet                print only ID

Options inherited from parent commands

      --allow-name-for-id           allow use of project/client/tag's name when id is asked
  -i, --interactive                 will prompt you to confirm/complement commands input before executing the action 
  -L, --interactive-page-size int   will set how many items will be shown on interactive mode (default 7)
      --log-level string            { none | debug | info } set log level (default "none")
  -t, --token string                clockify's token
                                    Can be generated here: https://clockify.me/user/settings#generateApiKeyBtn
  -u, --user-id string              user id from the token
  -w, --workspace string            workspace to be used

SEE ALSO

  • clockify-cli - Allow to integrate with Clockify through terminal
Auto generated by spf13/cobra on 29-Mar-2024