Dwex Logo
CLI

CLI

Official command-line interface for building and developing Dwex applications

Overview

The Dwex CLI (@dwex/cli) is a powerful command-line tool that streamlines your development workflow. It provides commands for running a development server, building for production, and scaffolding code with interactive prompts.

Features

  • Development Server - Hot reload with automatic restart on file changes
  • Production Build - Optimized bundling with Bun.build()
  • Code Generation - Interactive scaffolding for modules, controllers, services, and more
  • Configuration - Flexible configuration via dwex.config.ts

Installation

The CLI is included automatically when you create a new Dwex project:

bun create dwex my-app

Or add it to an existing project:

bun add -D @dwex/cli

Quick Start

Run the development server:

bunx dwex dev

Build for production:

bunx dwex build

Generate a new module:

bunx dwex g module users

Available Commands

The CLI provides three main commands:

Help

Get help for any command:

bunx dwex --help
bunx dwex dev --help
bunx dwex build --help
bunx dwex generate --help

Next Steps

Learn more about each command: