npm run symlink:create --workspace=@diffusionstudio/cli
```
`symlink:create` builds `dapi` and links it into `/opt/homebrew/bin` (the macOS/Homebrew layout). On other setups, build with `npm run build --workspace=@diffusionstudio/cli` and link `apps/cli/dist/index.js` onto your PATH yourself.
## Launch the editor
Every `dapi` command except `open` and `fonts` talks to a running Diffusion Studio instance. Start one:
```sh
dapi open # launch the app
dapi open -b # launch headless (no window), ideal for agents and CI
```
When developing from source, `npm run dev:desktop` starts the app too.
## Turn a folder of footage into a project
Point `open` at a directory and it becomes a project: every supported media file underneath is imported, with the directory structure mirrored as library folders.
```sh
dapi open ./shoot-2026-07
```
The first run creates the project and writes a `.dapi` marker file into the folder; later runs read the marker and just switch to that project. Commit the marker to share one project across a team, or add it to `.gitignore` to keep the association per-clone.
You can also manage projects directly: `dapi project create`, `dapi project ls`, `dapi project set <id>`.
## Look around
```sh
dapi context # the open project: scenes, active scene, playhead, fonts
The `key` is the scene's stable identity: re-running the mount rebuilds that scene in place instead of adding a copy. For anything real, put the module in a file (`dapi mount hero.tsx`) and see [Writing compositions](composition.md).
Renders the active scene locally with sensible defaults (MP4, H.264, 1080p). Codec, bitrate, resolution, and trim are configurable; see [`node render`](cli.md#node-render) in the CLI reference.