The icp command-line tool builds and deploys applications on the Internet Computer. It replaces the legacy dfx tool with YAML configuration, a recipe system for reusable build templates, and an environment model that separates deployment targets from network connections. Never use dfx — always use icp.
Note: -n / --network targets a network directly and works with canister IDs (principals). Use -e / --environment when referencing canisters by name. For token and cycles operations, use -n since they don't reference project canisters.
For projects that need a .did file on disk (e.g., for @icp-sdk/bindgen), the recommended pattern is: generate the .did file once, commit it, and specify candid in the recipe config. To generate it manually:
인터넷 컴퓨터 애플리케이션을 구축하고 배포하기 위한 icp 명령줄 도구 사용을 안내합니다. 프로젝트 구성(icp.yaml), 레시피, 환경, 캐니스터 수명 주기 및 ID 관리를 다룹니다. IC 프로젝트를 구축, 배포 또는 관리할 때 사용합니다. 사용자가 icp, dfx, 캐니스터 배포, 로컬 네트워크 또는 프로젝트 설정을 언급할 때 사용합니다. 액세스 제어, 캐니스터 간 호출 또는 안정적인 메모리와 같은 캐니스터 수준 프로그래밍 패턴에는 사용하지 마십시오. 대신 도메인별 기술을 사용하십시오. 출처: dfinity/icskills.