# Deployment

Deployment is done by running `npx hardhat run scripts/deploy.js`

The various scripts in the `scripts` and `svg` directories are used in deployment.

After deployment [tag the source code](https://git-scm.com/book/en/v2/Git-Basics-Tagging) with the transaction hash that deployed. Commit and push the tag to git. This records and associates the diamond and facet source code with the upgrade.

After deployment the [hardhat etherscan plugin](https://hardhat.org/plugins/nomiclabs-hardhat-etherscan.html) should be used with the diamond and each facet to publish the verified source code.


---

# 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://docs.aavegotchi.com/developers/aavegotchi-contracts/extending-aavegotchi-contracts/deployment.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.
