Skip to main content
Version: v5.7.0

opschain git-credentials list

Included from Basic tier

opschain git-credentials list [--project <code>]

Lists the shared git credentials a scope can reference, name ascending: with --project, the project's own credentials plus the global ones (a remote in that project may reference either); without it, the global registry alone (which needs the /admin determination).

Columns: NAME, KIND, SCOPE (the project code, or global), USER, SECRET (the password of an https_basic credential, the passphrase of an ssh_key one), SSH KEY, ID, CREATED. The three value columns print exactly what the server returns — the masked placeholder {{hidden}} when a value is stored, - when none is. A scope with no credentials prints no git credentials.

Flags​

FlagMeaning
--project <code>The project whose registry to list (its own plus the global credentials). Omit for the global registry alone.
--filter <column>[!]=<value>Keep only rows matching the term (repeatable; terms AND). Columns are the printed table headers lowercased (spaces fold to _); * wildcards match the whole cell case-insensitively, != negates, commas mean any-of. Applied client-side. Grammar: opschain docs cli.

-o json|yaml prints the resource documents (id, attributes) instead of the table — the credential fields come back as the server sent them: {{hidden}} when set, null when unset; project_code is null for a global credential.

Exit codes​

CodeMeaning
0Listed (including an empty list).
1The request failed (unknown project, a denied global listing, network, auth).
2Usage error — no server target, a bad --filter term.

Examples​

opschain git-credentials list --project acme
NAME KIND SCOPE USER SECRET SSH KEY ID CREATED
deploy-key ssh_key global - {{hidden}} {{hidden}} 0199c7… 2026-11-07T00:00:00.000000Z
github-ci https_basic acme {{hidden}} {{hidden}} - 0199c8… 2026-11-08T00:00:00.000000Z

See also​

  • opschain docs cli/git-credentials-create — add one.
  • opschain docs cli/git-remotes-list — the remotes' AUTH column reads shared-credential for a referencing remote.