gear-foundation / cargo-program

Utility to simplify Gear programs development
GNU General Public License v3.0
1 stars 0 forks source link

cargo-program

CI Status License crates.io

Utility to simplify Gear programs development.

⚠️ The project is currently under active development. Some features may be unstable.

Install

cargo install --git https://github.com/gear-tech/cargo-program.git
cargo install cargo-program

Usage

Create a new Gear program

cargo program new my-program

Create a new async Gear program

cargo program new my-async-program --async

Build the Gear program

cargo program build

🚧 (in progress) Run the Gear program on-chain using the local node

cargo program run

... or specifying the running script:

cargo program run --script run.rhai

... or specifying the node's URL:

cargo program run --node "ws://127.0.0.1:9944"

🚧 (in progress) Run tests

cargo program test

🚧 (in progress) Login to the Gear backend

cargo program login
# or
cargo program login --host https://my-gear-backend.tld:8123

🚧 (in progress) Publish the Gear program to the chain

cargo program publish

License

cargo-program is licensed under GPL v3.0 with a classpath linking exception.