mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 22:06:02 +02:00
24 lines
427 B
Markdown
24 lines
427 B
Markdown
![]() |
# crystal
|
||
|
|
||
|
> Tool for managing crystal source code.
|
||
|
|
||
|
- 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}}`
|
||
|
|
||
|
- Start a local interactive server for testing the language:
|
||
|
|
||
|
`crystal play`
|
||
|
|
||
|
- Create a project directory for a crystal application:
|
||
|
|
||
|
`crystal init app {{application_name}}`
|
||
|
|
||
|
- Display all help options:
|
||
|
|
||
|
`crystal help`
|