clockify-cli client add

clockify-cli client add

Adds a new client to the Clockify workspace

clockify-cli client add [flags]

Examples

$ clockify-cli client add --name Special
+--------------------------+---------+----------+
|            ID            |   NAME  | ARCHIVED |
+--------------------------+---------+----------+
| eeeeeeeeeeeeeeeeeeeeeeee | Special | NO       |
+--------------------------+---------+----------+

$ clockify-cli client add --name "Very Special" --quiet
aaaaaaaaaaaaaaaaaaaaaaaa

$ clockify-cli client add --name "Special" # same name as existing one
add client: Client with name 'Special' already exists (code: 501)

Options

  -v, --csv             print as CSV
  -f, --format string   golang text/template format to be applied on each Client
  -h, --help            help for add
  -j, --json            print as JSON
  -n, --name string     the name of the new client
  -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 29-Mar-2024