JSPM

@permify-toolkit/cli

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 131
  • Score
    100M100P100Q71626F
  • License MIT

Powerful CLI for Permify: Push schemas, seed relationships, and manage tenants with ease.

Package Exports

  • @permify-toolkit/cli
  • @permify-toolkit/cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@permify-toolkit/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@permify-toolkit/cli

NPM Version License

CLI for pushing schemas and seeding relationships to Permify.

Installation

pnpm add -D @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.