Page kind: Reference
swarmops auth status#
List the logins your login file holds, without their tokens.
It reads the login file alone, and reaches no network: no token is checked with its provider. No file is no logins. A login of a provider this build does not know is listed too. A file that is a symbolic link, that its group or others can read or write, or that is not a login file of this version is E_INVALID_ARG, with the file in details.auth_file.
- Group
auth- Since
0.12.0- Mutates
- no
- Identity required
- no
- MCP tool
- none
- Envelope op
auth_status- Exit codes
- 02
- Errors
- E_INVALID_ARG
Syntax#
swarmops auth status [OPTIONS]Required arguments#
None.
Optional arguments#
The command also takes the global options.
Examples#
SWARMOPS_AUTH_FILE=[tmp]/state/swarmops/auth.toml swarmops auth statusShow 6 more lines
"meta":Exit code 0. Recorded by the CLI tests. A name in square brackets, such as [tmp] or [c1], stands for what differs from run to run: the test's temporary directory, an id, a time.
Return information#
result is a AuthStatus (swarmops schema AuthStatus prints its JSON Schema).
| Field | Type | Required | Description |
|---|---|---|---|
file | string or null | no | The login file, a path on the caller's host, whether or not it exists. Omitted on a host that names no directory for it. |
logins | array of AuthEntry | yes | The logins, in the file's order; empty when there is no file or it holds none. |
Envelope op: auth_status.
Exit codes:
0: Success.2: The request or the command line is malformed.
Errors#
- E_INVALID_ARG (exit 2): A malformed argument or request, including a command-line usage error.
Any command that opens a store may also fail with a store error, such as E_NOT_A_REPO, E_IO or E_STORE_CORRUPT; a command line the grammar refuses is E_INVALID_ARG (exit 2).