Skip to main content
Scaffolds a permission class and its test file in a module. It writes the class under the module’s src/permissions directory, generates a matching test spec, and installs the @talosjs/permission package if it is missing.

Usage

talos permission:create [options]

Examples

talos permission:create
talos permission:create --name=EditPost
talos permission:create --name=EditPost --module=blog --override

Options

OptionDescriptionDefault
--namePermission class name. The Permission suffix is appended automatically.Prompted if omitted
--moduleTarget module the class is generated into.shared
--overrideOverwrite an existing class without prompting.false

AI Skill

This command ships a matching permission:create skill. It generates the permission class and its test file, then guides your AI agent through completing a permission that extends Permission from @talosjs/permission.
talos claude:init