MAQPNADocs

maqpna edit

Edit a resource in $KUBE_EDITOR or $EDITOR (kubectl edit)

Run agents-o json | yaml

Synopsis#

maqpna edit TYPE NAME | TYPE/NAME [-n NS] [-o yaml|json]

Description#

The object opens in $KUBE_EDITOR, else $EDITOR, else vi (notepad on Windows). Saving an unchanged file cancels; a rejected change leaves a copy of your edits in a temporary file.

Flags#

FlagTypeDescriptionDefault
-n, --namespacestringnamespacedefault

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

Examples#

maqpna edit agent coder -n team-a
maqpna edit tp/coder-policy -n team-a -o json

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)