Skip to content

login command doesn't create cli2.json file #31967

@pradeepiyerust

Description

@pradeepiyerust

Hi,

I downloaded v2.4.10 CLI zip file for Windows 64bit, extracted the zip and added the path to the environment variables. Now I can execute "rancher" commands from Command Prompt, but "rancher login --token " command is not creating the cli2.json file. The command is pulling the projects from my Rancher server, but once I select the project I need to use, it comes back with the following error:

time="2021-04-07T16:08:53+05:30" level=info msg="Saving config to \\.rancher\\cli2.json"
time="2021-04-07T16:08:53+05:30" level=fatal msg="open \\.rancher\\cli2.json: The system cannot find the path specified."

Am I doing anything wrong?

Thanks,
Pradeep.

sure-7018

Metadata

Metadata

Labels

Waiting for RCWaiting for an RC before this ticket can move.area/cli

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions