Skip to main content

gno

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
testTests a gno package.
transpileTranspiles a .gno file to a .go file.
replStarts a GnoVM REPL.

test

Options

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

transpile

Options

NameTypeDescription
vBooleanDisplays verbose output.
skip-fmtBooleanSkips the syntax checking of generated .go files.
gobuildBooleanRun go build on generated .go files, ignoring test files.
go-binaryStringThe go binary to use for building (default: go).
gofmtStringThe gofmt binary to use for syntax checking (default: gofmt).
outputStringThe output directory (default: .).

repl

Options

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