This directory contains a comprehensive collection of examples demonstrating various features and usage patterns of ICP CLI. Each example is a complete, working project that you can use as a starting point or reference for your own Internet Computer applications.
To try any example:
-
Copy the example to your workspace:
cp -r examples/icp-motoko my-project cd my-project -
Start local network (in separate terminal):
icp network start
-
Deploy the canister:
icp deploy
-
Interact with your canister:
icp canister call my-canister greet '("World")'
Happy building! 🚀