Loading...
Loading...
Scaffolds new Aptos projects using npx create-aptos-dapp. Supports fullstack (Vite or Next.js) and contract-only templates with network selection and optional API key. Triggers on: 'build app', 'create app', 'make app', 'new app', 'build dApp', 'create dApp', 'new dApp', 'build project', 'new project', 'create project', 'scaffold', 'start project', 'set up project', 'build me a', 'I want to build', 'make me a', 'help me build'.
npx skill4agent add aptos-labs/aptos-agent-skills create-aptos-projectnpx create-aptos-dappnpx create-aptos-dapp.env.gitignorecreate-aptos-dappaptos initcreate-aptos-dapp"0x..."git add .git add -A.env.gitignorehabit-trackernft-marketplace| Option | When to Use |
|---|---|
| Fullstack (default) | User wants a frontend + smart contracts |
| Contract-only | User only wants Move smart contracts (no frontend) |
| Option | When to Use |
|---|---|
| Vite (default) | Default choice, lighter setup |
| Next.js | User asks for Next.js or SSR |
| Option | When to Use |
|---|---|
| devnet (default) | Development and testing |
| testnet | Pre-production, user explicitly asks |
| mainnet | Production, user explicitly asks |
# Fullstack dApp with Vite (frontend + contracts)
npx create-aptos-dapp <project-name> \
--project-type fullstack \
--template boilerplate-template \
--framework vite \
--network <network>
# Fullstack dApp with Next.js
npx create-aptos-dapp <project-name> \
--project-type fullstack \
--template boilerplate-template \
--framework nextjs \
--network <network>
# Contract-only (Move project)
npx create-aptos-dapp <project-name> \
--project-type move \
--network <network>--api-key <key>--use-surfcd <project-name>.env.gitignoreaptos init --network <network> --assume-yesnpm run move:compile && npm run move:testgit init && git add . && git commit -m "Initial commit"/create-aptos-projectnpx create-aptos-dapp/write-contracts/generate-tests/security-audit/deploy-contracts/use-ts-sdkcontract/Move.tomlfrontend/package.jsonmove:compilemove:testmove:publishdevbuild.envcontract/Move.tomlpackage.jsonmove:compilemove:testmove:publish.envnpx create-aptos-dapp# Auto-confirm the npx package install prompt
npx --yes create-aptos-dapp <project-name> ...node -v && npm -vcontract/Move.tomlaptos init --network <network> --assume-yesmy_addr"_"[addresses]my_addr = "_".envVITE_MODULE_PUBLISHER_ACCOUNT_ADDRESS.envaptos init