Install a specific Sui CLI release and optionally configure a deployer wallet for a supported Sui network.
Sui CLI is the official command-line tool for interacting with the Sui blockchain. It is used to manage accounts and keys, switch networks, inspect chain state, and run/publish Move packages.
| Input | Default | Description |
|---|---|---|
network |
testnet |
Supported values are mainnet and testnet. |
version |
- | Sui CLI version tag to install. |
private_key |
- | A Bech32-formatted private key to import |
If version is omitted, the action fetches the latest network-specific release tag from the official MystenLabs/sui repository.
Tip
Get an existing key in the correct Bech32 format:
sui keytool export --key-identity <YOUR_SUI_ADDRESS>rpc_url: Resolved RPC URL for the selected network.active_address: Imported address set as the active Sui address.
Note
If private_key is omitted, the action only installs the Sui CLI and does not set outputs.
| OS | Architecture |
|---|---|
| Linux | x64 |
| Linux | arm64 |
| macOS | x64 |
| macOS | arm64 |
| Windows | x64 |
Install only:
- name: 📦 Setup Sui CLI
uses: CommandOSSLabs/setup-sui-cli@v1Install and configure wallet:
- name: 📦 Setup Sui CLI
uses: CommandOSSLabs/setup-sui-cli@v1
with:
network: testnet
private_key: ${{ secrets.SUI_DEPLOYER_PRIVATE_KEY }}This project is licensed under the Apache License 2.0.