LakeQL
Introduction
  • Overview
  • Key Concepts
  • Package Map
Getting Started
  • Prerequisites
  • Quickstart
  • Environment Configuration
  • First Run
Architecture
  • System Overview
  • Data Flow
  • Request Lifecycle
Configuration
  • Environment Variables
  • Authentication
  • Trino Connection
create-app
  • Usage
  • Template Structure
  • Post Creation
Contributing
  • Local Development
  • Contribution Guide
Guides
  • Custom Resolvers
  • Extending Schema
  • Deploying
  • Mutations
  • Load Strategies
GitHub
LakeQL
  1. LakeQL
  2. create-app
  3. Usage

On this page

  1. Scaffolding a New Project
  2. Quick Start
  3. Interactive Mode
  4. CLI Flags
    1. Examples
  5. What Happens
  6. Project Name Validation

Usage

How to use @lakeql/create-app to scaffold a new project.

Scaffolding a New Project #

@lakeql/create-app is LakeQL's project scaffolding tool. It downloads a starter template, configures dependencies, and sets up your project structure.

Quick Start #

npm create @lakeql/app my-api

Interactive Mode #

When run without arguments, the CLI prompts you for:

  1. Project name — lowercase letters, numbers, hyphens, and underscores
  2. Install dependencies — yes/no
  3. Package manager — npm, pnpm, or yarn
npm create @lakeql/create-app@latest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
◆  create-lakeql-app
│
◇  What is your project name?
│  my-lakeql-api
│
◇  Install dependencies?
│  Yes
│
◇  Which package manager?
│  pnpm
│
◇  Template downloaded successfully!
◇  Package.json updated!
◇  Dependencies installed!
│
└  🎉 Project created successfully!

CLI Flags #

FlagDescription
[project-name]Project name as positional argument (skips prompt)
--package-manager=<pm> or -pm=<pm>Package manager: npm, pnpm, yarn, bun
--no-installSkip dependency installation
--quiet or -qSuppress output (useful for scripts/CI)

Examples #

1
2
3
4
5
6
7
8
9
# Non-interactive with pnpm
npx @lakeql/create-app@latest my-api --package-manager=pnpm

# Skip install for CI
npx @lakeql/create-app@latest my-api --no-install --quiet

# Short form
npx @lakeql/create-app@latest my-api -pm=yarn

What Happens #

Project Name Validation #

Project names must match the pattern: ^[a-z0-9-_]+$

  • Lowercase letters, numbers, hyphens, and underscores only
  • No spaces or special characters
  • The name becomes both the directory name and the name field in package.json
The scaffolding tool will exit with an error if the target directory already exists. Choose a new name or remove the existing directory first.

Previous page

create-app

Next page

Template Structure