How to add dashboard user in sensu go


#1

Getting below error

sensuctl create user sensu --api-url 127.0.0.1:8080
create new resources from file or STDIN

Usage:  sensuctl create [-f FILE] [flags]

Flags:
  -f, --file string   File or directory to create resources from
  -h, --help          help for create

Global Flags:
      --api-url string        host URL of Sensu installation
      --cache-dir string      path to directory containing cache & temporary files (default "/root/.cache/sensu/sensuctl")
      --config-dir string     path to directory containing configuration files (default "/root/.config/sensu/sensuctl")
      --environment string    environment in which we perform actions (default "default")
      --organization string   organization in which we perform actions (default "default")
Error: invalid argument(s) received

#2

Hi @balajik515

The sensuctl create command should be use to create new resources from file or STDIN. You are probably looking for the sensuctl user create command instead!

Let us know if you still face any problem.