C
CanxJS
v1.6.2
  • Learn
  • Blog
  • Showcase
C
CanxJS

Ultra-fast async MVC backend framework for Bun. Build production-ready APIs with elegance and speed.

Resources

  • Documentation
  • Learn
  • Blog
  • Showcase

Documentation

  • Introduction
  • Installation
  • Core Concepts
  • CLI Commands
  • API Reference

Legal

  • Privacy Policy
  • Terms of Service

© 2026 CanxJS. All rights reserved.

Built with ❤️ for Candra Kirana

CLI Tool

Command Line Interface

The CanxJS CLI helps you scaffold new applications and generate code snippets.

Global Installation

You don't need to install the CLI globally. We recommend using `bunx` to run commands.

Create a new project
$

create-canx

Scaffolds a new CanxJS application with all dependencies installed.

[directory]The name of the directory to create (default: canx-app)
--templateChoose a starter template (api, web, minimal)
--ts, --typescriptInitialize as a TypeScript project (default)

canx make:controller

Generates a new controller file.

Generate Controller
$

canx make:model

Generates a new model file.

Generate Model
$

canx migrate

Runs pending database migrations.

Run Migrations
$