CLI
Amber has a built in CLI tool, to make your life easier while developing applications.
Here is a list of the available commands:
db, database - Performs database maintenance tasks
e, encrypt - Encrypts environment YAML file. [env | -e --editor | --noedit]
x, exec - Executes Crystal code within the application scope
g, generate - Generate Amber classes
n, new - Generates a new Amber project
routes - Prints all defined application routes
w, watch - Starts amber development server and rebuilds on file changes
Read a long this guide to learn more about these command and how much time and efficient it can make your development experience.
Getting Command Help
You can get help from each command by running -h
or --help
next to the command
Eg.
This will output to your shell the following documentation.
Usage
Options
-d
defaults to pg-t
defaults to slang--deps
will runcrystal deps
for you.
Last updated