Account

fw status

status

Show the server in use and whether you are logged in

Added in 0.1.0.

Shows which server fw uses and where that setting came from, and who the stored token belongs to. Inside a project linked to a different server, it shows that server too. Exits with status 3 when not logged in or when the server rejects the stored token.

Usage

fw status [flags]

Options

Name Type Description
--json bool

print JSON on stdout, for scripts and agents

--url string

check this server instead of the default

Environment variable: FW_CLOUD_URL

Value

With --json, an object with server, server_source, logged_in, account (kind, name, email, or null), token_source, problem when not logged in, and project_server when the current project is linked to another server. Token values never appear.

Exit codes

Code Meaning
0 Success
1 Failure
2 Bad flags or arguments
3 Not logged in, or the server rejected the token
4 The server has no such project or resource
5 Browser login was denied, or its code expired
6 An upload has "private" in a path; rerun with --include-private if you mean to send it

With --json, a failure also prints one JSON line on stderr: {"error": "...", "exit_code": 4}. Exit code 6 adds "reason": "private_path".

Examples

Not run

fw status
fw status --json

Related reference