Skip to content

Latest commit

 

History

History

cli

README.md

@permify-toolkit/cli

NPM Version License

CLI for pushing schemas and seeding relationships to Permify.

Installation

pnpm add @permify-toolkit/cli

Quick Example

# Push schema from permify.config.ts
permify-toolkit schema push

# Seed relationships from a JSON file
permify-toolkit relationships seed --file-path ./data/relationships.json

# Push to a new tenant (creates it if needed)
permify-toolkit schema push --tenant new-tenant -c

Commands

Command Description
schema push Push schema to Permify server
relationships seed Seed relationship tuples from JSON

Features

  • Shared Config — reads from permify.config.ts, no flag duplication
  • Inline or File Schemas — TypeScript DSL or .perm files
  • Tenant Management — auto-create tenants with --create-tenant
  • Schema Validation — Permify validates on push with detailed error messages

Documentation

For full documentation, guides, and API reference, visit the Permify Toolkit Docs.