This is a Homebrew tap for the Amber CLI - a command-line tool for managing Crystal web applications built with the Amber Framework.
# Add the tap
brew tap amberframework/homebrew-amber-cli
# Install amber-cli
brew install amber-cli
Or install directly:
brew install amberframework/homebrew-amber-cli/amber-cli
This is currently testing what it would be like to provide a precompiled binary to make getting started as fast as possible. This does mean we may have mistakes in the configuration for new users. If you run into weird issues, try re-installing from source with brew install --from-source amber-cli
to have a fresh copy compiled. You'll most likely see more meaningful errors that can be installed by additional brew install
commands for any missing packages. Please open an issue and report these so I can update the Formula for future fans!
After installation, you can use the amber
command:
# Check version - prints general help info
amber
# Get help
amber --help
# Create a new Amber application
amber new my_app
# Generate components
amber generate controller users
amber generate model post
# Update the tap
brew update
# Upgrade amber-cli
brew upgrade amber-cli
- Homepage: https://amberframework.org
- Source Code: https://github.com/homebrew-amber-cli/amber_cli
- Issues: Please report issues to the main repository
The formula is located at Formula/amber-cli.rb
and supports:
- macOS (Intel and Apple Silicon)
- Linux (x86_64)
- Fork this repository
- Make your changes to the formula
- Test locally:
brew install --build-from-source ./Formula/amber-cli.rb
- Submit a pull request