This project is an npm package designed to simplify the creation, deployment and management of the identities without setup dfx.
With this package, users can :
- Create a new ICP project
- Deploy canisters on the mainnet.
- Redeem a coupon for any identity using the coupon and principal ID .
- Check the cycles balance of any identity using the principal ID.
- Create a new ICP identity.
- Retrieve the principal of the local identity.
- Switch to a different local identity using its name.
- Display the path of the current location.
- Show help information about the commands.
- Easy setup and configuration for canisters creation and deployment.
- Command-based execution for flexibility.
- Create an identity, use it, and retrieve the principal ID of identities.
- Redeem coupons on any user identity's principal.
new <projectName>
– Creates a new ICP project.deploy
– Deploys canisters on the mainnet.redeem <toPrincipalId> <couponId>
– Redeems a coupon for a specific identity using the given principal ID.cycles-balance [PrincipalId]
– Checks the cycles balance of an identity using the provided principal ID. (If no principal ID is given, it defaults to the current user's principal.)new-identity <identityName>
– Creates a new ICP identity.identity-get-principal
– Retrieves the principal ID of the current identity.identity-use <identityName>
– Switches to a different identity using its name.help
– Displays help information about the available commands.cwd
– Shows the current working directory path.
Before using this project, ensure you have the following installed:
- Install package :
npm i -g icp-cli
- Clone the repository:
git clone https://github.com/ICP-hub/icp-cli.git
- run dependencies:
npm run build
- run dependencies:
npm link