class AmberCLI::Documentation::NewCommand

Overview

Creating New Applications

The new command creates a new Amber V2 application with a complete directory structure and configuration files.

Usage

amber new [NAME] [options]

Options

Examples

Create a basic application:

amber new my_blog

Create an application backed by MySQL:

amber new my_api -d mysql -t ecr

Create in current directory:

amber new . -d sqlite

Generated Structure

The new command creates:

The web template pins Amber 2.0.0-beta.5, uses ECR, and includes Grant, Micrate-powered database commands, and the selected database driver. Model, scaffold, and migration generators are supported. API-resource, authentication, and native generators are preview surfaces during the beta.

Defined in:

amber_cli/documentation.cr