Aptos Move Commands

  1. Compile Move Code:

    aptos move compile

    This command compiles your Move code into bytecode that can be deployed to the Aptos blockchain. It checks for syntax errors and ensures that your Move modules are ready for deployment.

  2. Test Move Code:

    aptos move test

    This command runs tests defined in your Move code. It executes the test functions to verify that your smart contracts work as expected, helping to catch bugs and ensure reliability before deploying.

  3. Publish Move Code:

    aptos move publish

    This command deploys the compiled Move modules to the Aptos blockchain. Once published, the Move modules become part of the blockchain state and can be interacted with by other smart contracts and transactions.

Learn More About Move Language

This guide is ideal for developers new to Move and those looking to deepen their technical skills in building decentralized applications on the Aptos blockchain.

Last updated