Powerful CLI scripts to deploy contracts, interact with the blockchain, and manage your Flow applications. One-command deployment and interaction tools for faster development.
Before using these scripts, you must install the Flow CLI. All scripts are compatible with emulator, testnet, and mainnet.
Get started with FlowDevKit CLI tools in minutes.
# Install Flow CLI
curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh | sh
# Verify installation
flow version# Clone FlowDevKit CLI tools
git clone https://github.com/flowdevkit/cli-tools.git
cd cli-tools
# Make scripts executable
chmod +x *.sh# Initialize new Flow project
flow init
# Or use FlowDevKit template
./init-project.sh my-flow-app# Deploy NFT contract to testnet
./deploy-nft.sh testnet MyNFT
# Deploy token contract
./deploy-token.sh testnet MyToken 1000000The CLI tools are organized into the following categories:
Deploy smart contracts to Flow networks with a single command.
- Description: Deploy NFT contract to testnet or mainnet.
- Usage:
# Make script executable chmod +x deploy-nft.sh # Run with default parameters (deploys to testnet) ./deploy-nft.sh # Run with custom parameters ./deploy-nft.sh [network] [contract-name]
- Description: Deploy fungible token contract.
- Usage:
# Make script executable chmod +x deploy-token.sh # Run with default parameters ./deploy-token.sh # Run with custom parameters ./deploy-token.sh [network] [token-name] [initial-supply]
Scripts to interact with deployed contracts - mint, transfer, query.
- Description: Mint NFTs from deployed contract.
- Usage:
# Mint an NFT with default values ./mint-nft.sh # Mint an NFT with custom values ./mint-nft.sh [network] [recipient] [name] [description] [image-url]
- Description: Set up NFT collection for an account.
- Usage:
# Setup collection for the default testnet account ./setup-collection.sh # Setup collection for a specific account on a network ./setup-collection.sh [network] [account]
Read blockchain state - balances, NFT metadata, contract info.
- Description: Query token balance for an account.
- Usage:
flow scripts execute ./get-balance.cdc <account-address> --network=testnet
- Description: Get all NFT IDs owned by an account.
- Usage:
flow scripts execute ./get-nft-ids.cdc <account-address> --network=testnet
- Description: Get detailed metadata for a specific NFT.
- Usage:
flow scripts execute ./get-nft-metadata.cdc <account-address> <item-id> --network=testnet