clockify-cli me

clockify-cli me

Show details about the user who owns the token

Synopsis

Shows details about the user who owns the token used by the CLI.

This user may be different from the one set at “user.id”, but if the parameter is not set the CLI will defaults to this one.

clockify-cli me [flags]

Examples

$ clockify-cli user me
+--------------------------+-------------+--------------+--------+-------------------+
|            ID            |    NAME     |     EMAIL    | STATUS |     TIMEZONE      |
+--------------------------+-------------+--------------+--------+-------------------+
| ffffffffffffffffffffffff | John JD Due | due@john.net | ACTIVE | America/Sao_Paulo |
+--------------------------+-------------+--------------+--------+-------------------+

$ clockify-cli user me --quiet
ffffffffffffffffffffffff

$ clockify-cli user me --format "{{ .Name }} ({{ .Email }})"
John JD Due (due@john.net)

Options

  -f, --format string   golang text/template format to be applied on each workspace
  -h, --help            help for me
  -j, --json            print as json
  -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

  • clockify-cli - Allow to integrate with Clockify through terminal
Auto generated by spf13/cobra on 15-Jun-2024