Skip to main content

db grants

Regenerate and display grant statements from db/schema/grants/.

Usage

postkit db grants [--apply] [--target <target>]

<target>: local or remote

Options

OptionDescription
--applyApply grant statements
--targetTarget for apply: local or remote (default: local)
-v, --verboseEnable verbose output
--dry-runShow what would be done without making changes
--jsonOutput as JSON

Examples

# Show grants
postkit db grants

# Apply to local database
postkit db grants --apply

# Apply to remote database
postkit db grants --apply --target=remote

What It Does

Without --apply, displays the grant statements that would be run.

With --apply, executes the grant statements on the target database.

  • infra - Manage infrastructure
  • seed - Manage seed data