> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blindcast.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# blindcast init

> Create a sample project with pre-generated HLS segments, a player page, and configuration files. No FFmpeg required.

`blindcast init` creates a ready-to-use project directory with everything you need to see encrypted HLS playback: sample video segments, a player HTML page, and a `.env.example` file.

## Usage

```bash theme={null}
blindcast init [directory]
```

If no directory is specified, it creates a `blindcast-demo/` directory in the current folder.

## Example

```bash theme={null}
blindcast init my-first-video
```

```
Created my-first-video/
├── segments/
│   ├── manifest.m3u8        # HLS manifest (3 segments, 720p)
│   ├── seg-0.ts             # Sample segment (~170 KB)
│   ├── seg-1.ts
│   └── seg-2.ts
├── player.html              # Minimal player page (loads from localhost)
└── .env.example             # Template for BLINDCAST_MASTER_KEY and BLINDCAST_SALT
```

The sample segments are pre-generated — no FFmpeg or video tooling required.

## Next steps

After `blindcast init`, follow the [Quick Start](/getting-started/quick-start):

```bash theme={null}
cd my-first-video
blindcast keygen > .env       # Generate keys
source .env                    # Load keys into shell
blindcast encrypt ./segments --content-id demo  # Encrypt
blindcast serve                # Start key server (port 4100)
# Open player.html in a browser
```

## Flags

| Flag      | Description                                 |
| --------- | ------------------------------------------- |
| `--force` | Overwrite existing directory                |
| `--json`  | Output created file paths as JSON to stdout |

<Note>
  The sample video is \~500 KB total. It exists purely for evaluating BlindCast — use your own HLS content for production.
</Note>
