AEproject
  • AEproject
  • doc
    • developer-documentation
      • AEproject CLI
        • aeproject export-config
        • Installing and Help
        • aeproject inspect
        • aeproject deploy
        • aeproject compile
        • aeproject test
        • aeproject compatibility
        • aeproject node
        • aeproject env
        • aeproject compiler
        • aeproject init
      • License
      • Migratе from 2.x.x to 3.x.x (after Iris hardfork)
      • Quick Start
  • .github
    • ISSUE_TEMPLATE
      • feature_request
      • bug_report
Powered by GitBook
On this page

Was this helpful?

  1. doc
  2. developer-documentation
  3. AEproject CLI

aeproject deploy

Previousaeproject inspectNextaeproject compile

Last updated 3 years ago

Was this helpful?

Run deploy script

The deploy command helps developers to run their deployment scripts and thus deploy their Sophia Contracts. The sample deploy script is scaffolded in the deployment folder.

You can specify network using the -n or --network option. There are 3 options for networks predefined and available:

  • local -> (default if not specified)

  • testnet ->

  • mainnet ->

Example:

aeproject deploy -n testnet -s <secretKey>
  • the -s or --secretKey is required and used for adding a secretKey that will be used to deploy and call contracts

  • if required you can add additional networks in the config/network.json

With the additional -c or --compiler parameter you can specify the compiler to be used. Example:

aeproject deploy -c http://somewhere.compiler.com -s <secretKey>

With the additional --path parameter you can specify the path to the deployment scripts.

http://localhost:3001
https://testnet.aeternity.io
https://mainnet.aeternity.io