1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/crystal.md

25 lines
504 B
Markdown
Raw Normal View History

2018-09-14 11:58:02 -04:00
# crystal
> Tool for managing Crystal source code.
> More information: <https://crystal-lang.org/reference/using_the_compiler>.
2018-09-14 11:58:02 -04:00
- Run a Crystal file:
2018-09-14 11:58:02 -04:00
`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:
2018-09-14 11:58:02 -04:00
`crystal init app {{application_name}}`
- Display all help options:
`crystal help`