komrad github token

Print an installation token, minting one if the cached one is spent

komrad github

komrad github token [flags]

Print an installation token.

Run this to check the App is set up. A token starting ghs_ means the key, the App id and the installation id all agree. Any other answer says which one does not.

The stand-in komrad puts ahead of an agent's PATH as gh runs this for every call, so a tool komrad hands the token to never holds a stale one. --checkout is how that stand-in says which tree it was run in, and refuses a tree whose origin is on a host the App does not reach. --if-configured prints nothing and succeeds on a machine that names no App, which leaves gh the credential the machine was logged in with.

Flags#

FlagTypeDescription
--checkoutstring

refuse unless this checkout's origin is a repository on github.com

--if-configuredbool

print nothing and succeed when the config names no app

Inherited flags#

FlagTypeDescription
--configstringArray

path to a config TOML, repeatable, later files win over earlier ones

--enginestring

engine to reach, named after a file in the config's engines directory, layered over the config