clockify-cli project add

clockify-cli project add

Adds a project to the Clockify workspace

clockify-cli project add [flags]

Examples

$ clockify-cli project add --name "New One"
+--------------------------+---------+--------+
|            ID            |  NAME   | CLIENT |
+--------------------------+---------+--------+
| 62a8b52d67f40258719037f2 | New One |        |
+--------------------------+---------+--------+

$ clockify-cli project add --name=Other -q
62a8b59067f40258719038fc

$ clockify-cli project add --name "Other" --client="Uber" --csv --color=#fff
id,name,client.id,client.name
62a8b607027fe4592ef1520b,Other,62964b36bb48532a70730dbe,Uber Special

$ clockify-cli project add --name Other --random-color
add project: Other project for client Uber Special already exists. (code: 501)

$ clockify-cli project add --name "Something" --client="Uber" --color=#fff
the following flags can't be used together: color and random-color

$ clockify-cli project add --name "Something" --client="Uber"
the following flags can't be used together: color and random-color


Options

  -b, --billable        make the new project as billable
      --client string   the id/name of the client the new project will go under
  -c, --color string    color of the new project
  -v, --csv             print as CSV
  -f, --format string   golang text/template format to be applied on each Project
  -h, --help            help for add
  -j, --json            print as JSON
  -n, --name string     name of the new project
  -N, --note string     note for the new project
  -p, --public          make the new project public
  -q, --quiet           only display ids
      --random-color    use a random color for the project

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 29-Mar-2024