Skip to content

neo auth

Sign in and manage forge credentials.

Browser device-flow login (which also wires neo as git’s credential helper), optional machine-local SSH enrollment, session status, and logout.

neo auth [OPTIONS] <COMMAND>

Sign in via the browser device flow.

Before creating the device session, optionally selects or generates a machine-local SSH key. Browser approval then binds that key and the issued CLI token together. Also registers neo as git’s credential helper so plain git fetch/pull/clone against the forge authenticate transparently.

neo auth login [OPTIONS]

Show the stored login and whether it is still valid

neo auth status [OPTIONS]

Revoke the stored CLI token on the server and remove it locally

neo auth logout [OPTIONS]

git credential helper — invoked by git, not by hand.

neo auth login wires it up (credential.https://<host>.helper = "!neo auth git-credential"); git then runs neo auth git-credential get to fetch your token for git fetch/pull/clone. store/erase are no-ops.

neo auth git-credential [OPTIONS] <ACTION>
Option Value Required Default Env Values Description
<ACTION> yes The action git passes: get, store, or erase