All apps/Aptos CLI

Aptos CLI

aptos

Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.

Runs as aptos|macOS, Linux, Windows|github.com

Command form

ai-draft · 4 tasks · 10 fields

Compile, test and publish Move packages. Profile creation, accounts, gas options and the other move subcommands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui aptos

aptos move compile

Compile a Move package
Compile a Move packageExample values, fixed in this page — nothing here reaches a terminal
Basic
Package directory*
directory
Named addresses
string
TasksEach one presets the form for one job
Compile a package
package_dirnamed_addresses
ParametersOnly these flags are editable in the form
Package directory
path
--package-dir
Named addresses
name=address pairs, e.g. hello_blockchain=default.
string
--named-addresses

aptos move test

Test a Move package
Test a Move packageExample values, fixed in this page — nothing here reaches a terminal
Basic
Package directory
directory
Named addresses
string
Collect coverage
--coverage
TasksEach one presets the form for one job
Run tests
package_dirnamed_addressescoverage
ParametersOnly these flags are editable in the form
Package directory
path
--package-dir
Named addresses
string
--named-addresses
Collect coverage
boolean
--coverage
Filter tests
string
--filter

aptos move publish

Publish a Move package
Publish a Move packageExample values, fixed in this page — nothing here reaches a terminal
Basic
Package directory*
directory
Named addresses
string
Profile
string
TasksEach one presets the form for one job
Publish a package
package_dirnamed_addressesprofile
Simulate publishing
package_dirnamed_addresseslocal
ParametersOnly these flags are editable in the form
Package directory
path
--package-dir
Named addresses
string
--named-addresses
Profile
Account profile to publish from; defaults to the default profile.
string
--profile
Simulate locally
boolean
--local
SourcesEvery flag above is checked against these
docs
aptos move compile --package-dir <your-package-directory> aptos move compile --package-dir aptos-move/move-examples/hello_blockchain/ --named-addresses hello_blockchain=default
manual2026-10

aptos.dev

docs
aptos move test --package-dir <your-package-directory> aptos move test --coverage you can do so with the --filter option. To narrow even further to specific Move modules, use the --module parameter. aptos move compile --package-dir aptos-move/move-examples/hello_blockchain/ --named-addresses hello_blockchain=default
manual2026-10

aptos.dev

docs
aptos move publish --package-dir <your-package-directory> the credentials you pass into optional parameters like --named-addresses will need to reflect accounts on that network You can override that to specify which account to publish to using --profile in the command. To simulate locally, append the --local option to your command. You can also profile gas u…
manual2026-10

aptos.dev

Before it fills your prompt, Otty checks the installed aptos against its version. A form that does not match your version is not offered.