Lowdefy CLI

5.1.0 · active · verified Wed Apr 22

Lowdefy is an open-source, low-code framework for building web applications and server-side APIs primarily through declarative YAML or JSON configuration. It abstracts much of the underlying JavaScript, TypeScript, and UI component boilerplate, allowing developers to define application logic, UI layouts (leveraging Ant Design), and data connections efficiently. The `lowdefy` npm package provides the Command Line Interface (CLI) tool essential for initializing projects, running a development server, and building applications. As of version 5.1.0, Lowdefy maintains an active release cadence, with frequent updates delivering new features like Ant Design v6 integration, enhanced theme token management, and improved dark mode support. Its key differentiators include its strong emphasis on YAML-driven configuration, deep integration with the Ant Design ecosystem, and comprehensive support for full-stack application development, including server-side APIs and user authentication, without extensive custom coding.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize a new Lowdefy project, install its dependencies, and launch the local development server. It includes an example `lowdefy.yaml` to show basic page and block configuration, illustrating how to display text and link to external resources.

mkdir my-lowdefy-app
cd my-lowdefy-app

# Initialize a new Lowdefy project. This will create basic configuration files.
npx lowdefy@latest init

# Install project dependencies using pnpm (recommended by Lowdefy)
pnpm install

# Start the development server. The application will be accessible at http://localhost:3000
npx lowdefy@latest dev

# Example of a simple lowdefy.yaml configuration (add this to lowdefy.yaml after init):
# lowdefy: 5.0.0
# name: My First Lowdefy App
# pages:
#   - id: home
#     type: PageHeader
#     properties: { title: 'Welcome to Lowdefy!' }
#     blocks:
#       - id: content_card
#         type: Card
#         properties: { title: 'Hello World' }
#         blocks:
#           - id: welcome_text
#             type: Paragraph
#             properties: { content: 'This is a basic Lowdefy application. Edit lowdefy.yaml to get started!' }
#           - id: docs_button
#             type: Button
#             properties: { title: 'Go to Docs', size: 'large', type: 'primary' }
#             events:
#               onClick:
#                 - id: open_docs
#                   type: Link
#                   properties: { url: 'https://docs.lowdefy.com', target: '_blank' }

view raw JSON →