# Commands

> What a person types inside an Occlude session: scripts that run on the build's side, the occlude verbs, and what ordinary tools return.

Source: https://occlude.dev/docs/commands/ · Reviewed 28 November 2026

Inside a session, the terminal is an ordinary terminal over the files you may read. A few commands do more: they run on the build's side, against the whole repository.


## Your scripts

The scripts your profile lists run on the build's side. Type them as you always do:

```sh
npm run dev
npm test
npm run build
```

Each runs the script of that name from the repository's package manifest, against the whole repository. Output comes back sanitised; see [How a build runs](https://occlude.dev/docs/builds/). A script the profile does not list is refused, and the refusal says which scripts you may run.

## The occlude verbs

| Command | Does |
|---|---|
| `occlude status` | Lists the files you changed in this session |
| `occlude diff` | Shows your changes. Only *Visible* paths can have changes |
| `occlude submit` | Commits your changes to a branch and opens a pull request on the real repository, for review |
| `occlude artifact <path>` | Downloads a build output, such as a bundle or a coverage report, through the download filter: files under *Occluded* paths are removed |

An agent over MCP runs the same verbs through `run_command`: `submit`, `status`, `diff`.

## Ordinary tools

| You type | You get |
|---|---|
| `ls`, `cat`, `grep -r`, `find` on your files | What you would get on your laptop |
| The same on an *Occluded* or *Absent* path | `No such file or directory`, as for a path that never existed. The attempt is on the record |
| A write to a *Read-only* file | `Permission denied`, recorded |
| `git log`, `git status` | No repository here: `.git` is on the build's side. Use `occlude status` and `occlude diff` |
| `curl localhost:<port>` | The dev server's preview, as the browser sees it |
| Anything that reaches the internet | Refused. Your package registry mirror is reached by the build, not by your shell |
