Complete guide to deploying smart contracts with Fever CLI. From installation to production deployments.
Before diving into the reference documentation, we highly recommend starting with our comprehensive hands-on quickstart. Learn by deploying a real DeFi lending system and discover the power of manifest-driven deployment, from simple ERC20 tokens to complex Diamond Proxy architectures.
Install Fever CLI globally from npm to get started with smart contract development.
Install from npm registry
npm install -g @fevertokens/clifever --versionShould display the current version
Fever CLI automatically detects Solidity versions and compiles contracts with optimization enabled.
fever compile --allCompiles all contracts in the contracts/ directory
fever compile MyTokenCompiles a specific contract by name
fever compile --all --source src/contractsSpecify a different source directory
Deploy smart contracts using YAML manifest files with environment variable support.
fever deploy -f deployment.ymlDeploy contract using YAML configuration
# deployment.yml uses {PRIVATE_KEY} syntax PRIVATE_KEY=0x123...
fever deploy -f deployment.ymlReference environment variables in manifests
Build complex, upgradeable contract systems using the Diamond Proxy pattern (EIP-2535).
fever compose -f diamond-system.ymlCompose multiple facets into a diamond proxy
Connect to the Fever Web Platform for project management, artifact synchronization, and team collaboration.
fever auth loginSecure device-code flow authentication
fever auth statusfever auth logoutfever projectsfever projects create --name "My Project"fever projects selectfever artifacts syncOnly syncs changed contracts (70-90% bandwidth savings)
fever artifacts statusGit-like visual status display
fever artifacts downloadFever CLI provides local blockchain node management for rapid development and testing.
fever nodeAutomatically starts Anvil (preferred) or Ganache
fever node --port 8545 --chain-id 1337fever node --fork https://eth-mainnet.alchemyapi.io/v2/YOUR_KEYfever node --tool anvil --verbosefever node --listDefine your deployment and composition configurations using YAML manifest files (currently in beta).
For single contract deployments:
apiVersion: beta/v1
kind: Deployment
metadata:
name: stablecoin-contract
version: 1.0.0
spec:
deployer:
wallet:
type: privateKey
value: "${PRIVATE_KEY}"
gasSettings:
gasLimit: 3000000
package:
name: StableCoin
constructorArgs:
- name: "name_"
type: "string"
value: "MockUSDC"
- name: "symbol_"
type: "string"
value: "mUSDC"
- name: "decimals_"
type: "uint8"
value: 6
network:
chainId: "${CHAIN_ID}"
rpcUrl: "${RPC_URL}"For complex multi-facet diamond proxy systems:
apiVersion: beta/v1
kind: Diamond
metadata:
name: microloan-diamond
version: 1.0.0
spec:
deployer:
wallet:
type: privateKey
value: "${PRIVATE_KEY}"
dependencies:
packageViewer:
name: PackageViewer
packageController:
name: PackageController
loanRegistry:
name: LoanRegistry
loanFunding:
name: LoanFunding
loanRepayment:
name: LoanRepayment
loanTokenManager:
name: LoanTokenManager
diamond:
name: MicroLoanDiamond
constructorArguments:
- $dependencies.packageController.address
- $dependencies.packageViewer.address
- "${ADMIN_ADDRESS}" # Admin/Owner address
packages:
- name: LoanRegistry
functions:
- "0xc19fa698" # createLoan(...)
- "0x504006ca" # getLoan(uint256)
address: $dependencies.loanRegistry.address
- name: LoanFunding
functions:
- "0x846b909a" # fundLoan(uint256)
address: $dependencies.loanFunding.address
- name: LoanRepayment
functions:
- "0x84068d15" # repayNextInstallment(uint256)
address: $dependencies.loanRepayment.address
- name: LoanTokenManager
functions:
- "0xf7888aec" # balanceOf(address,address)
- "0x47e7ef24" # deposit(address,uint256)
- "0xf3fef3a3" # withdraw(address,uint256)
address: $dependencies.loanTokenManager.address
network:
chainId: "${CHAIN_ID}"
rpcUrl: "${RPC_URL}"${PRIVATE_KEY} for sensitive data.This software is licensed under the FeverTokens Proprietary Base Code License.
Summary of license permissions and restrictions
You may use Fever CLI as part of your integrated applications and products.
Modifications and enhancements are permitted when integrated into your products.
The Base Code cannot be extracted, independently reused, or distributed separately.
Reverse engineering, decompilation, or disassembly requires prior written consent.
For complete license terms and conditions, please see the LICENSE.md file in the repository.
Copyright © 2025 FeverTokens. All rights reserved.
Complete reference of all available Fever CLI commands (version 1.0.1).
fever --versionShow CLI version (v1.0.1)fever --helpShow help information and available commandsfever compile [packageName]fever compile --allCompile all contracts in source directoryfever deploy -f <file>Deploy using YAML manifest filefever compose -f <file>Deploy diamond proxy system using composition manifestfever auth loginAuthenticate CLI to Fever Web Platform using device flowfever auth statusCheck platform connection statusfever auth logoutDisconnect from platformfever projects --listList all projects on platform (default action)fever projects --create <name>fever projects selectfever artifacts uploadfever artifacts downloadfever node