Skip to content

Commit

Permalink
docs: add section on running multiple devnets
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Jan 22, 2025
1 parent b72db47 commit da62191
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,32 @@ artifacts:
somefile.txt: "https://raw.githubusercontent.com/Layr-Labs/incredible-squaring-avs/refs/heads/master/README.md"
```

### Running multiple devnets

Some subcommands accepts a `--name`/`-n` parameter, which sets the devnet name to be used (the default is `devnet`).
By specifying different names, you can work with multiple devnets at the same time.

Example:

```sh
# Starts a devnet with name "devnet"
avs-devnet start
# Starts a devnet with name "foo"
avs-devnet start -n foo
# Gets the ports exposed by "devnet"
avs-devnet get-ports
# Gets the ports exposed by "foo"
avs-devnet get-ports -n foo
# Stops "devnet"
avs-devnet stop
# The next command fails because "devnet" is not running
avs-devnet get-ports
# This works
avs-devnet get-ports -n foo
```

### More Help

You can find the options for each command by appending `--help`:
Expand Down

0 comments on commit da62191

Please sign in to comment.