MAQPNADocs

maqpna create

Create resources from files, or a session (kubectl create)

Run agents-o json | yaml

Synopsis#

maqpna create -f FILE|DIR|URL|- [-R] [-n NS] [--dry-run none|client|server] [-o yaml|json|name]
maqpna create session --agent A [session start flags]
maqpna create snapshot SESSION [session snapshot flags]

Description#

create -f fails for objects that exist (use apply to create or update). create session runs maqpna session start; create snapshot runs maqpna session snapshot.

Flags#

FlagTypeDescriptionDefault
-R, --recursiveswitchrecurse into sub-directories of -f directoriesnone
--dry-runstringnone | client (nothing is sent) | server (the API server checks the change and stores nothing)none
-f, --filenamestringmanifest file, directory, URL or - (stdin); repeatablenone
-n, --namespacestringnamespacedefault

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

Examples#

maqpna create -f agent.yaml
maqpna create session --agent coder --task "fix the flaky test" --wait

What happens when you run it#

  • --dry-run: none | client (nothing is sent) | server (the API server checks the change and stores nothing).
  • 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)