Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
MoveVM
  • Network
  • Oracles
  • Automation
  • SupraNova
  • Guides
MoveVM
  • Overview
  • Getting Started
    • Install Supra CLI with Docker
    • Create a Supra Account
    • Create a Move Package
      • Initialize a Package
      • Write a Module
      • Compile and Publish
      • Interact with a Package
    • Create a dApp with StarKey
  • Network Information
  • Token Standards
  • Learn Move 101
    • Getting Started with Move
    • Unsigned Integers in Move
    • Math Operations in Move
    • Using Vectors in Move
    • Reading Resource Data with borrow_global
    • Passing Data in Move: Value vs. Reference
    • Adding Elements with vector::push_back
    • Emitting Events with event::emit
  • Move Book
    • Getting Started
      • Modules and Scripts
      • Move Tutorial
    • Primitive Types
      • Integers
      • Bool
      • Address
      • Vector
      • Signer
      • References
      • Tuples and Unit
    • Basic Concepts
      • Local Variables and Scope
      • Equality
      • Abort and Assert
      • Conditionals
      • While, For, and Loop
      • Functions
      • Structs and Resources
      • Constants
      • Generics
      • Type Abilities
      • Uses and Aliases
      • Friends
      • Packages
      • Package Upgrades
      • Unit Tests
    • Global Storage
      • Structure
      • Operators
    • Reference
      • Standard Library
      • Coding Conventions
  • TypeScript SDK
    • Guides
      • Create Supra Accounts
      • Publish a Package
    • Documentation
    • Repository
  • Rest API
    • Mainnet
      • Accounts
      • Faucet
      • Transactions
      • Block
      • View
      • Consensus
      • Events
      • Tables
    • Testnet
      • Accounts
      • Faucet
      • Transactions
      • Block
      • View
      • Events
      • Tables
  • Developer Resources
    • Supra Dapp Templates
    • Supra Move VS Code Extension
  • Links
    • Supra DevHub
    • SupraScan Block Explorer
    • StarKey Wallet
    • Live Data Feeds
    • Whitepapers
    • Security Audits
    • Supra's Official GitHub
Powered by GitBook
On this page
Edit on GitHub
  1. Getting Started

Create a Supra Account

Generate a key profile and view the public/private keys for use by the Supra CLI.

On May 2nd, 2025 a new version of the CLI was released. The new image (v9.0.12) introduced an improved profile feature which deprecated the key command of the previous version (v6.3.0) along with an update to the key file structure. If you have just upgraded, you must execute the following command to migrate your key files to the new version: supra profile migrate After migration, you must modify the profiles as shown in step 3.

1

Generate a new key/profile

Execute the following command to generate a new profile/set of keys.

execute me!
supra profile new accountA --network testnet
2

Import existing key/profile

If you already have a private key on hand that you wish to use, you can opt to import it rather than generating a new one. To import an existing private key, use the following command:

Profile names must be unique. If you attempt to generate or import a profile using a name that has already been taken, the CLI will throw an error.

supra profile new accountA <PRIVATE_KEY> --network testnet
3

Modify the profile

The new version of profiles contain the rpc_url, faucet_url, and chain_id associated with the profile. CLI commands will use the stored values of the calling profile for the respective command parameters unless manually overwritten. To modify a profile, use the following command:

supra profile modify accountA --network <localnet/testnet/mainnet/custom>
4

Change the active profile

CLI commands will be executed from the active profile.

To activate another profile, use the following command:

supra profile activate accountA
5

View local public keys

The currently activated profile will be displayed with a (*) by the profile name.

If you wish to view existing keys within your current directory, use the following command:

supra profile -l
6

View local private keys

This will print the private keys of all profiles to your terminal. Make sure you are not live streaming, recording, screensharing, etc. before executing this command to prevent compromising your keys.

If you wish to view the private key of your profile(s), use the following command:

supra profile -l -r
PreviousInstall Supra CLI with DockerNextCreate a Move Package

Last updated 10 days ago