Edit a project
clockify-cli project edit <project>... [flags]
# set a client form the project
$ clockify-cli project edit cli --client Myself
+--------------------------+--------------+--------------------------------+
| ID | NAME | CLIENT |
+--------------------------+--------------+--------------------------------+
| 621948458cb9606d934ebb1c | Clockify Cli | Myself |
| | | (6202634a28782767054eec26) |
+--------------------------+--------------+--------------------------------+
# remove client from a project
$ clockify-cli project edit cli --no-client
+--------------------------+--------------+--------+
| ID | NAME | CLIENT |
+--------------------------+--------------+--------+
| 621948458cb9606d934ebb1c | Clockify Cli | |
+--------------------------+--------------+--------+
# change name, color and make public
$ clockify-cli project 62f19c254a912b05acc6d6cf \
--name First --public --color #0f0 \
--format "{{.Name}} | {{.Public}} | {{.Color}}"
First | true | #00ff00
# change to not billable, archived and leave a note
$ clockify-cli project second --not-billable --archived \
--note "$(cat notes.txt)" \
--format 'n: {{.Name}}\nb: {{.Billable}}\na: {{.Archived}}\nn:\n{{ .Note }}'
n: Noted
b: false
a: false
n: one line
two lines
three lines
# archive multiple projects
$ clockify-cli project first second \
--archived \
--format "{{.Name}} | {{.Archived}}"
First | true
Second | true
-a, --active set the projects as active
-A, --archived set projects as archived
-b, --billable set the projects as billable
--client string the id/name of the client the projects will go under
-c, --color string color of the projects
-v, --csv print as CSV
-f, --format string golang text/template format to be applied on each Project
-h, --help help for edit
-j, --json print as JSON
-n, --name string name of the project
--no-client set projects as not having clients
-B, --not-billable set the projects as not billable
-N, --note string note for the projects
-P, --private set the projects as private
-p, --public set projects as public
-q, --quiet only display ids
--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