Skip to content

Update CLI commands to use stable v3.0.0 release#918

Merged
DZakh merged 3 commits into
mainfrom
claude/update-v3-versions-DxilA
May 15, 2026
Merged

Update CLI commands to use stable v3.0.0 release#918
DZakh merged 3 commits into
mainfrom
claude/update-v3-versions-DxilA

Conversation

@DZakh
Copy link
Copy Markdown
Member

@DZakh DZakh commented May 15, 2026

Summary

This PR updates documentation across multiple files to reflect the stable v3.0.0 release of Envio. All references to the release candidate version (3.0.0-rc.0) and alpha versions are replaced with the stable 3.0.0 version or simplified to use the latest version via pnpx envio init.

Key Changes

  • CLI command simplification: Replaced all instances of pnpx envio@3.0.0-rc.0 with pnpx envio to use the latest stable version by default
  • Version references: Updated package.json examples to reference envio: "3.0.0" instead of 3.0.0-rc.0
  • Release notes: Added v3.0.0 stable release link to the release notes section
  • API token documentation: Clarified that --api-token flag is optional when using external RPC sources and removed misleading examples of passing empty strings
  • Solana support: Removed version-specific references (e.g., "Available since 3.0.0-alpha.3") to indicate stable support
  • Blog posts: Updated example commands in blog posts to use the stable release syntax

Notable Details

  • The changes maintain backward compatibility - using pnpx envio init will automatically resolve to the latest stable version
  • Documentation now emphasizes that API tokens are only required when using HyperSync as the data provider, not when using external RPC sources
  • All tutorial and guide examples have been updated consistently across HyperIndex v3, v2, and blog content

https://claude.ai/code/session_019gANhHF3h2PqMMB554zFWQ

Summary by CodeRabbit

  • Documentation
    • Simplified CLI initialization commands across guides and tutorials to use latest stable release syntax without version pinning.
    • Clarified API token requirements: ENVIO_API_TOKEN is only needed when using Envio's HyperSync as data provider, not required for external RPC indexers.
    • Updated Solana command syntax to pnpx envio init svm.
    • Updated migration guidance to specify stable v3.0.0 release.

Review Change Stack

claude added 3 commits May 15, 2026 10:49
Replace 3.0.0-rc.0 and other v3 prerelease versions with 3.0.0, and
remove the explicit version pin from `pnpx envio@... init` commands for
v3 (v2 init commands keep `envio@2`).
Remove the `--api-token ""` placeholder from all init commands and prose,
and trim the surrounding explanation in the AI quickstart so it no longer
references the empty-string trick. Also split the release-notes list so
v3.0.0 and v3.0.0-rc.0 appear as separate entries.
Drop "Available since 3.0.0." from the Solana experimental callout so it
just reads "Experimental.". In the AI quickstart and Environment
Variables guides (v2 and v3), clarify that the API token is only
required when using Envio HyperSync as the data provider — indexers
using an external RPC don't need one and can pass an empty string to
skip the prompt.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

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

Project Deployment Actions Updated (UTC)
envio-docs Ready Ready Preview, Comment May 15, 2026 1:09pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

📝 Walkthrough

Walkthrough

This PR systematically updates all HyperIndex documentation and blog content to use unpinned pnpx envio CLI commands instead of version-pinned variants, removes --api-token "" flags from template examples, and clarifies when ENVIO_API_TOKEN is required based on data provider type.

Changes

CLI Unpinning and API Token Clarification

Layer / File(s) Summary
API Token Requirements Clarification
docs/HyperIndex/Guides/environment-variables.md, docs/HyperIndexV2/Guides/environment-variables.md
Environment variable guides clarify that ENVIO_API_TOKEN is only required when Envio is the HyperSync data provider, and not needed for external RPC-based indexers.
Quickstart with AI: Token Flag Removal and Guidance
docs/HyperIndex/quickstart-with-ai.md, docs/HyperIndexV2/quickstart-with-ai.md
Quickstart guides remove the --api-token "" flag from init template examples and expand documentation to explain when tokens are required based on deployment mode (Envio Cloud vs local/self-hosted) and data provider (HyperSync vs external RPC).
Core CLI Command Unpinning
docs/HyperIndex/Guides/cli-commands.md, docs/HyperIndex/Guides/contract-state.md, docs/HyperIndex/Guides/ipfs.md, docs/HyperIndex/Guides/running-locally.md, docs/HyperIndex/Guides/testing.mdx, docs/HyperIndex/Tutorials/*, docs/HyperIndex/contract-import.md, docs/HyperIndex/migration-guide.md
Systematic removal of version pins from pnpx envio initialization commands across all guides and tutorials, changing pnpx envio@3.0.0-rc.0 init to pnpx envio init and pnpx envio@3.0.0-alpha.X init svm to pnpx envio init svm.
Solana and Advanced Features Documentation
docs/HyperIndex/solana/solana.md, docs/HyperIndexV2/solana/solana.md, docs/HyperIndex/whats-new-in-v3.md, blog/2026-04-24-clickhouse-storage.md
Solana documentation removes version pins from init commands and updates experimental callouts; ClickHouse and whats-new-in-v3 pages reflect unpinned commands and add v3.0.0 release note link.
Migration Guides and Version References
docs/HyperIndex/migrate-from-alchemy.md, docs/HyperIndex/migrate-from-ponder.md, docs/HyperIndex/migrate-to-v3.md, docs/HyperIndex/migrate-with-ai.md
Migration guides remove version pins from initialization commands; migrate-to-v3 updates the envio dependency version from 3.0.0-rc.0 to stable 3.0.0.
Comprehensive Documentation Consolidation
docs/HyperIndex-LLM/hyperindex-complete.mdx
The consolidated documentation file updates all contract import, tutorial, CLI reference, migration, AI migration, and Solana initialization commands to remove version pins; adds v3.0.0 release note link; updates migration package.json version reference.
Blog Posts and Release Updates
blog/2025-12-16-dev-update-december-2025.md, blog/2026-03-20-agentic-blockchain-indexing.md, blog/2026-03-23-dev-update-march-2026.md
Blog posts covering Solana support, agentic blockchain indexing, and dev updates are updated to remove version pins from pnpx envio init commands and remove --api-token "" flags from template examples.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • enviodev/docs#911: Prior PR that introduced version-pinned pnpx envio@3.0.0-rc.0 commands into HyperIndex v3 migration docs; this PR removes those version pins.
  • enviodev/docs#825: Prior PR that updated docs/HyperIndex-LLM/hyperindex-complete.mdx; this PR further updates the same consolidated documentation with unpinned commands.
  • enviodev/docs#690: Prior PR that introduced ENVIO_API_TOKEN environment variable documentation; this PR clarifies when the token is required based on data provider.

Suggested reviewers

  • DenhamPreen
  • nikbhintade
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title "Update CLI commands to use stable v3.0.0 release" accurately and concisely summarizes the main objective of the pull request: updating documentation to reflect the stable Envio v3.0.0 release by replacing prerelease version references with the stable release.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


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

Copy link
Copy Markdown
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: 3

🧹 Nitpick comments (1)
docs/HyperIndex-LLM/hyperindex-complete.mdx (1)

1562-1562: ⚡ Quick win

Prefer environment variables over --api-token in docs examples.

Using --api-token in command examples (for example Line 1562 and Line 9178) encourages putting secrets in shell history and process args. Prefer ENVIO_API_TOKEN + command without inline token flags.

♻️ Suggested doc update pattern
-pnpx envio init template --name alchemy-migration --directory alchemy-migration --template  greeter --api-token "YOUR_ENVIO_API_KEY"
+export ENVIO_API_TOKEN=YOUR_ENVIO_API_KEY
+pnpx envio init template --name alchemy-migration --directory alchemy-migration --template greeter
-pnpx envio init template -n erc20-example -t erc20 -l typescript -d erc20-indexer --api-token "your-api-token" && cd erc20-indexer && pnpm dev
+ENVIO_API_TOKEN=your-api-token pnpx envio init template -n erc20-example -t erc20 -l typescript -d erc20-indexer && cd erc20-indexer && pnpm dev

Also applies to: 9178-9193, 9199-9208, 9214-9221

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/HyperIndex-LLM/hyperindex-complete.mdx` at line 1562, Replace inline
--api-token usage in the example command (the line containing pnpx envio init
template --name alchemy-migration --directory alchemy-migration --template
greeter --api-token "YOUR_ENVIO_API_KEY") with an environment-variable approach:
show exporting ENVIO_API_TOKEN (e.g., export
ENVIO_API_TOKEN="YOUR_ENVIO_API_KEY" or the Windows equivalent) and then run the
pnpx envio init template command without the --api-token flag; apply the same
change to the other occurrences mentioned (the blocks around the other examples)
so examples use ENVIO_API_TOKEN instead of passing the token on the command
line.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@blog/2026-04-24-clickhouse-storage.md`:
- Line 79: Update the surrounding wording so it matches the stable semantics of
the unpinned command "pnpx envio init": replace any references to "latest alpha
release" with the stable release wording (e.g., "stable v3.0.0" or "stable
release") and, if you want to show a pinned alternative, add a note explaining
how to call a specific version (e.g., mention using a versioned pnpx invocation)
while keeping the displayed command "pnpx envio init" as the unpinned, stable
install flow.

In `@docs/HyperIndexV2/Guides/environment-variables.md`:
- Line 27: Update the contradictory guidance so the page consistently states
that ENVIO_API_TOKEN is required only when using Envio as the data provider
(HyperSync) and not for all self-hosted deployments; find the section mentioning
ENVIO_API_TOKEN (the sentence at Line 33) and revise its wording to match Line
27’s rule (“A token is only required when using Envio/HyperSync”), removing any
phrasing that implies self-hosted instances always need the token and, if
present, add a short clarifier that RPC-backed indexers do not require
ENVIO_API_TOKEN.

In `@docs/HyperIndexV2/solana/solana.md`:
- Line 21: The docs currently show an unpinned CLI invocation "pnpx envio init
svm" which may resolve to envio v3; update the command to pin the major version
by replacing that invocation with "pnpx envio@2 init svm" (search for the
literal "pnpx envio init svm" in the file and change it to the pinned form) so
the v2 docs scaffold the correct major version.

---

Nitpick comments:
In `@docs/HyperIndex-LLM/hyperindex-complete.mdx`:
- Line 1562: Replace inline --api-token usage in the example command (the line
containing pnpx envio init template --name alchemy-migration --directory
alchemy-migration --template greeter --api-token "YOUR_ENVIO_API_KEY") with an
environment-variable approach: show exporting ENVIO_API_TOKEN (e.g., export
ENVIO_API_TOKEN="YOUR_ENVIO_API_KEY" or the Windows equivalent) and then run the
pnpx envio init template command without the --api-token flag; apply the same
change to the other occurrences mentioned (the blocks around the other examples)
so examples use ENVIO_API_TOKEN instead of passing the token on the command
line.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2aeef2d3-91a8-4bdd-a861-38857ce51889

📥 Commits

Reviewing files that changed from the base of the PR and between f841bbe and 6b9eccf.

📒 Files selected for processing (28)
  • blog/2025-12-16-dev-update-december-2025.md
  • blog/2026-03-20-agentic-blockchain-indexing.md
  • blog/2026-03-23-dev-update-march-2026.md
  • blog/2026-04-24-clickhouse-storage.md
  • docs/HyperIndex-LLM/hyperindex-complete.mdx
  • docs/HyperIndex/Guides/cli-commands.md
  • docs/HyperIndex/Guides/contract-state.md
  • docs/HyperIndex/Guides/environment-variables.md
  • docs/HyperIndex/Guides/ipfs.md
  • docs/HyperIndex/Guides/running-locally.md
  • docs/HyperIndex/Guides/testing.mdx
  • docs/HyperIndex/Tutorials/greeter-tutorial.md
  • docs/HyperIndex/Tutorials/price-data.md
  • docs/HyperIndex/Tutorials/tutorial-erc20-token-transfers.md
  • docs/HyperIndex/Tutorials/tutorial-indexing-fuel.md
  • docs/HyperIndex/Tutorials/tutorial-op-bridge-deposits.md
  • docs/HyperIndex/contract-import.md
  • docs/HyperIndex/migrate-from-alchemy.md
  • docs/HyperIndex/migrate-from-ponder.md
  • docs/HyperIndex/migrate-to-v3.md
  • docs/HyperIndex/migrate-with-ai.md
  • docs/HyperIndex/migration-guide.md
  • docs/HyperIndex/quickstart-with-ai.md
  • docs/HyperIndex/solana/solana.md
  • docs/HyperIndex/whats-new-in-v3.md
  • docs/HyperIndexV2/Guides/environment-variables.md
  • docs/HyperIndexV2/quickstart-with-ai.md
  • docs/HyperIndexV2/solana/solana.md


```bash
pnpx envio@3.0.0-rc.0 init
pnpx envio init
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Update surrounding wording to match stable command semantics.

Line 79 now uses unpinned pnpx envio init, but the nearby setup text still says “latest alpha release,” which conflicts with the stable v3.0.0 positioning and can confuse readers.

Suggested doc tweak
-This will set up a fresh project on the latest alpha release.
+This will set up a fresh project on the latest stable release.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@blog/2026-04-24-clickhouse-storage.md` at line 79, Update the surrounding
wording so it matches the stable semantics of the unpinned command "pnpx envio
init": replace any references to "latest alpha release" with the stable release
wording (e.g., "stable v3.0.0" or "stable release") and, if you want to show a
pinned alternative, add a note explaining how to call a specific version (e.g.,
mention using a versioned pnpx invocation) while keeping the displayed command
"pnpx envio init" as the unpinned, stable install flow.


- Use `ENVIO_API_TOKEN` to provide your token at runtime
- See the API Tokens guide for how to generate a token: [API Tokens](/docs/HyperSync/api-tokens)
- A token is only required when using Envio as the data provider (HyperSync). Indexers that source data from an external RPC don't need one.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Resolve token requirement contradiction within this page.

The new statement on Line 27 conflicts with Line 33, which still implies self-hosted deployments always need ENVIO_API_TOKEN. Please align Line 33 to the same rule (“required only when using HyperSync as provider”) to avoid mixed guidance.

Suggested doc adjustment
-- `ENVIO_API_TOKEN`: API token for HyperSync access (required for continued access in self-hosted deployments)
+- `ENVIO_API_TOKEN`: API token for HyperSync access (required when using HyperSync as the data provider; not required when using an external RPC)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/HyperIndexV2/Guides/environment-variables.md` at line 27, Update the
contradictory guidance so the page consistently states that ENVIO_API_TOKEN is
required only when using Envio as the data provider (HyperSync) and not for all
self-hosted deployments; find the section mentioning ENVIO_API_TOKEN (the
sentence at Line 33) and revise its wording to match Line 27’s rule (“A token is
only required when using Envio/HyperSync”), removing any phrasing that implies
self-hosted instances always need the token and, if present, add a short
clarifier that RPC-backed indexers do not require ENVIO_API_TOKEN.


```bash
pnpx envio@3.0.0-alpha.14 init svm
pnpx envio init svm
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Pin v2 docs to envio@2 to avoid scaffolding the wrong major version.

Line 21 currently uses unpinned pnpx envio init svm, which can resolve to v3 and conflicts with v2 docs expectations.

Proposed fix
-pnpx envio init svm
+pnpx envio@2 init svm
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
pnpx envio init svm
pnpx envio@2 init svm
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/HyperIndexV2/solana/solana.md` at line 21, The docs currently show an
unpinned CLI invocation "pnpx envio init svm" which may resolve to envio v3;
update the command to pin the major version by replacing that invocation with
"pnpx envio@2 init svm" (search for the literal "pnpx envio init svm" in the
file and change it to the pinned form) so the v2 docs scaffold the correct major
version.

@DZakh DZakh enabled auto-merge (squash) May 15, 2026 13:19
Copy link
Copy Markdown
Contributor

@JasoonS JasoonS left a comment

Choose a reason for hiding this comment

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

Looks clean to me!

@DZakh DZakh merged commit 2f3e193 into main May 15, 2026
3 checks passed
@DZakh DZakh deleted the claude/update-v3-versions-DxilA branch May 15, 2026 13:31
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.

3 participants