space-cli
Documentation for how to use space-cli
space-cli is a command line tool for easily creating and uploading WASM projects to Space Operator. To install it, run following command:
$ cargo install --git https://github.com/space-operator/space-cli
To create a new project, run space new <project>
:
$ space new double
Created new project `double`
Modify src/lib.rs
. Before uploading the project, we need to login with space init
:
$ space init
Authorization token:
Then we can upload the project with space upload
. This will ask us a bunch of things, such as types for inputs and outputs and public or private:
$ space upload
Compiling double v0.1.0 (/tmp/tmp.Yss5HR1r6c/double)
Finished release [optimized] target(s) in 0.30s
Name: Double
Version: 0.1
Description: Takes u64 and doubles it
Input: input -> u64
Output: output -> u64
Public: true
Finished uploading [email protected]!
Last updated
Was this helpful?