commands.sh

crystal

all

Manage Crystal source code.

More info →

Examples (8)

Run a Crystal file

crystal path/to/file.cr

Compile a file and all dependencies to a single executable

crystal build path/to/file.cr

Read Crystal source code from the command-line or `stdin`, and execute it

crystal eval 'code'

Generate API documentation from inline docstrings in Crystal files

crystal docs

Compile and run a Crystal specification suite

crystal spec

Start a local interactive server for testing the language

Create a project directory for a Crystal application

crystal init app application_name

Display help

made by @shridhargupta | data from tldr-pages