Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
MoveVM
  • Network
  • Oracles
  • Automation
  • SupraNova
  • Guides
MoveVM
  • Overview
  • Getting Started
    • Install Supra CLI with Docker
    • Create a Supra Account
    • Create a Move Package
      • Initialize a Package
      • Write a Module
      • Compile and Publish
      • Interact with a Package
    • Create a dApp with StarKey
  • Network Information
  • Token Standards
  • Learn Move 101
    • Getting Started with Move
    • Unsigned Integers in Move
    • Math Operations in Move
    • Using Vectors in Move
    • Reading Resource Data with borrow_global
    • Passing Data in Move: Value vs. Reference
    • Adding Elements with vector::push_back
    • Emitting Events with event::emit
  • Move Book
    • Getting Started
      • Modules and Scripts
      • Move Tutorial
    • Primitive Types
      • Integers
      • Bool
      • Address
      • Vector
      • Signer
      • References
      • Tuples and Unit
    • Basic Concepts
      • Local Variables and Scope
      • Equality
      • Abort and Assert
      • Conditionals
      • While, For, and Loop
      • Functions
      • Structs and Resources
      • Constants
      • Generics
      • Type Abilities
      • Uses and Aliases
      • Friends
      • Packages
      • Package Upgrades
      • Unit Tests
    • Global Storage
      • Structure
      • Operators
    • Reference
      • Standard Library
      • Coding Conventions
  • TypeScript SDK
    • Guides
      • Create Supra Accounts
      • Publish a Package
    • Documentation
    • Repository
  • Rest API
    • Mainnet
      • Accounts
      • Faucet
      • Transactions
      • Block
      • View
      • Consensus
      • Events
      • Tables
    • Testnet
      • Accounts
      • Faucet
      • Transactions
      • Block
      • View
      • Events
      • Tables
  • Developer Resources
    • Supra Dapp Templates
    • Supra Move VS Code Extension
  • Links
    • Supra DevHub
    • SupraScan Block Explorer
    • StarKey Wallet
    • Live Data Feeds
    • Whitepapers
    • Security Audits
    • Supra's Official GitHub
Powered by GitBook
On this page
Edit on GitHub
  1. Getting Started

Create a Move Package

Create and deploy your first move module.

PreviousCreate a Supra AccountNextInitialize a Package

Last updated 18 days ago

If you are not currently within the shell of your container, please execute the following command and enter the shell: docker exec -it supra_cli /bin/bash

If no such container exists, you must before proceeding. If your container is not running, you can start your container with the command: docker start supra_cli

Reminder, you can view all existing containers on your machine with: docker ps --all

Setup your workspace

1

Create your move_workspace directory

The first step to deploying your first Move contract is to setup a directory that will house all of your package files/code.

If you recall from the CLI installation guide, the configs directory is bind mounted to the supra_configs directory on your host machine.

These directories are shared/linked as if they are one, so files will coexist between both the host and the container. We recommend creating a dedicated move_workspace directory to house all of your move packages/projects within this linked directory. This will dramatically improve your development cycle as edits made on your host machine will be observed within the container.

Within the shell of your container, cd into the configs directory and execute mkdir move_workspace.

2

Observe the bind mount in action

To visualize the bind mounted directories, open the file explorer on your host machine and navigate to the supra_configs directory. You should observe the presence of the move_workspace directory following the execution of the mkdir command.

If this is not the case, your bind mount is not setup properly. Repeat the and try again. If the issue persists, our team will be more than happy to help debug your issue within our .

complete the installation guide
install guide
Discord server