Files
pr-agent/pr_agent/scripts/qm_endpoint_auth/gen_api_key.sh
Eyal Sharon 5dfd696c2b - 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
2025-05-28 14:12:41 +03:00

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