sui-move-cli
v1.0.8
Published
A command-line tool for managing Sui Move projects and tokens
Maintainers
Readme
sui-move-cli
A command-line tool for managing Sui Move projects and tokens.
Prerequisites
- Sui must be installed on your system
- Node.js 16 or higher
Installation
You can run this tool directly using npx:
npx sui-move-cliOr install it globally:
npm install -g sui-move-cliCommands
Create a New Package
Create a new Move package:
npx sui-move-cli new-package -n my-packageBuild Package
Build a Move package:
npx sui-move-cli build -p my-packagePublish Package
Publish a Move package to the Sui network:
npx sui-move-cli publish -p my-package [-b]Options:
-b, --build: Build the package before publishing
Upgrade Package
Upgrade an existing Move package:
npx sui-move-cli upgrade -p my-package [-b]Options:
-b, --build: Build the package before upgrading
Create a New Token
Create a new token with specified parameters:
npx sui-move-cli new-token \
-n "My Token" \
--token-symbol "MTK" \
-d 9 \
-i 1000000000Required parameters:
-n, --name: Token name--token-symbol: Token symbol-d, --decimals: Number of decimals-i, --initialSupply: Initial token supply
Development
Build
npm run buildTest
npm run test-allLicense
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
