Configuration with smartcache.toml

To avoid repeating flags for every command, the CLI supports configuration via TOML files.

Example:

# SmartCache Configuration File
# Generated on 2025-09-01

# Default network for contract operations
# Options: arbitrum-sepolia, arbitrum-one, arbitrum-nova, localhost
network = "arbitrum-sepolia"

# Your wallet address that deployed the contracts, this is required for all operations
deployed_by = "YOUR_WALLET_ADDRESS_HERE"

# Optional: Default contract address
# If specified, you can run 'smart-cache add' without providing an address
contract_address = "YOUR_CONTRACT_ADDRESS_HERE"

# Optional: Default contract metadata
# name = "MyContract"
# description = "Contract description"
version = "1.0.0"

# CLI behavior settings
interactive = false

# Optional: Custom metadata (add any additional fields you need)
# [metadata]
# author = "Your Name"
# license = "MIT"
# tags = ["defi", "nft"]

Values in the config file can always be overridden by passing flags in the CLI.


Supported Networks

The SmartCache CLI works across multiple Arbitrum networks, as well as local development:

  • arbitrum-sepolia (default)

  • arbitrum-one

  • arbitrum-nova

  • localhost

Last updated