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.
Or Import an 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 testnetAdditional Commands
Modify the profile: supra profile modify
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. The above commands to create a new profile or import an existing profile will set the initial values to that of the testnet. If you wish to use the profile on mainnet, you must modify the profile with the mainnet values.
To modify a profile, use the following command with the desired network:
supra profile modify accountA --network <localnet/testnet/mainnet/custom>Change the active profile: supra profile activate
CLI commands will be executed from the active profile.
To activate another profile, use the following command:
supra profile activate accountAView stored profile public keys: supra profile -l
The active 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 -lView stored profile private keys: supra profile -l -r
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 -rLast updated
