MAQPNADocs

maqpna context current

Print the current context

Configure-o json | yaml

Synopsis#

maqpna context current

Description#

From the help of maqpna context:

Contexts are stored in $MAQPNA_CONFIG (default ~/.config/maqpna/config.yaml). The config file holds no secrets: tokens from maqpna login are stored per context in tokens/<NAME>.json next to it with mode 0600. Select a context per invocation with --context NAME or MAQPNA_CONTEXT.

Flags#

This command takes no flags of its own.

The global flags (--context, -o, --no-color, ...) work with every command.

What happens when you run it#

  • Prints a table by default; -o json or -o yaml print the data, and --jq EXPR filters the JSON.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)

Terminal demo#

maqpna context current.cast