CRYSTAL-INIT(1)
π CRYSTAL-INIT(1) π
okay bestie, welcome to CRYSTAL-INIT(1) from the Crystal Compiler Command Line Reference Guide π this is the little command that creates a whole new Crystal project, and honestly? iconic.
π NAME π
crystal-init β Create a a new Crystal project β¨
πΈ SYNOPSIS πΈ
crystal init TYPE [DIR | NAME DIR]
β¨ DESCRIPTION β¨
okay so TYPE is one of these two, and you gotta pick:
libβ Creates a library skeleton π§appβ Creates an application skeleton π
Then crystal-init initializes the lib/app project folder as a git repository β slay β with a license file, a README file, a shard.yml for use with shards (the Crystal dependency manager), a .gitignore file, and src and spec folders. it's giving βfull starter packβ π
Now the path bits:
DIRβ directory where project will be generated πNAMEβ name of project to be generated (default:basenameofDIR) π·οΈ
π¦ OPTIONS π¦
-f,--forceβ Force overwrite existing files. yes ma'am, it will absolutely overwrite them π₯-s,--skip-existingβ Skip existing files. the low-drama option: leave whatβs already there alone π
sign-off time, bestie: this page is from crystal 1.22.2, dated 2026-10-30 π«Άπ
π¦ where this page comes from
- arch rolling: crystal 1.22.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms