Skip to content

feat: updated cli commands to include complete one liner examples#713

Merged
DenhamPreen merged 2 commits intomainfrom
kv/one-line-init-doc
Oct 15, 2025
Merged

feat: updated cli commands to include complete one liner examples#713
DenhamPreen merged 2 commits intomainfrom
kv/one-line-init-doc

Conversation

@keenbeen32
Copy link
Collaborator

@keenbeen32 keenbeen32 commented Oct 7, 2025

Just added some more examples for how to create indexers in one terminal command for ai's benefit

Summary by CodeRabbit

  • Documentation
    • Replaced “Advanced Usage Examples” with “Complete One-Line Examples” and expanded CLI examples with full one-line commands, flags, and annotated "What each part does" breakdowns.
    • Clarified contract-import (explorer/local), template initialization, USDC indexer, local-ABI workflows, and benchmarking examples.
    • Removed two network entries from supported networks documentation.
  • Style
    • Dark-theme CSS adjustments for search results for better contrast.
  • Chore
    • Reformatted supported-networks JSON (no semantic changes).

@vercel
Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
envio-docs Ready Ready Preview Comment Oct 13, 2025 0:02am

@keenbeen32 keenbeen32 requested a review from DZakh October 7, 2025 13:45
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 7, 2025

Walkthrough

Documentation-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 supported-networks.json. No functional code changes.

Changes

Cohort / File(s) Summary of Changes
Docs: CLI guide examples overhaul
docs/HyperIndex/Guides/cli-commands.md
Replaced “Advanced Usage Examples” with “Complete One-Line Examples”; added multiple full one-line CLI examples (contract-import explorer, contract-import local, template init, USDC indexer, local-ABI workflows, benchmarks) and per-flag explanations; formatting and header updates; docs-only.
Docs: remove networks (HyperRPC / HyperSync)
docs/HyperRPC/hyperrpc-supported-networks.md, docs/HyperSync/hypersync-supported-networks.md
Removed two network rows: Galadriel Devnet and Unichain Sepolia from supported networks tables; no other content changes.
Styling: DocSearch dark-mode adjustments
src/css/custom.css
Added dark-theme selectors to adjust DocSearch hit background and text color (aria-selected/link focus/hover and hit sub-elements) using !important; styling-only.
Data: reformat supported networks list
supported-networks.json
Reflowed/reformatted JSON entries (line breaks/indentation) without semantic changes to network entries or ordering.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • chore: updated supported networks #697 — Related edits to supported-networks documentation and supported-networks.json affecting network entries.
  • v2.29 #703 — Similar modifications to HyperRPC/HyperSync supported-networks docs and JSON reflow.
  • HyperIndex v2.21 #631 — Prior change touching HyperSync supported-networks table (removals), closely related to the network-row edits.

Suggested reviewers

  • DZakh
  • moose-code

Poem

I nibble keys and tidy hops,
One-liners lined like carrot crops.
Flags in place, each story told,
Docs now warm and slightly bold.
A happy rabbit—short and spry 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title clearly and concisely summarizes the primary change of the pull request by indicating that CLI documentation has been updated to include complete one-liner examples, which aligns directly with the modifications made to the docs. It is specific enough for a teammate to understand the focus without extraneous detail.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch kv/one-line-init-doc

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ba0daf1 and 9c26ec4.

📒 Files selected for processing (5)
  • docs/HyperIndex/Guides/cli-commands.md (2 hunks)
  • docs/HyperRPC/hyperrpc-supported-networks.md (0 hunks)
  • docs/HyperSync/hypersync-supported-networks.md (0 hunks)
  • src/css/custom.css (1 hunks)
  • supported-networks.json (1 hunks)
💤 Files with no reviewable changes (2)
  • docs/HyperRPC/hyperrpc-supported-networks.md
  • docs/HyperSync/hypersync-supported-networks.md
✅ Files skipped from review due to trivial changes (1)
  • supported-networks.json

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a18930c and ba0daf1.

📒 Files selected for processing (1)
  • docs/HyperIndex/Guides/cli-commands.md (2 hunks)

Comment on lines +331 to 332
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
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

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`.

@DenhamPreen DenhamPreen merged commit 06ba5a0 into main Oct 15, 2025
3 checks passed
@DenhamPreen DenhamPreen deleted the kv/one-line-init-doc branch October 15, 2025 13:20
This was referenced Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants