-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add a reference section with operations (how to upgrade mud) (#…
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Reference | ||
|
||
## Operations | ||
|
||
### Create a new codebase | ||
|
||
- Using the latest snapshot release: | ||
|
||
``` | ||
pnpm create mud@main <directory> | ||
``` | ||
|
||
- Using the latest pre-release: | ||
|
||
``` | ||
pnpm create mud@next <directory> | ||
``` | ||
|
||
### Modify the codebase version | ||
|
||
- Switch to the latest snapshot release: | ||
|
||
``` | ||
pnpm mud set-version --tag main && pnpm install | ||
``` | ||
|
||
- Switch to the latest pre-release: | ||
|
||
``` | ||
pnpm mud set-version --tag next && pnpm install | ||
``` | ||
|
||
- Switch to [a specific commit](https://github.com/latticexyz/mud/commits/main): | ||
|
||
``` | ||
pnpm mud set-version --commit <hash> && pnpm install | ||
``` |