Skip to content

Commit

Permalink
docs: add a reference section with operations (how to upgrade mud) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt authored Aug 1, 2023
1 parent d89431d commit 7fb0dad
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
ecs: "ECS and MUD",
plugins: "Plugins",
tutorials: "Tutorials",
reference: "Reference",
contribute: "Contribute",
roadmap: {
title: "Roadmap",
Expand Down
37 changes: 37 additions & 0 deletions docs/pages/reference.mdx
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
```

0 comments on commit 7fb0dad

Please sign in to comment.