Out Plane

status

Show which team and credential the next command will use.

read onlyrepeatableno sign-in

What the next command will do before you run it: which credential answers, which team it acts on, and which of the several ways of choosing a team actually won.

It is a report rather than an assertion, so it exits 0 even when nothing is configured and the findings are in the fields. whoami is the one that fails when there is no credential.

Usage

outplane status

Output

FieldTypeDescription
signedInboolA credential was resolved.
teamSlugstring | null
teamIdstring | null
teamSourcestring | nullWhich of the five places the team came from. One of flag, environment, link file, config file, token claim.
tokenSourcestring | nullWhere the credential came from. keychain means the operating system's own secret store; credential file means a plaintext copy on disk, which is what a machine with no keychain falls back to. One of flag, environment, keychain, credential file.
expiresAtstring | nullRFC 3339, read from the token.
daysLeftint | nullNull when the token never expires, negative once it has passed.
expiredbool
problemstring | nullWhat is wrong, in one sentence, when something is.
linkedDirectorystring | nullPath of the link file in effect.
configDirectorystring
versionstring

Examples

See what the next command will act on

outplane status

Find out why a command used the wrong team

outplane status --json --fields teamSlug,teamSource
{
  "teamSlug": "acme",
  "teamSource": "link file"
}

Decide in a script whether to sign in

outplane status --json --fields signedIn,expired
{
  "expired": false,
  "signedIn": true
}

What to Know

  • This command exits 0 even when nothing is configured. It is a report, not an assertion: the findings are in the fields. Use outplane whoami, which exits 3, to assert that a credential exists.
  • teamSource names the winner of the resolution chain. The order is: --token, OUTPLANE_TOKEN, --team, OUTPLANE_TEAM_ID, the directory link, then the team set by outplane team use.
  • No network request is made. expired is decoded from the token, so a token revoked in the console still reads as fine here and only fails on the next real command.
  • problem is a sentence for a human. Branch on the typed fields instead: signedIn, expired, teamSource.

Errors

Beyond 0 for success, this command exits with:

ExitKindMeaning
2usageInvalid arguments, unknown flag, or client-side validation failure.

On this page