Skip to content

Commit 44b0bd2

Browse files
zoeyTMkanej
authored andcommitted
document reset flag
1 parent 9cf94c3 commit 44b0bd2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/src/content/ignition/docs/guides/modifications.md

+14
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,17 @@ We can see two new batches that execute the new parts of the module, while keepi
9797
## Incompatible modifications
9898

9999
There are certain modifications one can make to a `Future` definition that would make the new version incompatible with the previous one _if_ the previous one has already been partially or completely executed. This would lead to Hardhat Ignition being unable to continue your deployment from where it was left off. Read the [Reconciliation](../advanced/reconciliation.md) guide to learn more about this.
100+
101+
## Clearing an existing deployment with reset
102+
103+
In the above case, or if you simply want to start over, you can use the `--reset` option to clear the previous deployment and start from scratch:
104+
105+
```sh
106+
npx hardhat ignition deploy ignition/modules/Apollo.ts --network localhost --reset
107+
```
108+
109+
:::tip
110+
111+
When using `--reset` on a network other than Hardhat Network (i.e. mainnet, testnets, etc.), Hardhat Ignition will ask you to confirm that you want to clear the previous deployment before proceeding.
112+
113+
:::

0 commit comments

Comments
 (0)