Generate bindings from contract ABI
This command generates bindings from contract ABI files. Supports EVM chain family with Go and TypeScript languages. The target language is auto-detected from project files, or can be specified explicitly with --language. Each contract gets its own package subdirectory to avoid naming conflicts. For example, IERC20.abi generates bindings in generated/ierc20/ package.
Both raw ABI files (.abi) and JSON artifact files (.json) are supported. For JSON files the ABI is read from the top-level "abi" field.
cre generate-bindings <chain-family> [optional flags]
cre generate-bindings evm
-a, --abi string Path to ABI directory (defaults to contracts/{chain-family}/src/abi/). Supports *.abi and *.json files
-h, --help help for generate-bindings
-l, --language string Target language: go, typescript (auto-detected from project files when omitted)
-k, --pkg string Base package name (each contract gets its own subdirectory) (default "bindings")
-p, --project-root string Path to project root directory (defaults to current directory)
-e, --env string Path to .env file which contains sensitive info
-E, --public-env string Path to .env.public file which contains shared, non-sensitive build config
-T, --target string Use target settings from YAML config
-v, --verbose Run command in VERBOSE mode
- cre - CRE CLI tool