Skip to content

move

tool to build move applications, the same like sui move command

shell
sui@deepmove>move
Tool to build and test Move applications

Usage: sui.exe move [OPTIONS] <COMMAND>

Commands:
  build
  coverage        Inspect test coverage for this package. A previous test run with the
                      `--coverage` flag must have previously been run
  disassemble
  manage-package  Record addresses (Object IDs) for where this package is published on chain
                      (this command sets variables in Move.lock)
  migrate         Migrate to Move 2024 for the package at `path`. If no path is provided
                      defaults to current directory
  new             Create a new Move package with name `name` at `path`. If `path` is not
                      provided the package will be created in the directory `name`
  test            Run Move unit tests in this package
  help            Print this message or the help of the given subcommand(s)

Options:
  -p, --path <PACKAGE_PATH>
          Path to a package which the command should be run with respect to
      --client.config <CONFIG>
          Sets the file storing the state of our user accounts (an empty one will be created if
          missing) Only used when the `--dump-bytecode-as-base64` is set
  -d, --dev
          Compile in 'dev' mode. The 'dev-addresses' and 'dev-dependencies' fields will be used if
          this flag is set. This flag is useful for development of packages that expose named
          addresses that are not set to a specific value
      --test
          Compile in 'test' mode. The 'dev-addresses' and 'dev-dependencies' fields will be used
          along with any code in the 'tests' directory
      --doc
          Generate documentation for packages
      --disassemble
          Save disassembly for generated bytecode along with bytecode maps (source maps for
          disassembeld bytecode)
      --install-dir <INSTALL_DIR>
          Installation directory for compiled artifacts. Defaults to current directory
      --force
          Force recompilation of all packages
      --fetch-deps-only
          Only fetch dependency repos to MOVE_HOME
      --skip-fetch-latest-git-deps
          Skip fetching latest git dependencies
      --default-move-flavor <DEFAULT_FLAVOR>
          Default flavor for move compilation, if not specified in the package's config
      --default-move-edition <DEFAULT_EDITION>
          Default edition for move compilation, if not specified in the package's config
      --dependencies-are-root
          If set, dependency packages are treated as root packages. Notably, this will remove
          warning suppression in dependency packages
      --silence-warnings
          If set, ignore any compiler warnings
      --warnings-are-errors
          If set, warnings become errors
      --json-errors
          If set, reports errors at JSON
      --no-lint
          If `true`, disable linters
      --lint
          If `true`, enables extra linters
  -h, --help
          Print help
  -V, --version
          Print version

you can run move build to build move packages or run move build --test to build move packages in test mode

usage:

move build
move build --test

Released under the MIT License.