gno

May 3, 2023 ยท View on GitHub

gno is a handy tool for developing and prototyping Gno packages and realms. You may use gno to use the GnoVM without an actual blockchain to build or test realms in a local environment.

Run gno Commands

The following command will run gno.

gno {SUB_COMMAND}

Subcommands

NameDescription
buildBuilds a gno package.
testTests a gno package.
precompilePrecompiles a .gno file to a .go file.
replStarts a GnoVM REPL.

build

Options

NameTypeDescription
verboseBooleanDisplays extended information.
go-binaryStringGo binary to use for building (default: go).

test

Options

NameTypeDescription
verboseBooleanDisplays extended information.
root-dirStringClones location of github.com/gnolang/gno (gno tries to guess it).
runStringTest name filtering pattern.
timeouttime.DurationThe maximum execution time in ns.
precompileBooleanPrecompiles a .gno file to a .go file before testing.

precompile

Options

NameTypeDescription
verboseBooleanDisplays extended information.
skip-fmtBooleanSkips the syntax checking of generated .go files.
go-binaryStringThe go binary to use for building (default: go).
go-binaryStringThe gofmt binary to use for syntax checking (default: gofmt).
outputStringThe output directory (default: .).

repl

Options

NameTypeDescription
verboseBooleanDisplays extended information.
root-dirStringClones location of github.com/gnolang/gno (gno tries to guess it).