# Compile

### Compilation

Triggered automatically during development if the binary is missing, or manually during pipeline compilation:

* macOS: Compiles main.swift, the stitched Registry.swift, and extension source files into bin/positron-runtime using swiftc.
* Windows: Invokes dotnet publish to build a single, self-contained Release profile binary output to bin/positron-runtime.exe.

### **Build**

This will build (or rebuild) the binary, then exit

```bash
npx positron build
```

### **Dev**

This will build (or rebuild) the binary, then start the app

```bash
npx positron dev
```

### **Run**

This run the app without building

```bash
npx positron run
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://positronjs.gitbook.io/v1/cli/compile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
