Shortened dfx commands into a single script that are executable
npm install canister-toolsA comprehensive CLI toolkit for ICP. These are shortened dfx commands into single scripts that are excecutable
``bash`
npm install -g canister-tools
Usage:
`bash`
npx generate-did
Example:
`bash`
generate-did backend
This will:
1. Build the Rust canister
2. Extract and generate the Candid file
3. Save it as
#### Frontend Canister Upgrades
Local Development:
`bash`
upgrade-canister
Mainnet Deployment:
`bash`
upgrade-canister
#### Backend Canister Upgrades
Local Development:
`bash`
upgrade-canister
Mainnet Deployment:
`bash`
upgrade-canister
#### Frontend Upgrade Process
- Builds the canister
- Performs the upgrade installation
- Handles network-specific configurations
#### Backend Upgrade Process
- Builds the canister
- Locates the correct Wasm file
- Fetches the canister ID
#### Executes the upgrade with proper network paths
`bash``
Command Options
Options:
--frontend, -f Upgrade a frontend canister
--backend, -b Upgrade a backend canister
--mainnet, -m Deploy to mainnet (IC network)
--help Show help information
#### Requirements
- Node.js installed
- DFX CLI installed
- Internet Computer project setup