- Add entrypoint: gen-api-key that generates API Key via QodoGen CLI.

```pipx run -e --spec . gen-api-key```

- Add shell script as an alternative to Python for API key generation
This commit is contained in:
Eyal Sharon
2025-05-28 14:12:41 +03:00
parent b802b162d1
commit 5dfd696c2b
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,4 @@
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