# ezhst build set

Set the build context folder.

## Usage

```
ezhst build set --root-dir <dir>
```

Use it for an app folder in a monorepo. The Dockerfile's `COPY` paths are relative to this folder. Run `ezhst redeploy` to apply it.

## In scripts and agents

Add `--json` to read the result from stdout. Progress goes to stderr. On failure the process exits with code 1 and prints `{"error": "..."}`. Without a TTY the CLI never prompts, so pass every value as a flag.

```
npx ezhst build set --root-dir --json
```

## Related commands

- [`ezhst build show`](/docs/cli/build-show): Show the root directory and the stored Dockerfile.
- [`ezhst build reset`](/docs/cli/build-reset): Clear the root directory and the Dockerfile.
- [`ezhst build dockerfile show`](/docs/cli/build-dockerfile-show): Print the Dockerfile stored on the app.
- [`ezhst build dockerfile set`](/docs/cli/build-dockerfile-set): Upload a Dockerfile to the app.
- [`ezhst build dockerfile template`](/docs/cli/build-dockerfile-template): List starter Dockerfiles, print one, or save it to the app.
