# IC入门常用的几个命令记录 **Published by:** [kaka](https://paragraph.com/@kaka-2/) **Published on:** 2023-03-30 **URL:** https://paragraph.com/@kaka-2/ic ## Content 1.dfx sdk安装: sh -ci “$(curl -fsSL https://smartcontracts.org/install.sh)” 2.设置环境变量: export PATH=/usr/local/bin:$PATH 3.启动到前端:dfx start 4. 部署本地:dfx deploy 5. 部署主网:dfx deploy --network ic 6. 获取身份id:dfx identity get-principal 7. 创建项目: dfx new helloword 8. 公钥私钥位置:ls -l ~/.config/dfx/identity/default 9. 切换或者绑定 新的wallet dfx identity --network ic set-wallet --aaaaa-aaaba-cai 10.钱包 WASM 安装到指定的canister : dfx identity --network ic deploy-wallet --aaaaa-aaaba-cai 11. 获取当前身份主体关联的钱包canister ID : dfx identity –network ic get-wallet 12:查询当前wallet的余额: dfx wallet --network ic balance 了解以上命令,建项目–部署IC,问题就不大了~ ## Publication Information - [kaka](https://paragraph.com/@kaka-2/): Publication homepage - [All Posts](https://paragraph.com/@kaka-2/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@kaka-2): Subscribe to updates