Space Operator
  • Welcome
  • Visual Builder
    • Flows
      • API Key & POST Request
      • WebSocket
        • Signature Requests
      • Nested Flows
      • Learn Solana
      • Add flows to your websites
      • Iterate with Localhost
    • Nodes
      • Web Assembly Nodes
        • space-cli
        • space-lib
        • Examples in Rust
          • Rectangle
          • Filter
          • Regex
        • Uploading WASM binary via UI
      • Native Nodes
        • Code Template
        • Node Definition
        • ValueSet
        • Submitting Native Nodes
        • Tracing
      • Mock Nodes
      • JS Node
      • API Input Node
  • Self-hosting
    • Docker Compose
    • Serving HTTPS
    • Lightsail Instance
    • Export data to your instance
  • FAQ
    • Servers
  • References
    • Flows
    • Flow Deployment
Powered by GitBook
On this page

Was this helpful?

  1. Visual Builder
  2. Nodes
  3. Web Assembly Nodes

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 Double@0.1!
PreviousWeb Assembly NodesNextspace-lib

Last updated 2 years ago

Was this helpful?