# Build a Wallpaper

The build command creates a private development build for your own use. To distribute your wallpaper to other users, use the `publish` command instead.

## Build Command

<PackageManagerCommand type="exec" command="fluxlay build" />

Or specify a directory and output name:

<PackageManagerCommand type="exec" command="fluxlay build ./my-wallpaper -o custom-name.fluxlay" />

## What Happens

1. Validates `fluxlay.yaml`.
2. Runs `vite build` to produce optimized assets in `dist/`.
3. Fetches your Developer Key from the API (cached locally).
4. Packages the build output into an encrypted `.fluxlay` file.

## Options

| Option                | Description      | Default             |
| --------------------- | ---------------- | ------------------- |
| `-o, --output <name>` | Output file name | `wallpaper.fluxlay` |

## Requirements

- You must be logged in (`fluxlay login`).
- A valid `fluxlay.yaml` must exist in the project root.
