class
AmberCLI::Documentation::NewCommand
- AmberCLI::Documentation::NewCommand
- Reference
- Object
Overview
Creating New Applications
The new command creates a new Amber application with a complete directory
structure and configuration files.
Usage
amber new [NAME] [options]
Options
-d, --database=DATABASE- Database engine (pg, mysql, sqlite)-t, --template=TEMPLATE- Template engine (slang, ecr)-r, --recipe=RECIPE- Use a named recipe-y, --assume-yes- Skip interactive prompts--no-deps- Don't install dependencies
Examples
Create a basic application:
amber new my_blog
Create with specific database and template:
amber new my_api -d mysql -t ecr
Create in current directory:
amber new . -d sqlite
Generated Structure
The new command creates:
- src/ - Application source code
- config/ - Configuration files
- db/ - Database migrations and seeds
- spec/ - Test files
- public/ - Static assets
- shard.yml - Dependency configuration
- README.md - Project documentation