How To Install Crystal On Alpine, Arch And MacOS?

How To Install Crystal On Alpine, Arch And MacOS?

crystal

Tool for managing crystal source code.

Install crystal

  • Alpine OS apk add crystal Click to copy
  • Arch Linux pacman -S crystal Click to copy
  • macOS brew install crystal Click 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 copy
Compile a file and all dependencies to a single executable:
crystal build path/to/file.crClick to copy
Start a local interactive server for testing the language:
crystal playClick to copy
Create a project directory for a crystal application:
crystal init app application_nameClick to copy
Display 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.