Getting Started

Multiverse uses peer-to-peer network protocols to communicate and share data with peers. Instead of a hosted server, Multiverse runs a headless client to manage peer connections and synchronize data.

The client also includes a web server that can be used to view code offline. You should keep the client running in the background so your data is always up to date.

# run this in a seperate terminal
$ multi daemon

Initialize a new repo

Projects are shared with all peers on the network by default. Do not include anything you wish to keep private.

# run this inside your project root
# replace name with your project name
$ multi init [name]

Clone an existing repo

Content identifiers (or CIDs) are cryptographic hashes that refer to unique content on the network.

# replace cid with the content ID of the repo you want to clone
$ multi clone [cid]

Ignoring files

Create a `multi.ignore` file in your project root and add a new line for each rule.

# ignore all exe files

# ignore the bin directory

Viewing changes

Check your changes before recording them.

$ multi status

Recording changes

Commits can include an optional message to describe what has been changed.

$ multi commit -m "init"

Merging changes

Only trust CIDs from secure sources.

# # replace cid with the content ID of the commit you want to merge
$ multi merge [cid]