use-algokit-cli
AlgoKit CLI commands for building, testing, and deploying Algorand applications. Use when building or compiling smart contracts, running test suites, deploying to localnet, managing local Algorand network, or understanding the development workflow. Strong triggers include "build the contract", "run the tests", "start localnet", "deploy to localnet", "algokit project run", "localnet status".
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
AlgoKit Commands
Standard commands for Algorand development with AlgoKit CLI.
Overview / Core Workflow
- Write contract code
- Build:
algokit project run build - Write tests using generated clients
- Test:
algokit project run test - Deploy:
algokit project deploy localnet
How to proceed
-
Build contracts:
algokit project run buildThis compiles contracts via Puya, generates ARC56 specs, and creates typed clients.
-
Run tests:
algokit project run testExecutes the test suite using Vitest.
-
Start localnet (if needed):
algokit localnet start -
Deploy to localnet:
algokit project deploy localnet -
Check build artifacts:
-
artifacts/— Compiled contracts, ARC56 specs - Generated client files for TypeScript/Python
-
Important Rules / Guidelines
- Always build before testing — Tests use generated clients
- Only deploy when explicitly requested — Don't auto-deploy
- Check localnet status before deployment operations
- Reset localnet if you need a clean state
Common Variations / Edge Cases
| Scenario | Command |
|---|---|
| Start local network | algokit localnet start |
| Stop local network | algokit localnet stop |
| Reset network state | algokit localnet reset |
| Check network status | algokit localnet status |
| Build fails | Check Puya compiler errors, fix contract code |
| Tests fail | Check test assertions, fix contract or test code |
References / Further Reading
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!