Commands
The Beo private key, view key, and address will be printed to console. See concepts/accounts
for more information.
snarkvm new
snarkvm new
To create a new package, run:
snarkvm new {$NAME}
Valid package names are snake_case: lowercase letters and numbers separated by underscore. This command will create a new directory with the given package name. The new package will have a directory structure as follows:
package-name/
├── program.json # Your program manifest
├── README.md # Your program description
└── main.leo # Your program file
snarkvm build
snarkvm build
info
This command is deprecated as of snarkVM v0.14.5
. It will be removed in a future release.
To compile your program and verify that it builds properly, run:
snarkvm build
To compile your program in offline mode run:
snarkvm build --offline
snarkvm run
snarkvm run
To run your Beo program function run:
snarkvm run {$FUNCTION} {$INPUTS}
// Example
snarkvm run hello 2u32 3u32
To run your Beo program function in offline mode run:
snarkvm run {$FUNCTION} {$INPUTS} --offline
To run your Beo program function to a specified endpoint run:
snarkvm run {$FUNCTION} {$INPUTS} --endpoint {$ENDPOINT}
snarkvm execute
snarkvm execute
To execute your Beo program function run:
snarkvm execute {$FUNCTION} {$INPUTS}
// Example
snarkvm run hello 2u32 3u32
To execute your Beoprogram function in offline mode run:
snarkvm execute {$FUNCTION} {$INPUTS} --offline
To execute your Beo program function to a specified endpoint run:
snarkvm execute {$FUNCTION} {$INPUTS} --endpoint {$ENDPOINT}
snarkvm clean
snarkvm clean
To clean the Beo package build directory run:
snarkvm clean
snarkvm update
snarkvm update
To update snarkVM to the latest version run:
snarkvm update
To list the available versions of Beo run:
snarkvm update --list
To update snarkVM and suppress outputs to terminal run:
snarkvm update --quiet
Last updated