clockify-cli project list

clockify-cli project list

List projects on a Clockify workspace

clockify-cli project list [flags]

Examples

$ clockify-cli project list
+--------------------------+-------------------+-----------------------------------------+
|            ID            |       NAME        |                 CLIENT                  |
+--------------------------+-------------------+-----------------------------------------+
| 621948458cb9606d934ebb1c | Clockify Cli      | Special (6202634a28782767054eec26)      |
| 62a8b52d67f40258719037f2 | New One           |                                         |
| 62a8b59067f40258719038fc | Other             |                                         |
| 62a8b607027fe4592ef1520b | Other             | Uber Special (62964b36bb48532a70730dbe) |
| 62894c3ed2df9d2867dc750b | Something Newer   | Special (6202634a28782767054eec26)      |
+--------------------------+-------------------+-----------------------------------------+

$ clockify-cli project list --clients=uber
+--------------------------+-------------------+-----------------------------------------+
|            ID            |       NAME        |                 CLIENT                  |
+--------------------------+-------------------+-----------------------------------------+
| 62a8b607027fe4592ef1520b | Other             | Uber Special (62964b36bb48532a70730dbe) |
+--------------------------+-------------------+-----------------------------------------+

$ clockify-cli project list --clients=uber --clients=special -q
621948458cb9606d934ebb1c
62a8b607027fe4592ef1520b

$ clockify-cli project list --name=other --format '{{.Name}} - {{ .Color }} | {{ .ClientID }}'
Other - #607D8B | 
Other - #03A9F4 | 6202634a28782767054eec26

$ clockify-cli project list --archived
+--------------------------+-------------------+-----------------------------------------+
|            ID            |       NAME        |                 CLIENT                  |
+--------------------------+-------------------+-----------------------------------------+
| 62894c3ed2df9d2867dc750b | Something Newer   | Special (6202634a28782767054eec26)      |
+--------------------------+-------------------+-----------------------------------------+

Options

      --archived          list only archived projects
  -c, --clients strings   will be used to filter the project by client id/name
  -v, --csv               print as CSV
  -f, --format string     golang text/template format to be applied on each Project
  -h, --help              help for list
  -H, --hydrated          projects will have custom fields, tasks and memberships filled for json and format outputs
  -j, --json              print as JSON
  -n, --name string       will be used to filter the project by name
      --not-archived      list only active projects
  -q, --quiet             only display ids

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

Auto generated by spf13/cobra on 15-Jun-2024