Contract Engine CLI
Axicov CLI
Introduction
The Axicov Command Line Interface (CLI) is a powerful tool for blockchain developers that abstracts the complexity of Hardhat while enhancing developer experience. With intuitive commands and streamlined workflows, the Axicov CLI lets you focus on writing smart contracts rather than managing development infrastructure.
Installation
Command Reference
Global Options
All Axicov commands support the following global options:
--help
Display help information
--version
Display version information
--config <path>
Specify custom config file location
--verbose
Enable verbose logging
axicov init
axicov init
Initializes a new Axicov project with a well-structured development environment.
Options:
--name <name>
- Project name (default: derived from current directory)--template <template>
- Project template (default: "hardhat")--no-git
- Skip Git initialization--no-install
- Skip dependency installation
Example:
Interactive Prompts:
Project Name
Dependency Selection (OpenZeppelin, Ethers.js, Thirdweb, etc.)
Network Configuration
AI Contract Recommendations
axicov generate
axicov generate
Generates smart contract templates based on standard patterns with customizable options.
Contract Types:
erc20
- ERC20 token contracterc721
- NFT collection contractdao
- DAO governance contractdefi
- DeFi protocol (with subtypes)
Options:
--name <name>
- Contract name--output <dir>
- Output directory (default: "./contracts")--force
- Overwrite existing files
Example:
axicov deploy
axicov deploy
Compiles and deploys smart contracts to the specified network.
Options:
--network <network>
- Target network (default: "sonicblaze")--args <args>
- Constructor arguments (comma-separated or JSON)--gas-price <price>
- Custom gas price (in gwei)--gas-limit <limit>
- Custom gas limit--private-key <key>
- Private key (overrides .env)
Example:
axicov test
axicov test
Runs tests for your smart contracts using the Hardhat testing framework.
Options:
--network <network>
- Network to run tests on (default: "hardhat")--grep <pattern>
- Only run tests matching pattern--gas
- Report gas usage--coverage
- Generate coverage report
Example:
axicov verify
axicov verify
Verifies contract source code on block explorers.
Options:
--network <network>
- Network where contract is deployed (default: "sonicblaze")--address <address>
- Contract address (optional if deployment info exists)--args <args>
- Constructor arguments (comma-separated or JSON)--api-key <key>
- Explorer API key (overrides .env)
Example:
Configuration
The Axicov CLI is configured through an axicov.config.ts
file:
Environment Variables
Store sensitive information in a .env
file:
CLI Output Control
Control the verbosity and format of CLI output:
Advanced Usage
Custom Script Execution
Execute custom scripts in the context of your project:
Network Management
List and manage network configurations:
Plugin System
Extend Axicov with plugins:
Last updated