TON Command Line Interface - easy smart contract manipulation
toncli
The Open Network cross-platform smart contract command line interface.
Easy to deploy and interact with TON smart contracts.
๐ง Installation
Toncli support Windows / macOS (m1 / intel) / Linux / Docker, installation guide can be found: INSTALLATION.md
๐ Usage and docs
New to toncli?
Try: Quick start guide
All other documentation lists in docs/
Lessons
Contributor Guide
Interested in contributing? Feel free to create issues and pull requests.
We are trying to process all tasks through issues. You can take own one ๐ฅณ
Features and status
| Feature | Status | |-----------------------------------------------------------------------------------------------------------|-------| | fift / func / lite-server usage | โ
| | Easy bootstrap project samples wallet | โ
| | Deploy-wallet for auto send TON to contracts and tests | โ
| | Compile func to build/ from func/ with files.yaml | โ
| | Auto send TON to init contract address | โ
| | Deploy to mainnet / testnet / ownnet | โ
| | Project interact after deploy: easily send messages, run getmethods, run fift parsers on getmethods output | โ
| | Load from hard project structure (example: src/projects/wallet) | โ
| | Run remote contracts locally (get cells from chain and run locally to get error / debug / etc.) | โ
| | Get contract address by toncli addrs | โ
| | Docs for contract creation for beginners | โ
| | Project tests with runvmcode | โ
| | Windows & Linux support | โ
| | Unit tests engine | โ
| | Add more project samples with advanced usage | โ
|
Commands
Configuration
Config folder will create on first deploy, all fift / func libs will copy to it, also deploy wallet contract will be created
Deploy process (how it's actually work)
- Check network (testnet, mainnet) configuration locally (in config user folder)
- Check deploy wallet locally (in config user folder)
- Will run tests on
fift/data.fif/fift/message.fif(if exist) /fift/lib.fif(if exist) before creating deploy
- Will calculate address of contract and display it to user
- Will send money from deploy wallet
- Will deploy your contract
Development
git clone git@github.com:disintar/toncli.git
cd toncli && pip install -e .
If you wish to update toncli locally you can use
install -e path/to/toncli/rootfolder/ command anytime after you make changes to the toncli source code.
Version migration
0.24
Please, use toncli update_libs
0.22
The easy migration method - remove fift-libs, func-libs from ~/.config/toncli or delete whole directory ~/.config/toncli
Help and questions
Feel free to ask questions and help in official telegram chats: Russian / English
Donations
TON: EQCsCSLisPZ6xUtkgi_Tn5c-kipelVHRCxGdPu9x1gaVTfVC
License
Copyright (c) 2022 Disintar LLP Licensed under the Apache License