mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 05:10:38 +08:00

```pipx run -e --spec . gen-api-key``` - Add shell script as an alternative to Python for API key generation
5 lines
263 B
Bash
5 lines
263 B
Bash
curl -s --no-buffer "https://api.cli.qodo.ai/v1/auth/cli-auth" | while read line; do
|
|
[[ $line == data:*auth_url* ]] && open "$(echo "$line" | sed 's/.*"auth_url":"\([^"]*\)".*/\1/' | sed 's/\\//g')"
|
|
[[ $line == data:*api_key* ]] && echo "$line" && break
|
|
done
|