Suibase Scripts
Introduction
All scripts are listed below and briefly described.
Best way to learn about each is probably just to try them... and "--help".
| Script Name | What are they for? |
|---|---|
lsui | Frontends to Mysten Lab "sui" binaries, each targeting a specific network (no need to "switch" env): lsui→localnet, dsui→devnet, tsui→testnet, msui→mainnet Each script always runs within the proper workdir (client+keystore container) for the intended network.The scripts are mostly transparent; all arguments are passed unchanged to a single Mysten Labs sui client call. Example: $ lsui client gas ← same as sui client gas but always for localnet |
localnet | These are the "workdir scripts" providing suibase specific features. Example: $ localnet faucet all ← sends Sui coins to every address on your localnet |
twalrus | Frontends to the Mysten Labs walrus and site-builder binaries, each targeting a network (the proper config, context and wallet are added automatically): twalrus→testnet, mwalrus→mainnet, lwalrus→localnet lwalrus is a localnet-only subset of the walrus CLI; run lwalrus --help for the list of supported commands.Use tsite/msite instead of site-builder for testnet/mainnet.See Walrus for more info. Example: $ twalrus info ← shows the testnet Walrus system info |
How to publish your Move code?
Suibase has a workdir command to make publishing easier — and gives your CI or AI agent programmatic access to the latest publications via the helpers.
Example to publish on localnet:
$ cd <location of Move.toml>
$ localnet publishAlternatively you can do:$ localnet publish --path <location of Move.toml>
Replace localnet with testnet or mainnet for another network.
This should work assuming you have enough funds in the active-address (and the network is up and running!).
Do $ localnet publish --help for more info.
