LakeQL
Overview
  • Installation
Commands
  • init
  • pull
  • create-registry
  • list-schemas
  • list-tables
  • list-views
  • list-columns
  • create-endpoint
  • generate-import-config
Configuration
  • Environment Variables
  • Config File
GitHub
LakeQL
  1. CLI
  2. Commands
  3. create-registry

On this page

  1. Syntax
  2. Usage
  3. Options

create-registry

Generates the config registry for type-safe permissions.

Scans your project for all schemas/**/config.ts files and generates a unified config-registry.ts. This registry enables type-safe usage of createPermission across your endpoints.

Syntax #

1
2
lakeql-cli create-registry [options]

Usage #

1
2
lakeql-cli create-registry
1
2
3
✔ Found 4 config files in schemas/
✔ Generated config-registry.ts

The generated file imports all discovered config modules and re-exports them as a typed registry object.

Options #

--source-path <path>

Base path for generated code (resolved from the command invocation directory). Files are created in `schemas/generated|custom` inside this path.

PropertyValue
Typestring
RequiredNo
Defaultcommand invocation directory

Previous page

pull

Next page

list-schemas