Docs
Submit an issue
Smart Contracts
Smart Contracts
  • WELCOME
    • Smart Contracts
    • Installing Pop CLI
    • How to contribute
  • GUIDES
    • Get tokens on Pop (Testnet)
    • Set up your development environment
    • Create a new contract
    • Build your contract
    • Run your unit tests
    • Deploy your contract locally
      • Deploy locally on a Solochain
      • Deploy locally on Pop
    • Call your contract
    • Running E2E tests
    • Deploy on Pop
    • Securely Sign Transactions from CLI
    • Getting Started with ink! v6
  • TUTORIALS
    • Your first ink! smart contract
    • Mint a PSP22 token on Pop
  • POP CLI
    • welcome
    • install
    • new
    • build
    • call
    • up
    • test
    • clean
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. POP CLI

build

Build a contract

pop build [OPTIONS]

Build an existing smart contract:

pop build -p ./my_contract

By default, the contract is compiled with debug functionality included.

This enables the contract to output debug messages but increases the contract size and the amount of gas used.

For production builds, use the --release flag: --release:

pop build -p ./my_contract --release

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

PreviousnewNextcall

Last updated 9 months ago

Was this helpful?