How To Install Crystal On Alpine, Arch And MacOS?
Install crystal
-
Alpine OS
apk add crystalClick to copy -
Arch Linux
pacman -S crystalClick to copy -
macOS
brew install crystalClick to copy
Tool for managing crystal source code.
How to use crystal?
Below are few example commands for crystal that you can use in the terminal.
Run a crystal file:crystal path/to/file.crClick to copyCompile a file and all dependencies to a single executable:crystal build path/to/file.crClick to copyStart a local interactive server for testing the language:crystal playClick to copyCreate a project directory for a crystal application:crystal init app application_nameClick to copyDisplay all help options:crystal helpClick to copy
To install the latest version of crystal in your favorite operating system just copy the crystal installation command from above and paste it into terminal. It will download and install the latest version of crystal 2026 package in your OS.




