MAQPNADocs

maqpna init

Print a starter manifest for a MAQPNA resource

Get started-o json | yaml

Synopsis#

maqpna init KIND NAME [--namespace NS] [--from-sample SAMPLE] [-o yaml|json]
maqpna init --list

Description#

KIND is a kind, plural or short name (agent, toolpolicy, mcpserver, tier, tenant, memorystore, a2apeer, budgetpolicy, sovereigntypolicy, agentsession, ...). The manifest is written to stdout; edit it, then check it with maqpna validate.

Flags#

FlagTypeDescriptionDefault
--from-samplestringsample file to start from (e.g. agent-browser); default: the first sample of KINDnone
--listswitchlist the samplesnone
--namespacestringnamespace of a namespaced resource (default: -n before the command, the context's namespace, or the sample's)none

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

Examples#

maqpna init --list
maqpna init agent coder --namespace team-a > coder.yaml
maqpna init toolpolicy coder-tools --from-sample toolpolicy-coder

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 init.cast