svenluijten / forge-cli

🔥 A command line utility to interact with your Laravel Forge servers, sites, and more.
https://svenluijten.com
MIT License
64 stars 14 forks source link

Forge Authorise command not working #39

Closed gbwashleybrown closed 4 years ago

gbwashleybrown commented 4 years ago

Hi,

After I run $ forge authorize it asks for my API key.

When I paste my key in (or even try just typing random stuff) and press enter, nothing happens.

It just stays at the 'What is your API key?` step and have to ctrl+c to get out of it...

What do I do?

JackWH commented 4 years ago

I just submitted pull request #41, which allows passing in the API key as a parameter to the forge authorize command. It also updates the Symfony console libraries, which may have been contributing to the issue. Once the PR is merged it might solve your problem.

svenluijten commented 4 years ago

@gbwashleybrown I just merged #41 and tagged v0.5.0 with those changes, can you verify that that fixed the issue you were experiencing?

svenluijten commented 4 years ago

Dupe of #13, so closing for the same reason. It's an upstream issue with symfony/console, workaround is to pass the key as an argument to the command: forge authorize <key>. Alternatively, you can "manually" set the key in ~/.forge.json (or ~/forge.json): {"key": "<your key here>"}.