subsembly
  • Introduction
  • Getting Started
    • Overview
    • Substrate Essentials
    • CLI
      • subsembly init
      • subsembly compile
      • subsembly spec
  • Development
    • Runtime Development
    • Chain Specification
    • Runtime Execution
  • Modules
    • Core
      • System
      • Executive
      • Crypto
      • Log
    • Pre-built
      • Aura
      • Balances
      • Timestamp
      • TransactionPayment
  • Advanced
    • as-scale-codec
    • subsembly-core
    • Metadata
      • Dispatcher
  • Guides
    • Create Your First Subsembly Runtime
      • Set Up
      • Start the Node
      • PolkadotJS
    • Start Your Network
      • Prepare the Network
      • Launch Validator Nodes
      • Launch the Third Node
    • Create a New Module
      • Nicks Module
      • Launch the Node
      • PolkadotJs
Powered by GitBook
On this page
  • Overview
  • Syntax
  • Examples

Was this helpful?

  1. Getting Started
  2. CLI

subsembly init

Initialising new Subsembly project

Overview

In order for you to start working on a Subsembly based Runtime, you need to initialise new project that will provide all of the necessary boilerplate code with high-level abstractions so that you can focus on the business requirements of your Runtime.

This command initialises new Subsemly project to the specified path.

Syntax

subsembly init [to]

Initialisation directory should be empty.

Parameters

  • --to - optional parameter, determines initialisation directory for the new Subsembly project. Defaults to current directory.

Examples

# With specified path
$ subsembly init --to=./new-sub

# Without specified path (initializes into the current directory)
$ subsembly init

The result of the above command:

$ ls
LICENSE     assembly     package.json
Makefile    yarn.lock
PreviousCLINextsubsembly compile

Last updated 4 years ago

Was this helpful?