SR
Click to open github profile
Usage

Commands

Learn about all of the commands of the craft query API


create-public-schema

Creates a public schema.

php craft query-api/default/create-public-schema
ddev craft query-api/default/create-public-schema

create-public-token

Creates a public schema along with an access token. This will fail if a schema or token with the same identifier already exists.

php craft query-api/default/create-public-token
ddev craft query-api/default/create-public-token

clear-caches

This will clear all data caches managed by the Query API.

php craft query-api/default/clear-caches
ddev craft query-api/default/clear-caches

generate-types

This will generate TypeScript types based on your elements and fields.

php craft query-api/typescript/generate-types
ddev craft query-api/typescript/generate-types

You can also define an output path by using the --output argument. This will also accept craft aliases.

ddev craft query-api/typescript/generate-types --output=./your-path/yourFile.ts

Copyright © 2025 Samuel Reichör