How to create user

I want to create a user with limited authority, who can visit and wirite in only one specify bucket.
refer to create user I execute the fellow:

.\influx user create --name test --password ExAmPl3PA55W0rD --org-id org_id

but 401 error occur as fellow:

how should I do to create the user?
Thanks

Hello @Leo,
Did you set up an influx config first before using the cli?

  1. yes, config have been created. And I use all access api tokend to create this config.

  2. Is there any complete reference about how to create user and create authorization for the user?

Thank you very much.