maqpna create
Create resources from files, or a session (kubectl create)
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#
| Flag | Type | Description | Default |
|---|---|---|---|
-R, --recursive | switch | recurse into sub-directories of -f directories | none |
--dry-run | string | none | client (nothing is sent) | server (the API server checks the change and stores nothing) | none |
-f, --filename | string | manifest file, directory, URL or - (stdin); repeatable | none |
-n, --namespace | string | namespace | default |
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" --waitWhat 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 jsonor-o yamlprint the data, and--jq EXPRfilters the JSON.
Exit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command) |