create
Create a credential manually.--max-policy-mode is currently supported for Postgres credentials. It accepts read-only,
write, or admin; omitted values default to read-only, and the installed provider must also
support the requested mode before a capability can run.
When to create credentials manually
- Custom providers not in the built-in registry
- Per-tenant hosts (e.g.
my-store.myshopify.com) - Multiple accounts for the same provider
- Workspace/group-scoped credential overrides
aivault secrets create — the credential is auto-provisioned. If you do create a credential manually for a registry provider, you don’t need to specify --auth (it’s inherited from the registry).