Skip to content

docs: fixed the document for canister snapshot with '--replace' option. #4321

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

Merged
merged 1 commit into from
Jul 16, 2025
Merged
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
4 changes: 2 additions & 2 deletions docs/cli-reference/dfx-canister.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ You can use the following arguments with the `dfx canister snapshot create` comm
| Argument | Description |
|-----------------------|--------------------------------------------------------------------------------|
| `<canister>` | The canister to snapshot. |
| `--replace <replace>` | If a snapshot ID is specified, this snapshot will replace it and reuse the ID. |
| `--replace <replace>` | If a snapshot ID is specified, the snapshot identified by this ID will be deleted and a snapshot with a new ID will be returned. |

### Examples

Expand Down Expand Up @@ -1060,7 +1060,7 @@ You can use the following arguments with the `dfx canister snapshot upload` comm
|-----------------------|--------------------------------------------------------------------------------|
| `<canister>` | The canister to upload the snapshot to. |
| --dir `<dir>` | The directory to upload the snapshot from. |
| --replace `<replace>` | If a snapshot ID is specified, this snapshot will replace it and reuse the ID. | |
| --replace `<replace>` | If a snapshot ID is specified, the snapshot identified by this ID will be deleted and a snapshot with a new ID will be returned. |

### Examples

Expand Down
Loading