CRYSTAL-INIT(1)

πŸ“¦
version 1.22.2 Β· 3 versions
, in arch rolling

πŸŽ€ 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: basename of DIR) 🏷️

πŸ¦‹ 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