clockify-cli out

clockify-cli out

Stops the running time entry

Synopsis

Stops the running time entry.

If no value is set on --when, then current time will be used.

When setting the end time you can use any of the following formats to set it:

  • Full Date and Time: “2016-02-01 15:04:05”
  • Date and Time (assumes 0 seconds): “2016-02-01 15:04”
  • Yesterday with Time: “yesterday 15:04:05”
  • Yesterday with Time (0 seconds): “yesterday 15:04”
  • Today at Time: “15:04:05”
  • Today at Time (assumes 0 seconds): “15:04”
  • 10mins in the future: +10m
  • 1min and 30s ago: -90s
  • 1hour and 10min ago: -1:10s
  • 1day, 10min and 30s ago: -1d10m30s

Use clockify-cli edit current to edit any properties before ending it. Use clockify-cli report --help for more information about printing time entries.

clockify-cli out [flags]

Examples

# stop running time entry with current time
$ clockify-cli out --md
ID: `62af6b0f4ebb4f143c94880e`  
Billable: `yes`  
Locked: `no`  
Project: Clockify Cli (`621948458cb9606d934ebb1c`)  
Task: Out Command (`62af66454ebb4f143c948263`)  
Interval: `2022-06-19 18:29:32` until `2022-06-19 18:52:13`  
Description:
> Adding examples

Tags:
 * Development (`62ae28b72518aa18da2acb49`)

# clone last and stopping it in 10 minutes
$ clockify-cli clone last -i=0 -d 'More examples' -q
62af70d849445270d7c09fbd

$ clockify-cli out --when +10m --md
ID: `62af70d849445270d7c09fbd`  
Billable: `yes`  
Locked: `no`  
Project: Clockify Cli (`621948458cb9606d934ebb1c`)  
Task: Out Command (`62af666349445270d7c09285`)  
Interval: `2022-06-19 18:54:12` until `2022-06-19 19:08:26`  
Description:
> More examples

Tags:
 * Development (`62ae28b72518aa18da2acb49`)

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 out
  -j, --json                 print as JSON
  -m, --md                   print as Markdown
  -q, --quiet                print only ID
      --when string          when the entry should be closed, if not informed will use current time (default "2024-03-29 23:08:30")

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