Marine CLI
The Marine CLI provides a convenience wrapper over several of the Marine tools and utilities.
Installationโ
Install marine with:
sh
sh
List of commandsโ
The CLI functionality is available with:
sh
sh
aqua: show types in an Aqua-compatible wayโ
Shows all data types defined in a Marine module in the Aqua-compatible way:
sh
sh
sh
sh
build: compile Marine moduleโ
Compiles Rust project to a Marine Wasm module. Under the hood, it calls cargo build providing all given arguments, then compiles and embeds interface-types to compiled Wasm binary.
sh
sh
generate: generate Marine project templatesโ
Uses the power cargo-generate to generate a new project from this template. Note that cargo-generate should be installed (by cargo install cargo-generate) to use this subcommand.
sh
sh
info: prints embedded into Wasm file infoโ
The marine_manifest macro embeds some info into compiled Wasm module that could be obtained with this command:
sh
sh
it: shows interface-types of the Wasm binaryโ
Interface-types are embedded into a custom section of a Wasm binary while building with marine build
sh
sh
repl: run mreplโ
Runs the Marine REPL:
sh
sh
set: set IT or SDK versionโ
sh
sh
For example:
sh
sh
Lets check it worked:
sh
sh