maqpna init
Print a starter manifest for a MAQPNA resource
Synopsis#
maqpna init KIND NAME [--namespace NS] [--from-sample SAMPLE] [-o yaml|json]
maqpna init --listDescription#
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#
| Flag | Type | Description | Default |
|---|---|---|---|
--from-sample | string | sample file to start from (e.g. agent-browser); default: the first sample of KIND | none |
--list | switch | list the samples | none |
--namespace | string | namespace 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-coderWhat happens when you run it#
- 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) |