|
| 1 | +--- |
| 2 | +title: Quickstart Parachain Development with Pop CLI |
| 3 | +description: Quickly bootstrap parachain projects, scaffold templates, deploy local networks, and streamline development workflows using Pop CLI. |
| 4 | +--- |
| 5 | + |
| 6 | +# Quickstart Parachain Development With Pop CLI |
| 7 | + |
| 8 | +## Introduction |
| 9 | + |
| 10 | +[Pop CLI](https://onpop.io/cli/){target=\_blank} is a powerful command-line tool designed explicitly for rapid parachain development within the Polkadot ecosystem. It addresses essential developer needs by providing streamlined commands to set up development environments, scaffold parachain templates, and manage local blockchain networks. |
| 11 | + |
| 12 | +Pop CLI simplifies parachain development with features like: |
| 13 | + |
| 14 | +- Quick initialization of parachain development environments |
| 15 | + |
| 16 | +- Project scaffolding from predefined parachain templates |
| 17 | + |
| 18 | +- Easy deployment and management of local development networks |
| 19 | + |
| 20 | +Developers can quickly begin coding and testing, significantly reducing setup overhead. |
| 21 | + |
| 22 | +### Install Pop CLI |
| 23 | + |
| 24 | +To install Pop CLI, run the following command: |
| 25 | + |
| 26 | +```bash |
| 27 | +cargo install --force --locked pop-cli |
| 28 | +``` |
| 29 | + |
| 30 | +Confirm that Pop CLI is installed by running `pop --help` in your terminal: |
| 31 | + |
| 32 | +```bash |
| 33 | +pop --help |
| 34 | +``` |
| 35 | + |
| 36 | +### Set Up Your Development Environment |
| 37 | + |
| 38 | +To develop and build Polkadot SDK-based chains, preparing your local environment with the necessary tools and dependencies is essential. The [Install Polkadot SDK Dependencies](/develop/parachains/install-polkadot-sdk/){target=\_blank} guide walks you through this setup step-by-step. |
| 39 | + |
| 40 | +However, you can automate this entire process by running: |
| 41 | + |
| 42 | +```bash |
| 43 | +pop install |
| 44 | +``` |
| 45 | + |
| 46 | +This command provides an interactive experience that checks and installs all necessary dependencies for you. It’s the fastest and easiest way to prepare your development environment for building parachains with Pop CLI. |
| 47 | + |
| 48 | +--8<-- 'code/develop/toolkit/parachains/quickstart/pop-cli/install.html' |
| 49 | + |
| 50 | +### Initialize a Project |
| 51 | + |
| 52 | +Start a new project quickly using Pop CLI's `pop new parachain` command: |
| 53 | + |
| 54 | +--8<-- 'code/develop/toolkit/parachains/quickstart/pop-cli/new-parachain.html' |
| 55 | + |
| 56 | +The command above scaffolds a new parachain project using the default template included with Pop CLI. For more specialized implementations, additional templates are available; you can explore them by running `pop new parachain --help`. |
| 57 | + |
| 58 | +Once the project is generated, move into the new directory and build your parachain: |
| 59 | + |
| 60 | +``` |
| 61 | +cd my-parachain |
| 62 | +pop build --release |
| 63 | +``` |
| 64 | + |
| 65 | +!!! note |
| 66 | + Under the hood, `pop build --release` runs `cargo build --release`, but `pop build` adds functionality specific to Polkadot SDK projects, such as [deterministic runtime builds](/develop/parachains/deployment/build-deterministic-runtime/){target=\_blank} and automatic management of feature flags like `benchmark` or `try-runtime`. |
| 67 | + |
| 68 | +Pop CLI integrates the [Zombienet SDK](https://github.com/paritytech/zombienet-sdk){target=\_blank} allowing you to easily launch ephemeral local networks for development and testing. To start a network, simply run the following: |
| 69 | + |
| 70 | +```bash |
| 71 | +pop up network -f ./network.toml |
| 72 | +``` |
| 73 | + |
| 74 | +This command will automatically fetch the necessary binaries and spin up a Polkadot network with your configured parachains. |
| 75 | + |
| 76 | +You can also interact with your local network using Pop CLI's `pop call chain` command: |
| 77 | + |
| 78 | +--8<-- 'code/develop/toolkit/parachains/quickstart/pop-cli/call-chain.html' |
| 79 | + |
| 80 | +## Where to Go Next |
| 81 | + |
| 82 | +For a comprehensive guide to all Pop CLI features and advanced usage, see the official [Pop CLI](https://learn.onpop.io/appchains) documentation. |
| 83 | +!!! tip |
| 84 | + Pop CLI also offers powerful solutions for smart contract developers. If you're interested in that path, check out the [Pop CLI Smart Contracts](https://learn.onpop.io/contracts) documentation. |
0 commit comments