Supra
Supra 官方钱包

SupraCLI Deep Dive: From Profiles to Deployments

November 18, 2025 - 2 min read

Getting Started

If you’ve ever tried to set up a blockchain environment and felt lost before even typing a command, you’re not alone.

That’s exactly why SupraCLI exists to make building on Supra simple and clear.

In this story, we’ll walk through everything from setting up profiles, funding your account, and deploying your first smart contract.

Profiles: Keep Things Organized

Without profiles, switching between accounts means a lot of copy-pasting and mistakes. Profiles keep things organized so you can move faster and avoid confusion.

# Create a new profile
supra profile new <PROFILE_NAME>

# List all profiles
supra profile -l

# Activate one
supra profile activate <PROFILE_NAME>

# Remove one
supra profile remove <PROFILE_NAME>

Each profile saves your wallet and setup so you can switch between them anytime without re-entering anything.

Accounts: Add Funds and Check Balance

A profile is only useful if it has funds. On Supra, your profile connects to your wallet so you can fund and check your balance in seconds.

# Add testnet tokens
supra move account fund-with-faucet --profile <PROFILE_NAME> --rpc-url https://rpc-testnet.supra.com

# Check balance
supra move account balance --profile <PROFILE_NAME> --rpc-url https://rpc-testnet.supra.com

It works like a digital ATM. Tokens are added directly to your wallet so you can deploy and run transactions right away.

Tools: Build and Deploy Smart Contracts

Once your account is ready, you can start building.

SupraCLI gives you everything you need to create, test, deploy, and interact with your contracts in one place.

# Create a new package
supra move tool init --package-dir /supra/move_workspace/exampleContract --name exampleContract

# Compile your contract
supra move tool compile --package-dir /supra/move_workspace/exampleContract

# Test before deploying
supra move tool test --package-dir /supra/move_workspace/exampleContract

# Deploy it on-chain
supra move tool publish --package-dir /supra/move_workspace/exampleContract --rpc-url https://rpc-testnet.supra.com

# Run or view a function
supra move tool run --function-id '<ADDRESS>::<MODULE_NAME>::<FUNCTION_NAME>' --args <ADD_ARGS> --rpc-url https://rpc-testnet.supra.com

supra move tool view --function-id '<ADDRESS>::<MODULE_NAME>::<FUNCTION_NAME>' --args <ADD_ARGS> --rpc-url https://rpc-testnet.supra.com

Everything happens in one place with simple commands that take you from idea to live contract.

Wrapping It Up

With profiles, accounts, and tools, SupraCLI gives you a full workflow to build on-chain from start to finish.

You can set up, fund, deploy, and test everything without leaving your terminal.

Try It Yourself

SupraCLI Docs

twitterlinkedinfacebookmail

RECENT POSTS

获取新闻、见解等信息

注册Supra新闻通讯,获取最新消息、更新、行业洞察等内容。

隱私使用条款网站数据使用与Cookies漏洞披露生物特征信息隐私政策

©2026 Supra | Entropy基金会(瑞士注册号:CHE.383.364.961)。保留所有权利。