Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cli/deploy): how to use --forgeScriptOptions 🚗 #3241

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/pages/cli/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ These are the command line options you can specify on `mud deploy`:
| `--alwaysRunPostDeploy` | Run `PostDeploy.s.sol` after each deploy | boolean | `false` (run the script only when deploying a new `World`) |
| `--help` | Show help | boolean | `false` |
| `--version` | Show version number | boolean | `false` |
| `--forgeScriptOptions` | Command line options for forge | string | empty |
| `--forgeScriptOptions` | Command line options for forge<sup>2</sup> | string | empty |

(1) The hostname `localhost` may not work. If that is the case, use `127.0.0.1` instead.
(1) The hostname `localhost` may not work. If that is the case, use `127.0.0.1` instead.<br />
(2) Forge command line options also start with a double dash. To avoid having them parsed by the `mud` command-line parser, use this syntax:

```sh
pnpm mud deploy --forgeScriptOptions="--legacy --skip-simulation"
```

<Callout type="info" emoji="ℹ️">
If you want to [verify](./verify) the contracts that make up the `World`, do it right after deployment. Verification
Expand Down
Loading