> For the complete documentation index, see [llms.txt](https://art.privacypride.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://art.privacypride.com/updating-the-leo-program.md).

# Updating the Leo Program

You can arbitrarily change the on-chain program to suit your needs.\
\
Setup Instructions

1. Install Leo. You can find the [setup instructions here](https://github.com/AleoHq/leo#2-build-guide).
2. Change `.env.local.example` to `.env.local` and add your `Private_Key`. It must match your `ADDRESS` in the `.env`
3. Edit the [program here](https://github.com/demox-labs/art-factory/blob/main/program/src/main.leo)
4. Once you've changed the program to suit your needs. Run

`yarn program`

This command will compile the leo program and then update the [nft-program.ts](https://github.com/demox-labs/art-factory/blob/main/src/aleo/nft-program.ts) file. This is the actual file that's used within the [Deploy](/admin/deploy.md) page to create the on-chain deployment.

In future updates of the SDK, we hope to remove the Leo dependency as it's only purpose right now is to ensure that we can compile from Leo code to Aleo instructions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://art.privacypride.com/updating-the-leo-program.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
