Hi Team, when running infracost auth login command...
# help
a
Hi Team, when running infracost auth login command after installing terracost. I am getting the below error.
b
Hello! Could you please check that your command is still running while you're logging in in browser? This error says that the CLI is expected to be running to accept the redirect from the browser It should show something like
Copy code
We're redirecting you to our log in page, please complete that,
and return here to continue using Infracost.

If the redirect doesn't work, use this URL:

<https://dashboard.infracost.io/login>...

Waiting...
a
image.png
yes it is still waiting..what i need to do for that
b
Usually nothing, after logging in to Infracost Cloud the browser redirects to localhost and CLI accepts the data
a
how much time will it take to redirect..
b
Instant
a
i waited for 10 mins
b
Could you please verify that the port 40751 matches in the redirect url
<http://localhost:40751>
b
Okay, now it's 34215
a
it is not redirecting to any thing, it is in waiting stage
b
Oh, wait, are you running this command in a container somewhere?
a
in linux server
b
This command should be running on your local machine
a
in local machine where?
b
Where your browser is running 🙂
a
can i call you for a moment
b
The idea is that the browser redirects back to localhost where the CLI is running and waiting for that redirect request. If you're running the command on one machine, but the browser is on another, this won't work
Sure thing, I'll dm you the zoom link
a
okay
c
As an alternative to
infracost auth login
you can log in to the infracost dashboard yourself, copy the api key from the
Org Settings
page and use the configure command to set up the CLI:
Copy code
infracost configure set api_key MY_API_KEY
b
Yep, we did this on the cloud server 👍
a
Thanks Vadim and Tim..Thanks alot