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:
Leitet die Verwendung des ICP-Befehlszeilentools zum Erstellen und Bereitstellen von Internet-Computeranwendungen. Behandelt Projektkonfiguration (icp.yaml), Rezepte, Umgebungen, Kanisterlebenszyklus und Identitätsmanagement. Verwenden Sie es beim Erstellen, Bereitstellen oder Verwalten eines IC-Projekts. Verwenden Sie diese Option, wenn der Benutzer ICP, DFX, Kanisterbereitstellung, lokales Netzwerk oder Projekteinrichtung erwähnt. NICHT für Programmiermuster auf Kanisterebene wie Zugriffskontrolle, Aufrufe zwischen Kanistern oder stabilen Speicher verwenden – nutzen Sie stattdessen domänenspezifische Fähigkeiten. Quelle: dfinity/icskills.