Commands
The Beo private key, view key, and address will be printed to console. See concepts/accounts for more information.
snarkvm new
snarkvm newTo 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 filesnarkvm build
snarkvm buildinfo
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 buildTo compile your program in offline mode run:
snarkvm build --offlinesnarkvm run
snarkvm runTo run your Beo program function run:
snarkvm run {$FUNCTION} {$INPUTS}
// Example
snarkvm run hello 2u32 3u32To run your Beo program function in offline mode run:
snarkvm run {$FUNCTION} {$INPUTS} --offlineTo run your Beo program function to a specified endpoint run:
snarkvm run {$FUNCTION} {$INPUTS} --endpoint {$ENDPOINT}snarkvm execute
snarkvm executeTo execute your Beo program function run:
snarkvm execute {$FUNCTION} {$INPUTS}
// Example
snarkvm run hello 2u32 3u32To execute your Beoprogram function in offline mode run:
snarkvm execute {$FUNCTION} {$INPUTS} --offlineTo execute your Beo program function to a specified endpoint run:
snarkvm execute {$FUNCTION} {$INPUTS} --endpoint {$ENDPOINT}snarkvm clean
snarkvm cleanTo clean the Beo package build directory run:
snarkvm cleansnarkvm update
snarkvm updateTo update snarkVM to the latest version run:
snarkvm updateTo list the available versions of Beo run:
snarkvm update --listTo update snarkVM and suppress outputs to terminal run:
snarkvm update --quietLast updated