thru-cli abi prep-for-publish when you need a publishable ABI YAML artifact before thru-cli abi account create or upgrade.
Use This When
- you have local path imports that need to be inlined before publishing
- you want to enforce that remaining imports are valid on-chain imports for one network
- you need a stable artifact to review before pushing ABI contents on-chain
- you only need one flattened YAML file without publish rules: Flatten
- you want to publish immediately: Account
Syntax
Publish Rules
| Rule | Result |
|---|---|
| Local path imports | inlined into the output file. |
| On-chain imports on the target network | Kept in the output file. |
| On-chain imports on another network | Command fails. |
git imports | Command fails. |
http imports | Command fails. |
Minimal Pattern
Notes
- This command is the safest handoff point before
abi account createbecause it strips out local-only packaging assumptions. - The
thru-clicommand uses--target-network. The standaloneabibinary uses the same workflow with a shorter--networkflag. - Verbose mode prints which local imports were inlined and how many packages were resolved.