Docs
Submit an issue
Appchains on Polkadot
Appchains on Polkadot
  • WELCOME
    • Polkadot Appchains
    • Installing Pop CLI
    • How to contribute
  • GUIDES
    • Set up your development environment
    • Create a new parachain
      • Create an Assets parachain
      • Create a Contracts parachain
      • Create an EVM parachain
    • Benchmarking
    • Build your parachain
      • Build your runtime deterministically
    • Call a chain
    • Launch a Chain
      • Launch a Chain in Development
      • Launch a Chain to Paseo
        • Launch Paseo
        • Set up keys
        • Acquire Coretime
      • Deploy a chain with Polkadot Deployment Portal
      • Running a post-startup command
    • Securely Sign Transactions from CLI
    • Test runtime upgrades
  • POP CLI
    • welcome
    • install
    • new
    • bench
    • build
    • build spec
    • call
    • up
    • clean
    • test
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. POP CLI

build

Build your parachain

pop build <COMMAND>

For Pop CLI versions <0.3.0 the pop build command is pop build parachain

To build your parachain using Pop CLI:

# Build your parachain
pop build -p ./my-appchain

or

cd my-appchain
pop build

To build your parachain for production:

cd my-appchain
pop build --release

To build your chain for benchmarking, run the below command which will build your binary with the runtime-benchmarks feature enabled:

cd my-appchain
pop build --benchmark

To build your chain for runtime testing, run the below command which will build your binary with the try-runtime feature enabled:

cd my-appchain
pop build --try-runtime

On the other hand, you can also provide a list of features with the --features flag:

cd my-appchain
pop build --features runtime-benchmarks,try-runtime

Build and generate files for onboarding the parachain to the Relay chain (Pop CLI versions >.0.2.0):

pop build -p ../my-appchain --para_id 2000

This command will build your parachain and generate the chain spec, WebAssembly runtime for the parachain, and generate the parachain genesis state needed for registering and onboarding a parachain onto the Relay chain.

build spec

pop build spec [OPTIONS]

To build the chain specification for your appchain along with its genesis artifacts, you can run the following command:

cd my-appchain
pop build spec --id 3000

For additional parameters and customizations run:

pop build spec --help
PreviousbenchNextcall

Last updated 1 month ago

Was this helpful?