hello, currently our users are creating API tokens...
# general
s
hello, currently our users are creating API tokens through web-UI and use them to login to the rancher-cli.
Copy code
rancher login  https://<rancher_url> -t <bearer_token>
Those tokens have format like
token-xxxx
and store a
tokenKey
in
~/.rancher/cli2.json
Will be any difference if users follow that procedure to create their tokens?
Copy code
rancher login $RANCHER_URL -t $(rancher token --user $USERNAME --server $RANCHER_URL |  jq -r '.status.token')
This way are prompted to enter their credentials in terminal and save a
token":"kubeconfig-u-xxxxx-
in
~/.rancher/cli2.json