Loading...
Loading...
Use the Forgejo CLI (fj) to authenticate and operate on a Forgejo instance (issues, PRs, repositories) with correct host handling.
npx skill4agent add daisuke897/dotfiles forgejo-cli-opsfjsecret-tool-H/--hostfj -H <FORGEJO_HOST> repo view <owner>/<repo>FJ_HOSTexport FJ_HOST=<FORGEJO_HOST>echo -n "<PAT_VALUE>" | secret-tool store --label="Forgejo PAT" service forgejo user <username>@<FORGEJO_HOST>
echo -n "$(secret-tool lookup service forgejo user <username>@<FORGEJO_HOST>)" | fj -H <FORGEJO_HOST> auth add-key <username>fj -H <FORGEJO_HOST> auth list
fj -H <FORGEJO_HOST> whoamifj auth logout <FORGEJO_HOST>
secret-tool clear service forgejo user <username>@<FORGEJO_HOST>Error: not logged in-HFJ_HOSTsecret-tool lookup