---
name: "crystal-init"
section: "1"
platform: "linux"
package: "crystal"
version: "1.22.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/crystal-init"
---

# crystal-init(1)

Create a a new Crystal project

## NAME

crystal-init - Create a a new Crystal project

## SYNOPSIS

**crystal init** TYPE \[DIR \| NAME DIR\]

## DESCRIPTION

TYPE is one of:

**lib**  Creates a library skeleton\
 **app**  Creates an application skeleton

This initializes the lib/app project folder as a git repository, 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.

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.

- **-s, --skip-existing**

  Skip existing files.
