Skip to content
Skills Library
Programming · Automation

sui-deployer

/sui-deployer

Use when deploying or upgrading Move packages to devnet/testnet/mainnet, managing UpgradeCaps, or planning deployment strategy. Triggers on "deploy", "publish", "upgrade package", "sui client publish", "mainnet release", "staged rollout", or any deployment/release task. Also use when the user asks about package versioning or upgrade compatibility.

Licence
MIT
Last repository change
30.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/deploy-devnet.sh, scripts/deploy-testnet.sh

What it does and when to use it

Use when deploying or upgrading Move packages to devnet/testnet/mainnet, managing UpgradeCaps, or planning deployment strategy. Triggers on "deploy", "publish", "upgrade package", "sui client publish", "mainnet release", "staged rollout", or any deployment/release task. Also use when the user asks about package versioning or upgrade compatibility.

Triggers from the description

deploypublishupgrade packagesui client publishmainnet releasestaged rollout
Original author description

Use when deploying or upgrading Move packages to devnet/testnet/mainnet, managing UpgradeCaps, or planning deployment strategy. Triggers on "deploy", "publish", "upgrade package", "sui client publish", "mainnet release", "staged rollout", or any deployment/release task. Also use when the user asks about package versioning or upgrade compatibility.

How it works

  1. Quick Start
  2. SUI Protocol Deployment Updates (now mainnet v1.80.1 / Protocol 137)
  3. Deployment Stages
  4. Upgrade Management
  5. Post-Deployment Checklist
  6. Common Mistakes
Original SKILL.md headings · 107 lines, 835 words
SKILL.md preview
---
name: sui-deployer
description: Use when deploying or upgrading Move packages to devnet/testnet/mainnet, managing UpgradeCaps, or planning deployment strategy. Triggers on "deploy", "publish", "upgrade package", "sui client publish", "mainnet release", "staged rollout", or any deployment/release task. Also use when the user asks about package versioning or upgrade compatibility.
---

# SUI Deployer

**Staged deployment orchestration for SUI Move packages.**

## Quick Start

```bash
# Build and publish to current network
sui client publish --gas-budget 100000000

# Dry-run first (recommended)
sui client publish --dry-run --gas-budget 100000000

# Publish and preserve all dependencies in bytecode dump
sui client publish --dump-bytecode-as-base64 --no-tree-shaking
```

## SUI Protocol Deployment Updates (now mainnet v1.80.1 / Protocol 137)

**RPC Migration (CRITICAL):**
- **JSON-RPC is shut off on public fullnodes** — permanent deactivation landed 2026-07-31. Quorum Driver fully disabled.
- **gRPC is the primary API** — transaction submission exclusively via Transaction Driver.
- `sui client` CLI already uses gRPC internally — no changes needed for CLI workflows.

**gRPC Endpoints:**
| Network | Endpoint |
|---------|----------|
| Mainnet | `grpc.mainnet.sui.io:443` |
| Testnet | `grpc.testnet.sui.io:443` |
| Devnet  | `grpc.devnet.sui.io:443` |

**Protocol 127 Notes (shipped testnet v1.74.0):**
- **Timestamp-based epoch close (P127 mainnet behavior):** Mainnet switches to timestamp-based epoch close at P127 — no operator action required. (Live on both networks since P127/P128; mainnet now v1.80.1 / P137. First shipped testnet v1.74.0.)
- **New Move VM (Testnet):** Active on testnet. Account for gas metering differences in cross-network testing.
- **Offline Bytecode Dump:** `sui move build --dump --no-tree-shaking` works offline — enables air-gapped deployment pipelines.
- **Compatibility verification** enabled by default (was opt-in).

**Protocol 135 Notes (mainnet v1.78.1, live since 2026-08-29):**
- **`sui::package::original_package_id(cap: &UpgradeCap): ID`** — new framework function (native-backed): returns the original (first-version) package ID that the cap authorizes upgrades for. Aborts `EUpgradeInProgress` while an `UpgradeTicket` is outstanding and `EInvalidPackageVersion` if `cap.version == 0` or the package at `cap.package` is not at `cap.version`. Lets tooling derive the original ID from the cap instead of trusting a hand-entered value — call it (dev-inspect / PTB) when recording or auditing upgrades. Nothing else in the CLI upgrade flow changed (no flags added/removed in v1.78.x; `sui keytool --keystore-path` regression fixed, #27662).

**Protocol 136 Notes (CLI v1.79.0+; mainnet is now v1.80.1 / P137):**
- **`sui move test --package-size <MB>` (new flag, PR 27826):** raises/lowers the package arena size used by the test VM. The arena limit is now a protocol config (`package_arena_size_in_bytes`, default 10MB — same as the old hardcoded value, so no behavior change at the default). A package that exceeds it fails with `PACKAGE_ARENA_LIMIT_REACHED`; bump `--package-size` only for tests, not as a substitute for splitting an oversized package.
- Available from CLI v1.79.0 onward. Do not assume it exists on a `sui` binary pinned to 1.78.x.

**CLI Breaking Changes (v1.77.2 / P133, verified against installed `sui` 1.77.2 `--help`; no further CLI flag changes through v1.78.1):**
- **`sui client send-funds`:** the `--stateless` flag is **removed**. Use `--from-address-balance` instead — funds a transfer from the sender's address balance; without it, coin objects are used first and the address balance is only tapped if coin objects don't cover the amount. Recipients always receive into their address balance.
- **`sui client verify-source`:** reworked. It now takes an optional `[package_path]` positional (defaults to `.`) instead of a package-id argument, and reads on-chain metadata to rebuild with the toolchain used at publish time. `--verify-deps`, `--skip-source`, and `--address-override` are **removed**. New: downloaded toolchains are cached (default 5, tune with `SUI_BINARY_CACHE_LIMIT`), `--toolchain <path>` to verify against a local binary, `--json` for metadata output.

## Deployment Stages

### Stage 1: Devnet
```bash
sui client switch --env devnet
sui client publish --gas-budget 100000000
```
Quick iteration, no verification needed.

### Stage 2: Testnet
```bash
sui client switch --env testnet
sui move test              # run all tests first
sui client publish --gas-budget 200000000
```
Public testing, 48+ hours soak time before mainnet.

### Stage 3: Mainnet
```bash
sui client switch --env mainnet
sui client publish --gas-budget 500000000
```
Requires: security audit, multisig UpgradeCap transfer, rollback plan.

## Upgrade Management

```bash
# Step 1: Build upgrade bytecode
sui move build --dump-bytecode-as-base64

# Step 2: Execute upgrade with existing UpgradeCap
sui client upgrade --gas-budget 200000000 --upgrade-capability <UPGRADE_CAP_ID>
```

**UpgradeCap best practices:**
- Transfer to multisig address immediately after first publish
- Store the cap object ID in your deployment records
- Use `sui client object <CAP_ID>` to verify cap ownership
- Since P135, `sui::package::original_package_id(&cap)` returns the first-version package ID — use it to cross-check your records against the cap

## Post-Deployment Checklist

1. Save published **package ID** and **UpgradeCap ID**
2. Transfer UpgradeCap to multisig/admin address
3. Update frontend `.env` with new package ID
4. Run smoke tests against deployed package
5. Verify on-chain bytecode via explorer (Suivision / Suiscan)

## Common Mistakes

❌ **Forgetting to transfer UpgradeCap** — stuck in deployer address, cannot upgrade with multisig later. Transfer immediately after publish.

❌ **Not saving deployment artifacts** — lost package IDs mean you can't verify on-chain code or reference it. Save package ID + upgrade cap ID + tx digest.

❌ **Not updating frontend package IDs** — frontend calls old package, all transactions fail. Automate package ID updates in `.env` post-deployment.

See [reference.md](references/reference.md) for upgrade compatibility rules and [examples.md](references/examples.md) for deployment scripts. If the CLI is missing or you hit `client/server api version mismatch`, see the **sui-install** skill.
Files in this package (5)
  • SKILL.md 6 KB
  • references/examples.md 1 KB
  • references/reference.md 1 KB
  • scripts/deploy-devnet.sh 1 KB
  • scripts/deploy-testnet.sh 1 KB

Versions

The database has no other skills named sui-deployer.

Database snapshot: 13.11.2026 · package version 30eb720387aa (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100deploy-to-mainnet
    Deploy a Sui Move package to mainnet after testnet has been exercised. Use when the user wants to ship to mainnet, go to prod, or publish to Sui mainnet.
  • 100deploy-to-testnet
    Deploy a Sui Move package to testnet and capture package id and UpgradeCap. Use when the user wants to deploy to testnet or publish to Sui testnet.
  • 90sui-networks-gas
    Sui network environments and gas economics. Use when the user asks about Mainnet, Testnet, Devnet, or Localnet differences, gas cost calculations (computation + storage - rebate), gas budgets, epochs, or how the Sui network operates at a high level. This skill covers network…
  • 100sui-publish
    Publishing, upgrading, and deploying Sui Move packages. Use this skill when the user needs to publish a package, upgrade a published package, deploy to multiple networks, serialize transactions for multisig signing, run a local Sui network (localnet), prepare for Mainnet launch,…
  • 100solana-network
    Display current Solana network and switch between devnet, testnet, localnet, and mainnet-beta. Use this skill when the user runs /solana-network, asks to "switch network", "use mainnet", "connect to devnet", or mentions changing the Solana network they're connected to.
  • 100deployment
    Deploy Clarity contracts to testnet or mainnet: Clarinet deployment plans, scripted releases, initialization calls, nonces and post-deploy checks. Use to deploy, publish or initialize contracts.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.