crystal
Manage Crystal source code. More information: https://crystal-lang.org/reference/using_the_compiler.
- Run a Crystal file:
crystal
- Compile a file and all dependencies to a single executable:
crystal build
- Read Crystal source code from the command-line or
stdin, and execute it:
crystal eval ''
- 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:
crystal play
- Create a project directory for a Crystal application:
crystal init app
- Display help:
crystal help
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
