feat: updated cli commands to include complete one liner examples#713
feat: updated cli commands to include complete one liner examples#713DenhamPreen merged 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughDocumentation-only edits: expanded CLI examples into “Complete One-Line Examples,” removed two supported-network rows in two docs pages, added dark-mode DocSearch CSS tweaks, and reformatted Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
💤 Files with no reviewable changes (2)
✅ Files skipped from review due to trivial changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| pnpx envio init contract-import local -n my-indexer -a ./abis/MyContract.json -c 0xYourContractAddress -b ethereum-mainnet --contract-name MyContract --single-contract --all-events -l typescript -d my-indexer --api-token "your-api-token" && cd my-indexer && pnpm dev | ||
| ``` |
There was a problem hiding this comment.
Remove the unsupported -c flag from the local ABI example.
Line 331’s one-liner includes -c 0xYourContractAddress, but the options table for envio init contract-import local (Lines 114‑119) doesn’t list -c/--contract-address; that flag only belongs to the parent contract-import command. Keeping it here will cause the CLI to error out. Please drop the -c argument (or document the correct flag if one exists).
🤖 Prompt for AI Agents
In docs/HyperIndex/Guides/cli-commands.md around lines 331 to 332, the local ABI
example includes the unsupported -c 0xYourContractAddress flag which will cause
the CLI to error; remove the `-c 0xYourContractAddress` segment from the
one-liner (or replace it with the correct parent-level flag only in the parent
command docs) so the example matches the available options for `envio init
contract-import local`.
ba0daf1 to
9c26ec4
Compare
Just added some more examples for how to create indexers in one terminal command for ai's benefit
Summary by CodeRabbit