commandosslabs/Deploy Sui Smart Contract
Publish or upgrade a Sui Move smart contract.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| dir | Directory containing Move package files. | no | . |
| env | Target Sui CLI environment alias (for example, testnet or mainnet). | no | testnet |
| rpc-url | Optional RPC URL override. If omitted, uses official endpoint by env (mainnet/testnet; fallback testnet), then adds/switches/overrides env as needed. | no | — |
| verify-deps | Whether to pass --verify-deps for publish/upgrade to verify dependency source code. | no | true |
| deploy-mode | Deployment strategy (auto, force-publish, or safe-upgrade-only). | no | auto |
Outputs
| name | description |
|---|---|
| digest | Transaction digest. |
| upgrade-cap | Upgrade capability object ID used for package upgrades. |
| original-package-id | Contract's original package ID from the Published.toml original-id field. This stays the same across upgrades and changes only after force-publish. |
| latest-package-id | Latest contract package ID from the Published.toml published-at field. |
| published-type | Publish result type, either new or upgraded. |
| prev-original-package-id | Contract's previous original package ID. It matches original-package-id except when force-publish replaces an existing package. |