# Envio docs: Envio Cloud > Deploy, monitor and manage hosted indexers: features, CLI, billing, organisations, self-hosting. Generated at build time from the pages of https://docs.envio.dev. Each page below is the full markdown of one docs page, after a `` line. Append `.md` to that URL to fetch the page on its own. The index of every page is https://docs.envio.dev/llms.txt. Context files, one per product area: - [llms-hyperindex.txt](https://docs.envio.dev/llms-hyperindex.txt): HyperIndex core, about 47k tokens. Build, run and test an indexer: getting started, config.yaml, schema, handlers, CLI, testing, troubleshooting. - [llms-hyperindex-advanced.txt](https://docs.envio.dev/llms-hyperindex-advanced.txt): HyperIndex advanced features, about 32k tokens. Factories, the Effect API, wildcard indexing, preload, contract state, IPFS, HyperSync and RPC sources, reorgs, WebSockets. - [llms-hyperindex-reference.txt](https://docs.envio.dev/llms-hyperindex-reference.txt): HyperIndex performance and reference, about 27k tokens. Config schema reference, observability, performance tuning, benchmarks, supported chains and licensing. - [llms-hyperindex-examples.txt](https://docs.envio.dev/llms-hyperindex-examples.txt): HyperIndex examples and tutorials, about 16k tokens. Example indexers (Uniswap v4, Sablier, Velodrome and Aerodrome) and EVM tutorials. - [llms-hyperindex-migration.txt](https://docs.envio.dev/llms-hyperindex-migration.txt): HyperIndex migration guides, about 14k tokens. Upgrade a V2 indexer to V3, or migrate from The Graph, Ponder or Alchemy, by hand or with AI. - [llms-hyperindex-solana-fuel.txt](https://docs.envio.dev/llms-hyperindex-solana-fuel.txt): HyperIndex on Solana and Fuel, about 21k tokens. Solana programs (instruction and slot handlers, decoding, config) and Fuel contracts. - llms-envio-cloud.txt (this file): Envio Cloud, about 24k tokens. Deploy, monitor and manage hosted indexers: features, CLI, billing, organisations, self-hosting. - [llms-hypersync.txt](https://docs.envio.dev/llms-hypersync.txt): HyperSync core, about 36k tokens. EVM data: quickstart, API tokens, clients, query reference, curl, stream tuning, supported networks, tutorials. - [llms-hypersync-solana-fuel.txt](https://docs.envio.dev/llms-hypersync-solana-fuel.txt): HyperSync for Solana and Fuel, about 15k tokens. Solana HyperSync (query schema, client, curl examples) and HyperFuel, HyperSync for the Fuel network. - [llms-hyperrpc.txt](https://docs.envio.dev/llms-hyperrpc.txt): HyperRPC, about 6k tokens. Read-only JSON-RPC endpoint powered by HyperSync: supported methods, usage and supported networks. Pages in this file: - Envio Cloud - Deploying Your Indexer - Features - Envio Cloud CLI - Monitor an indexer on Envio Cloud - Envio Cloud Troubleshooting - Envio Cloud plans, billing and invoices - Set up an Envio Cloud organisation and team - Self-Hosting Guide --- # Envio Cloud > Envio Cloud hosts your blockchain indexers for you. Deploy with a git push, release new versions without downtime, and monitor them with logs and metrics. Envio Cloud is a fully managed hosting solution for your blockchain indexers, providing all the infrastructure, scaling, and monitoring needed to run production-grade indexers without operational overhead. Envio Cloud offers multiple plans to suit different needs, from free development environments to enterprise-grade dedicated hosting. Paid production plans add static production endpoints with zero-downtime deployments, built-in alerts, and production-ready infrastructure. ## Deployment Options Envio provides flexibility in how you deploy and host your indexers: - **Envio Cloud (Fully Managed)**: Let Envio handle everything. The following sections of this page outline Envio Cloud in more detail. This is the recommended deployment method for most users and removes the hosting overhead for your team. See below for the all the awesome features we provide and see the [Pricing & Billing](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md) page for more information on which plan suits your indexing needs. - **Self-Hosting**: Run your indexer on your own infrastructure. This requires advanced setup and infrastructure knowledge not unique to Envio. See the following [repository](https://github.com/enviodev/local-docker-example) for a simple docker example to get you started. Please note this example does not cover all infrastructure related needs. It is recommended that at least a separate Postgres management tool is used for self-hosting in production. For further instructions see the [Self Hosting Guide](https://docs.envio.dev/docs/HyperIndex/self-hosting.md) ## Key Features - **Git-based Deployments**: Similar to Vercel, deploy your indexer by simply pushing to a designated deployment branch - **Zero Infrastructure Management**: We handle all the servers, databases, and scaling for you - **Static Production Endpoints**: Consistent URLs with zero-downtime deployments and instant version switching - **Built-in Monitoring**: Track logs, sync status, and deployment health in real-time - **Comprehensive Alerting**: Multi-channel notifications (Discord, Slack, Telegram, Email) for critical issues, performance warnings, and deployment updates - **Security Features**: IP/Domain whitelisting to control access to your indexer endpoints - **GraphQL API**: Access your indexed data through a performant, production-ready GraphQL endpoint - **Multichain Support**: Deploy indexers that track multiple chains from a single codebase ## Deployment Model Envio Cloud provides a seamless GitHub-integrated deployment workflow: 1. **GitHub Integration**: Install the Envio Deployments GitHub App to connect your repositories 2. **Flexible Configuration**: Support for monorepos with configurable root directories, config file locations, and deployment branches 3. **Automatic Deployments**: Push to your deployment branch to trigger builds and deployments 4. **Version Management**: Maintain multiple deployment versions with one-click switching and rollback capabilities 5. **Real-time Monitoring**: Track deployment progress, logs, and sync status through the dashboard **Multiple Indexers**: Deploy several indexers from a single repository using different configurations, branches, or directories. You can view and manage your hosted indexers in the [Envio Cloud dashboard](https://envio.dev/app). ## Getting Started - **[Features](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md)** - Learn about all available Envio Cloud features - **[Deployment Guide](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md)** - Step-by-step instructions for deploying your indexer - **[Envio Cloud CLI](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md)** - Manage and monitor your hosted indexers from the command line - **[Pricing & Billing](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md)** - Compare plans and pricing options - **[Self-Hosting](https://docs.envio.dev/docs/HyperIndex/self-hosting.md)** - Run your indexer on your own infrastructure :::info It is recommended that before deploying to Envio Cloud, the indexer is built and tested locally to ensure it runs smoothly. For a complete list of local CLI commands to develop your indexer, see the [CLI Commands documentation](https://docs.envio.dev/docs/HyperIndex/cli-commands.md). ::: --- # Deploying Your Indexer > Learn how to deploy, manage, and version your indexers on Envio Cloud using a git workflow Envio Cloud provides a seamless git-based deployment workflow, similar to modern platforms like Vercel. This enables you to easily deploy, update, and manage your blockchain indexers through your normal development workflow. ## Prerequisites & Important Information :::tip Deployment not working? See [Troubleshooting](https://docs.envio.dev/docs/HyperIndex/envio-cloud-troubleshooting.md) for the most common build and deployment problems. ::: :::tip Deploying from an AI agent or CI? After the one-time setup in a browser (steps 1 to 3 below), the [`envio-cloud` CLI](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#deploy-from-an-agent-or-ci) can add the indexer, check each pushed commit and watch the sync from the terminal. ::: ### Requirements - **Version Support**: We strongly advise using the latest [release version](https://github.com/enviodev/hyperindex/releases) for improved deployment performance. Envio Cloud requires a minimum version of at least `2.21.5`. Additionally, the following versions are not supported on Envio Cloud: - `2.29.x` - **PNPM Support**: the deployment must be compatible with pnpm version `10.32.0` - **Repository Folder**: - **Package.json**: a `package.json` file must be present in the root folder and support the above two requirements, with the envio version explicitly configured in the dependencies. - **Configuration file**: a HyperIndex [configuration file](https://docs.envio.dev/docs/HyperIndex/configuration-file) must be present. The root folder and configuration file name can be set in the [indexer settings](#configure-your-indexer). - **GitHub Repository**: The repository must be no larger than `100MB`. Caching between deployments is supported on Production Medium plans and up using the [Effects Api](https://docs.envio.dev/docs/HyperIndex/effect-api#cache-on-envio-cloud). - **Node Version**: It is strongly recommended that the indexer is compatible with node version [24 or higher](https://github.com/nodejs/node/tags). :::note Fair use and limitations Before deploying your indexer, please be aware of the below limits and policies ::: ### Deployment Limits - **3 development plan indexers** per organization - **Deployments per indexer**: 3 deployments per indexer - Deployments can be deleted in Envio Cloud to make space for more deployments ### Development Plan Fair Usage Policy The free development plan includes automatic deletion policies to ensure fair resource allocation: #### Automatic Deletion Rules: - **Hard Limits**: - Deployments that exceed 20GB of storage will be automatically deleted - Deployments older than 30 days will be automatically deleted - **Soft Limits** (whichever comes first): - 100,000 events processed - 5GB storage used - **Inactivity**: a deployment that has received no queries for 7 days gets a warning, and is deleted 24 hours later unless it receives a query **When soft limits are breached, the two-stage deletion process begins** #### Two-Stage Deletion Process _Applies to development deployments that breach the soft limits_ 1. **Grace Period (7 days)** - Your indexer continues to function normally, you receive notification about the upcoming deletion 2. **Read-Only Access (3 days)** - Indexer stops processing new data, existing data remains accessible for queries 3. **Full Deletion** - Indexer and all data are permanently deleted :::warning Timeline Subject to Change The grace period durations (7 + 3 days) are subject to change. Always monitor your deployment status and upgrade when approaching limits. ::: :::tip For complete pricing details and feature comparison, see our [Pricing & Billing page](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md). ::: ## Step-by-Step Deployment Instructions ### Initial Setup 1. **Log in with GitHub**: Visit the [Envio App](https://envio.dev/app/login) and authenticate with your GitHub account 2. **Select an Organization**: Choose your personal account or any organization you have access to 3. **Install the Envio Deployments GitHub App**: Grant access to the repositories you want to deploy ### Configure Your Indexer 4. **Connect a Repo**: Select the repository containing your indexer code 5. **Add the Indexer**: Click "Add Indexer" and configure your indexer 6. **Configure Deployment Settings**: - Specify the config file location - Set the root directory (important for monorepos) - Choose the deployment branch :::tip Multiple Indexers Per Repository You can deploy multiple indexers from a single repository by configuring them with different config file paths, root directories, and/or deployment branches. ::: :::warning Monorepo Configuration If you're working in a monorepo, ensure all your imports are contained within your indexer directory to avoid deployment issues. ::: ### Deploy Your Code 7. **Create a Deployment Branch**: Set up the branch you specified during configuration 8. **Deploy via Git**: Push your code to the deployment branch 9. **Monitor Deployment**: Track the progress of your deployment in the Envio dashboard, or with `envio-cloud deployment status [organisation]`. See [Deployment Status](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#deployment-status). ### Manage Your Deployment 10. **Version Management**: Once deployed, you can: - View detailed logs - Switch between different deployed versions - Rollback to previous versions if needed ## Updating Your Deployment After your initial deployment, you can update your indexer by pushing new commits to the deployment branch. Each push creates a new deployment version. ### What happens on each push When you push to your deployment branch, Envio Cloud will: 1. Build your updated indexer code 2. Start a **new deployment** that re-indexes from the start block 3. Keep your previous deployment running and serving queries until the new one is fully synced This means there is **no downtime** during updates - your existing deployment continues serving data while the new one catches up. ### When re-indexing is required A full re-index from the start block happens on every new deployment. This includes changes to: - Event handler logic - Schema (`schema.graphql`) - Configuration (`config.yaml`) - ABIs or contract addresses :::tip Use the [Effects API cache](https://docs.envio.dev/docs/HyperIndex/effect-api.md#cache-on-envio-cloud) to speed up re-indexing by caching expensive external calls (like `eth_call` results) across deployments. This is available on Production Medium plans and up. ::: ### Changing environment variables of a running deployment To change only environment variables, you don't need a new deployment or a re-index. Open the deployment and go to its **Settings** page. You can add, change and remove variables there; you review the change before it's applied. The indexer restarts with the new values and carries on from where it left off, with no resync, and the GraphQL endpoint stays available. - The change applies only to that deployment. New deployments still start from the indexer's variables in the [Environment Variables tab](#environment-variables-tab). - If the deployment uses an `envio` version older than 3.0.0, values in `config.yaml` (such as RPC URLs) are fixed when it is built, so changing them needs a new deployment. - It isn't available on the Development plan. From the CLI, use [`envio-cloud deployment env`](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#manage-a-deployments-environment-variables). ### Adding a new chain to your indexer To add a new chain, update your `config.yaml` with the new chain configuration and push to the deployment branch. The new deployment will index all configured chains, including the new one. Your previous deployment continues serving data for the existing chains while the new deployment syncs. ### Rolling back to a previous version If a new deployment introduces issues, you can switch back to a previous version from the Envio Cloud dashboard. Navigate to your indexer and select the version you want to activate. From the terminal, promote the older deployment with `envio-cloud deployment promote [organisation]`. See [Promote a Deployment](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#promote-a-deployment). ## Monitoring Once your indexer is deployed, you can monitor its health, performance, and progress using several built-in tools including the dashboard, logs, and alerts. For detailed information about monitoring your deployments, see our **[Monitoring Guide](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring.md)**. ## Continuous Deployment Best Practices and Configuration For a robust deployment workflow, we recommend: 1. **Protected Branches**: Set up branch protection rules for your deployment branch 2. **Pull Request Workflow**: Instead of pushing directly to the deployment branch, use pull requests from feature branches 3. **CI Integration**: Add tests to your CI pipeline to validate indexer functionality before merging to the deployment branch ### Continuous Configuration After deploying your indexer, you can manage its configuration through the `Settings` tab in the Envio Cloud dashboard: #### General Tab The General tab provides core configuration options: - **Config File Path**: Update the location of your indexer's configuration file - **Deployment Branch**: Change which Git branch triggers deployments - **Root Directory**: Modify the root directory for your indexer (useful for monorepos) - **Delete Indexer**: Permanently remove the indexer and all its deployments :::warning Deleting an Indexer Deleting an indexer is permanent and will remove all associated deployments and data. This action cannot be undone. ::: #### Environment Variables Tab Configure environment-specific variables for your indexer: - Add custom environment variables with the `ENVIO_` prefix - Environment variables are securely stored and injected into your indexer at runtime - Useful for API keys, configuration values, and other deployment-specific settings - These are the defaults each new deployment starts from. To change a deployment that is already running, see [Changing environment variables of a running deployment](#changing-environment-variables-of-a-running-deployment) :::tip Environment Variable Best Practices Use environment variables for sensitive data rather than hardcoding values in your repository. Remember to prefix all variables with `ENVIO_`. ::: #### Plans & Billing Tab Manage your indexer's pricing plan and billing: - Select from available pricing plans - Upgrade your plan to suit your needs - View current plan features and limits For detailed pricing information, see our [Pricing & Billing page](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md). #### Alerts Tab Configure monitoring and notification preferences: - Set up notification channels (Discord, Slack, Telegram, Email) - Choose which alert types to receive (Production Endpoint Down, Indexer Stopped Processing, etc.) - Configure deployment notifications (Historical Sync Complete) For complete alert configuration details, see our [Features page](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md#built-in-alerts). :::info Alert Availability Alert configuration is available for indexers deployed with version 2.24.0 or higher on paid production plans. ::: ## Visual Reference Guide The following screenshots show each step of the deployment process: ### Step 1: Select Organization ![Select organisation](https://docs.envio.dev/img/deploying/select-org.png) ### Step 2: Install GitHub App ![Install GitHub App](https://docs.envio.dev/img/deploying/install-github-app.png) ### Step 3: Connect a Repo ![Connect a repo](https://docs.envio.dev/img/deploying/connect-repo.png) ### Step 4: Add the Indexer ![Add the indexer](https://docs.envio.dev/img/deploying/add-indexer.png) ### Step 5: Configure Deployment Settings ![Configure indexer](https://docs.envio.dev/img/deploying/configure-indexer.png) ### Step 6: Create a Deployment Branch ![Create deployment branch](https://docs.envio.dev/img/deploying/create-deployment-branch.webp) ### Step 7: Deploy via Git ![Deploy via Git](https://docs.envio.dev/img/deploying/deploy-via-git.webp) ### Step 8: Indexer Deployed Once deployment completes, your indexer should be live and you should see the overview dashboard below. Full monitoring details are available in our **[Monitoring Guide](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring.md)**. ![Indexer overview](https://docs.envio.dev/img/deploying/indexer-overview.png) ### Step 9: Manage Indexer Configuration Manage indexer configurations and deployments using the sidebar navigation on the left. ![Manage indexer configuration](https://docs.envio.dev/img/deploying/manage-indexer-nav.png) ## Troubleshooting For the most common build and deployment problems, see [Envio Cloud Troubleshooting](https://docs.envio.dev/docs/HyperIndex/envio-cloud-troubleshooting.md). ## Related Documentation - **[Features](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md)** - Learn about all available Envio Cloud features - **[Envio Cloud CLI](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md)** - Deploy and manage indexers from the command line - **[Pricing & Billing](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md)** - Compare plans and see feature availability - **[Overview](https://docs.envio.dev/docs/HyperIndex/hosted-service.md)** - Introduction to Envio Cloud - **[Self-Hosting](https://docs.envio.dev/docs/HyperIndex/self-hosting.md)** - Run your indexer on your own infrastructure - **[Organisation Setup](https://docs.envio.dev/docs/HyperIndex/organisation-setup.md)** - Create an organisation and manage members - **[Troubleshooting](https://docs.envio.dev/docs/HyperIndex/envio-cloud-troubleshooting.md)** - Fix common Envio Cloud build and deployment problems - **[Common Issues](https://docs.envio.dev/docs/HyperIndex/common-issues.md)** - Troubleshoot local and runtime indexer issues --- --- # Envio Cloud Features > Envio Cloud features to manage and secure your hosted blockchain indexer, including deployment tags, IP whitelisting, and API key authentication. Envio Cloud includes several production-ready features to help you manage and secure your blockchain indexer deployments. :::info Plan Availability Most features listed on this page are available for **paid production plans only**. The free development plan has limited features and is designed for testing and development purposes. [View our pricing plans](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md) to see what's included in each plan. ::: ## Deployment Tags Organize and identify your deployments with custom key/value tags. Tags help you categorize deployments by environment, project, team, or any custom attribute that fits your workflow. **How it works:** - Add up to **5 custom tags** per deployment via the deployment overview page - Each tag consists of a **key** (max 20 characters) and a **value** (max 20 characters, automatically lowercased) - Click "+ Add Tag" to create new tags, or click existing tags to edit or delete them **Special `name` Tag:** The `name` tag has special behavior: when set, its value is displayed directly on the deployment list, making it easy to identify deployments at a glance without navigating into each one. **Example Use Cases:** - `name: staging` or `name: production` - quickly identify deployment purpose - `env: staging` / `env: production` - categorize by environment - `team: frontend` - organize by team ownership - `version: v2` - track deployment versions **Benefits:** - Quickly identify deployments in the list view - Organize deployments across multiple projects or environments - Add context and metadata to your deployments - Filter and locate deployments more efficiently ## Security *Availability: Paid plans only* Control who can query your hosted GraphQL endpoint. Envio Cloud offers two complementary methods to restrict access to your indexer: **IP Whitelisting** and **API Key Authentication**. Use either independently or combine both for layered protection. Security is configured **per indexer (project)**, not per deployment. This means your access rules carry over automatically when you promote a new version to production - no reconfiguration needed. ### IP Whitelisting Restrict requests to specific IP addresses. Only clients connecting from an approved IP can query your indexer. **Benefits:** - Enhanced security for sensitive data - Prevent unauthorized access - Control API usage from specific sources - Ideal for production environments with strict access requirements, such as server-to-server backends with stable IP addresses ### API Key Authentication Protect your endpoint with an API key - a secret token that clients include with each request to prove they're authorized. This is the recommended option for browser-based dApps and frontends, where users connect from unpredictable IP addresses that can't be allow-listed. **How it works:** - Enabling authentication provisions an initial key automatically, stored securely - Retrieve your keys from the Security page in the dashboard, or with the [Envio Cloud CLI](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md) - Include a key with every request using the `Authorization` header as a Bearer token: ```bash curl https:///v1/graphql \ -H "Authorization: Bearer " ``` Requests without a valid key are rejected with a `401 Unauthorized` response. **Rotating keys:** An indexer can hold **several named keys at once**, so you can rotate without downtime: add a new key, migrate your clients onto it, then remove the old one. Removing a key revokes it immediately, so migrate before you remove. The last remaining key cannot be removed - turn API key authentication off instead if you want to stop requiring a token. **Benefits:** - Works for browser-based apps and frontends with no fixed IP address - Keys persist across deployment promotions - Rotate credentials without an outage - Both your production endpoint and per-deployment URLs are gated by the same policy, with no way to bypass authentication ## Effect API Cache *Availability: Medium plans and up* Speed up your indexer deployments by caching [Effect API](https://docs.envio.dev/docs/HyperIndex/effect-api) results. When enabled, new deployments will start with preloaded effect data, eliminating the need to re-fetch external data and significantly reducing sync time. **How it works:** 1. **Save a Cache**: From any deployment, click "Save Cache" to capture the current effect data 2. **Configure Settings**: Navigate to Settings > Cache to manage your caches 3. **Enable Caching**: Toggle caching on and select which cache to use for new deployments 4. **Deploy**: New deployments will automatically restore from the selected cache **Key Features:** - **Quick Save**: Save cache directly from the deployment page with one click - **Cache Management**: View, select, and delete caches from the Cache settings page - **Automatic Restore**: New deployments preload effect data from the active cache - **Download Cache**: Download caches for local development, enabling faster iteration without re-fetching external data **Benefits:** - Dramatically faster deployment sync times - Reduced external API calls during indexing - Seamless deployment updates with preserved effect state :::tip Learn more about the Effect API and how caching works in our [Effect API documentation](https://docs.envio.dev/docs/HyperIndex/effect-api). ::: :::info Version Requirement This feature is only available for blockchain indexers deployed with version 2.26.0 or higher. ::: ## Built-in Alerts *Availability: Paid plans only* Stay informed about your indexer's health and performance with our integrated alerting system. Configure multiple notification channels and choose which alerts you want to receive. :::info Version Requirement This feature is only available for blockchain indexers deployed with version 2.24.0 or higher. ::: ### Notification Channels Configure one or multiple notification channels to receive alerts: - **Discord** - **Slack** - **Telegram** - **Email** ## Zero-Downtime Deployments Update your blockchain indexer without any service interruption using our seamless deployment system with static production endpoints. **How it works:** - Deploy new versions alongside your current deployment - Each indexer gets a **static production endpoint** that remains consistent - Use 'Promote to Production' to instantly route the static endpoint to any deployment - All requests to your static production endpoint are automatically routed to the promoted deployment - Maintain API availability throughout upgrades with no endpoint changes required **Key Features:** - **Static Production Endpoint**: Consistent URL that never changes, regardless of which deployment is active - **Instant Switching**: Promote any deployment to production with zero downtime - **Rollback Capabilities**: Quickly switch back to previous deployments if needed - **Seamless Updates**: Your applications continue working without any configuration changes ## Deployment Location Choice *Availability: Dedicated plans only* Choose your primary deployment region to optimize performance and meet compliance requirements, with private and failover regions available on demand. Contact us to set up your regions. **Available Regions:** - **USA** - **EU** - **Japan** **Benefits:** - Reduced latency for your target users - Data residency compliance support - Custom infrastructure configurations - Dedicated infrastructure resources ## Uptime SLA and Support *Availability: Dedicated plans only* Dedicated plans come with a written uptime SLA and round-the-clock support. - **SLA options up to 99.99% uptime**, chosen to fit your workload and backed by service credits - **24/7 priority support**, with on-call cover for critical issues - **Multi-region failover** across your chosen regions ## Direct Database Access *Availability: Dedicated plans only* Access your indexed data directly through SQL queries, providing flexibility beyond the standard GraphQL endpoint. **Use Cases:** - Complex analytical queries - Custom data exports - Advanced reporting and dashboards - Integration with external analytics tools ## Powerful Analytics Solution *Availability: Dedicated plans only (additional cost)* A comprehensive analytics platform that automatically pipes your indexed data from PostgreSQL into ClickHouse (approximately 2 minutes behind real-time) and provides access through a hosted Metabase instance. :::info ClickHouse storage in HyperIndex V3 Indexers can also write entities directly to ClickHouse by enabling it as a [storage backend](https://docs.envio.dev/docs/HyperIndex/configuration-file#storage) in `config.yaml`. That is separate from the hosted analytics pipeline described here, which the Envio team enables per deployment on Dedicated plans. ::: **Technical Architecture:** - **Data Pipeline**: Automatic replication from PostgreSQL to ClickHouse - **Near Real-time**: Data available in an analytics platform within ~2 minutes - **Frontend**: Hosted Metabase instance for visualization and analysis - **Performance**: ClickHouse optimized for analytical queries on large datasets **Capabilities:** - Interactive, customizable dashboards through Metabase - Variety of visualization options (charts, graphs, tables, maps) - Fast analytical queries on large datasets via ClickHouse - Ad-hoc SQL queries for data exploration - Automated alerts based on data thresholds - Team collaboration and report sharing - Export capabilities for further analysis :::tip For deployment instructions and limits, see our [Deployment Guide](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md). For pricing and feature availability by plan, see our [Billing & Pricing page](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md). ::: --- # Envio Cloud CLI > Command-line interface for managing and monitoring your indexers on Envio Cloud. The `envio-cloud` CLI is a command-line tool for interacting with Envio Cloud. It enables you to deploy, manage, and monitor your blockchain indexers directly from the terminal - making it particularly useful for CI/CD pipelines, scripting, and agentic workflows. For feature requests, please reach out to us on [Discord](https://discord.gg/envio). ## Installation ```bash npm install -g envio-cloud ``` Or run directly without installation: ```bash npx envio-cloud ``` ## Shell Completion The `envio-cloud` CLI ships with shell completion scripts for `bash`, `zsh`, `fish`, and `powershell`. Completion includes dynamic suggestions for **indexer names** and **commit hashes**, so you can tab-complete them directly from the terminal. Run the one-liner for your shell to install completions: | Shell | One-liner | | --- | --- | | `zsh` | `echo 'source <(envio-cloud completion zsh)' >> ~/.zshrc` | | `bash` | `envio-cloud completion bash > ~/.local/share/bash-completion/completions/envio-cloud` | | `fish` | `envio-cloud completion fish > ~/.config/fish/completions/envio-cloud.fish` | | `powershell` | `envio-cloud completion powershell >> $PROFILE` | Restart your shell (or `source` your profile) for the completions to take effect. Run `envio-cloud completion --help` for further options. ## Authentication You sign in with GitHub. Your GitHub account must already have an Envio account, so sign in at [envio.dev](https://envio.dev/app/login) once before you use the CLI. ### Log In ```bash envio-cloud login ``` `envio-cloud login` uses the first credential it finds: 1. The `--token` flag 2. The `ENVIO_GITHUB_TOKEN` environment variable 3. The token of a signed-in [GitHub CLI](https://cli.github.com/) (`gh auth token`) 4. Browser-based authentication via envio.dev The session lasts 30 days. Credentials are stored at `~/.envio-cloud/auth.json`. When the session expires, commands fail with `session expired`, and plain `envio-cloud login` still reports you as logged in. Run `envio-cloud logout` and then `envio-cloud login`, or log in again with `--token`, `ENVIO_GITHUB_TOKEN` or a signed-in GitHub CLI. ### Token-Based Login (CI/CD) ```bash envio-cloud login --token ghp_YOUR_TOKEN ``` Or using an environment variable: ```bash export ENVIO_GITHUB_TOKEN=ghp_YOUR_TOKEN envio-cloud login ``` Required GitHub token scopes: `read:org`, `read:user`, `user:email`. `envio-cloud login` and `envio-cloud token` exit with code `0` even when the token is rejected or you are logged out. To check the session from a script, run a command that needs it, such as `envio-cloud indexer list -o json`, which exits with `1` when you are not logged in. ### Session Management ```bash envio-cloud token # Check current session envio-cloud logout # Remove credentials ``` ## Context Management Like `kubectl` namespaces, `envio-cloud` lets you store default values for organisation and indexer so you don't have to pass them on every command. Flags (`--org`, `--indexer`) always override stored context. ```bash # Set defaults envio-cloud config set-org myorg envio-cloud config set-indexer myindexer # View current context envio-cloud config get-context # Commands now use defaults automatically envio-cloud deployment status abc1234 # org and indexer from context envio-cloud indexer settings get # both from context # Flags override context envio-cloud deployment status abc1234 --org other-org # Clear stored context envio-cloud config clear ``` Context is stored at `~/.envio-cloud/context.json`. Resolution priority: 1. Explicit positional arguments 2. `--org` / `--indexer` flags 3. Stored context 4. GitHub login (organisation only) | Command | Description | | --- | --- | | `config set-org ` | Set default organisation | | `config set-indexer ` | Set default indexer | | `config get-context` | Show current defaults and where they come from | | `config clear` | Remove all stored defaults | ## Deploy From an Agent or CI Envio Cloud builds from GitHub, so a script or AI agent deploys by pushing a commit and then watching it with the CLI. Two steps need a person in a browser, once: sign in at [envio.dev](https://envio.dev/app/login) with GitHub, and install the Envio Deployments GitHub App on the repository (see [Deploying Your Indexer](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md)). After that, the whole loop runs from the terminal: ```bash envio-cloud login # --token, ENVIO_GITHUB_TOKEN, or a signed-in gh CLI envio-cloud repos -o json # the repository must be listed here envio-cloud indexer add --name my-indexer --repo my-repo --branch main --yes envio-cloud indexer get my-indexer -o json | jq -e .data # add can exit 0 on failure, so check git push origin main # with auto-deploy on, a push starts a deployment COMMIT=$(git rev-parse HEAD | cut -c1-7) envio-cloud indexer commits my-indexer -o json # status of the pushed commit envio-cloud deployment logs my-indexer $COMMIT --build # build logs envio-cloud deployment status my-indexer $COMMIT --watch-till-synced --timeout 30m # waits until synced (exit 124 if not yet) envio-cloud deployment endpoint my-indexer $COMMIT # GraphQL URL, once the commit is active ``` - Find the commit in `indexer commits` and read its `status`. `pending` and `deploy` mean wait, `active` means it deployed, and any other value explains what to fix. See [List Recent Commits](#list-recent-commits). - `deployment status --watch-till-synced` exits `0` once every chain is ready. Bound the wait with `--timeout`: when it runs out, the command exits with code `124`. See [Deployment Status](#deployment-status). - Ask for the endpoint after the commit is `active`. Before the deployment is scheduled, `deployment endpoint` has no URL to print and exits with code `2`. - Pass `--yes` to every command that asks for confirmation. See [Confirmation Prompts](#confirmation-prompts). - Check the exit code before you parse the JSON. See [Exit Codes](#exit-codes). ## Commands ### Indexer Commands #### List Indexers Lists indexers across every organisation you are a member of. Use `--org` to scope to a single organisation. Requires authentication. ```bash envio-cloud indexer list envio-cloud indexer list --org myorg envio-cloud indexer list --limit 10 envio-cloud indexer list -o json ``` | Flag | Description | | --- | --- | | `--org` | Scope to a single organisation you belong to | | `--limit` | Limit number of results (default: 1000) | | `-o, --output` | Output format (`json`) | `indexer ls` is an alias. #### Get Indexer Details ```bash envio-cloud indexer get [organisation] envio-cloud indexer get myindexer myorg -o json envio-cloud indexer get myindexer --org myorg ``` Organisation can be omitted if set via context. Requires authentication - you can only view indexers in organisations you are a member of. The output lists the indexer's deployments, each with its commit hash, tier and GraphQL endpoint. With `-o json`, an indexer that doesn't exist returns `{"ok": true}` with no `data` field. #### Add an Indexer ```bash envio-cloud indexer add --name my-indexer --repo my-repo --branch main --yes envio-cloud indexer add --name my-indexer --repo my-repo --branch main --tier development --yes envio-cloud indexer add --name my-indexer --repo my-repo --dry-run ``` The repository must already be connected to your organisation through the Envio Deployments GitHub App. `envio-cloud repos` lists the connected repositories. The indexer is added to the organisation from `--org`, then the stored context, then your GitHub login. `indexer add` asks for confirmation. Pass `--yes` in scripts and agent sessions: without an answer it prints "Operation cancelled." and exits with code `0` without adding the indexer. The default branch is `envio`, so set `--branch` to the branch you push to. | Flag | Description | Default | | --- | --- | --- | | `-n, --name` | Indexer name (required) | - | | `-r, --repo` | Repository name (required) | - | | `-b, --branch` | Deployment branch | `envio` | | `-d, --root-dir` | Root directory | `./` | | `-c, --config-file` | Config file path | `config.yaml` | | `--description` | Indexer description | the indexer name | | `-t, --tier` | Pricing tier (`development`, `production`) | `development` | | `-a, --access-type` | Access type (`public`, `private`) | `public` | | `-e, --env-file` | Environment file | - | | `--auto-deploy` | Enable auto-deploy | `true` | | `--skip-repo-check` | Skip the check that the repository is connected | - | | `--dry-run` | Preview without creating | - | | `-y, --yes` | Skip confirmation prompts | - | | `-o, --output` | Print the indexer configuration as JSON before adding it | - | `--env-file` prints the variable values in its output. To keep them out of logs, add the indexer without it, then run `envio-cloud indexer env import` (see [Manage Environment Variables](#manage-environment-variables)), which masks them. #### Delete an Indexer Permanently delete an indexer and **all** of its deployments. Requires typing the indexer name to confirm. ```bash envio-cloud indexer delete myindexer myorg envio-cloud indexer delete myindexer --org myorg envio-cloud indexer delete myindexer myorg --yes # skip confirmation for CI/CD ``` :::danger This action cannot be undone. All deployments, data, and configuration for the indexer will be permanently removed. ::: #### View and Modify Settings ```bash # View current settings envio-cloud indexer settings get myindexer myorg # Modify settings (only specified flags are changed) envio-cloud indexer settings set myindexer myorg --branch main envio-cloud indexer settings set myindexer myorg --auto-deploy=false envio-cloud indexer settings set myindexer myorg --config-file config.yaml --branch develop ``` | Flag (set) | Description | | --- | --- | | `--branch` | Git branch for deployments | | `--config-file` | Path to config file | | `--root-dir` | Root directory within the repository | | `--auto-deploy` | Enable or disable auto-deploy on push | | `--description` | Indexer description | | `--access-type` | `public` or `private` | #### List Recent Commits Show recent commits pushed to the indexer's repository, along with their processing status. Commits with status `inactive` can be deployed manually with `envio-cloud deployment deploy`. ```bash envio-cloud indexer commits myindexer myorg envio-cloud indexer commits myindexer --org myorg --limit 20 envio-cloud indexer commits myindexer myorg -o json ``` | Flag | Description | | --- | --- | | `--limit` | Maximum number of commits to show (default: 10) | | `-o, --output` | Output format (`json`) | With `-o json`, each commit has `commit_hash`, `commit_message`, `branch`, `created_time`, `status`, `envio_version` and `repository_id`. The `status` is how you find out whether a push deployed, and why not: | Status | Dashboard label | Meaning | | --- | --- | --- | | `pending` | Processing | The commit is still being processed | | `deploy` | Deploying | A deployment of this commit is starting | | `active` | Active | The commit has a deployment | | `inactive` | - | Not deployed, for example because auto-deploy is off or the indexer has reached its plan's deployment or indexing-hour limit. Deploy it with `deployment deploy` | | `deletingDeploymemt` | Deleting | The commit's deployment is being deleted. The value is spelled this way | | `configFileMissing` | Missing config | The config file was not found. Check the root directory and config file settings | | `packageJsonMissing` | Missing package.json | `package.json` was not found. Check the root directory setting | | `failedToDownload` | Failed to download | Envio Cloud could not download the commit from GitHub | | `versionNotSupported` | Invalid version | The `envio` version is not supported. See the [requirements](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#requirements) | | `clickhouseConfigMismatch` | ClickHouse mismatch | `storage.clickhouse` in the config doesn't match the indexer's setup | | `clickhouseVersionNotSupported` | ClickHouse version | ClickHouse needs `envio` 3.0.2 or newer | #### Manage Environment Variables These are the indexer's variables: the defaults each new deployment starts from. Changes take effect on the next deployment. To change the variables of a deployment that is already running, see [Manage a Deployment's Environment Variables](#manage-a-deployments-environment-variables). Keys must start with `ENVIO_` and use only letters, digits and underscores. Keys managed by the platform, such as `ENVIO_PG_*`, can't be set, and values can't contain commas. ```bash # List variables (values masked by default) envio-cloud indexer env list myindexer myorg envio-cloud indexer env list myindexer myorg --show-values # Set one or more variables envio-cloud indexer env set myindexer myorg ENVIO_API_KEY=abc123 ENVIO_DEBUG=true # Remove a variable envio-cloud indexer env delete myindexer myorg ENVIO_DEBUG # Bulk import from a .env file envio-cloud indexer env import myindexer myorg --file .env ``` The `.env` file format is one `KEY=VALUE` per line. Lines starting with `#` are ignored. `env list`, `env set` and `env import` mask values in their normal output. With `-o json`, `env list` and `env set` print the full values, so keep that output out of shared logs. #### View the Security Configuration Both access controls for an indexer - API key authentication and the IP whitelist - are shown by a single command: ```bash envio-cloud indexer security get myindexer myorg envio-cloud indexer security get myindexer myorg -o json ``` API keys are never printed here. Use `api-key list --show-tokens` to reveal them. #### Configure API Key Authentication Require clients to send an `Authorization: Bearer ` header on every request to your indexer's GraphQL endpoints. ```bash # Turn it on: an initial key is provisioned automatically envio-cloud indexer security api-key enable myindexer myorg # Check whether it is on, and which keys exist (never prints tokens) envio-cloud indexer security api-key status myindexer myorg # List keys, then reveal the tokens envio-cloud indexer security api-key list myindexer myorg envio-cloud indexer security api-key list myindexer myorg --show-tokens # Turn it off: the endpoints stop requiring a token envio-cloud indexer security api-key disable myindexer myorg ``` Tokens are only requested from the API when `--show-tokens` is passed, so a plain listing never puts a secret on the wire. Query an endpoint with a key. Read the URL from `deployment endpoint` rather than hardcoding a host - it differs per deployment: ```bash curl -X POST "$(envio-cloud deployment endpoint myindexer abc1234 myorg)" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ENVIO_API_KEY" \ -d '{"query":"{ __typename }"}' ``` ##### Rotating Keys An indexer can hold several named keys at once, which is how you rotate without downtime: add a new key, migrate your clients onto it, then revoke the old one. ```bash envio-cloud indexer security api-key add myindexer myorg production-2026-08 # ...migrate clients to the new key... envio-cloud indexer security api-key remove myindexer myorg production-2026-07 ``` Key names may contain letters, digits, `-`, `.` and `_`, must start with a letter or digit, and must be 63 characters or fewer. :::info Removing a key revokes it **immediately** - any client still using it loses access. A newly added key shows as `provisioning` for a few seconds before its token is available. The last remaining key cannot be removed; disable API key authentication instead. ::: :::note API key authentication requires a Production tier plan or above. ::: #### Configure IP Whitelisting Restrict access to your indexer's GraphQL endpoint by IP address. Supports IPv4 addresses and CIDR notation. ```bash # View the current configuration envio-cloud indexer security get myindexer myorg # Add IPs to the whitelist envio-cloud indexer security add-ip myindexer myorg 203.0.113.50 envio-cloud indexer security add-ip myindexer myorg 10.0.0.0/8 # Enable IP whitelisting (make sure to add IPs first) envio-cloud indexer security enable myindexer myorg # Disable IP whitelisting envio-cloud indexer security disable myindexer myorg # Restrict whitelisting to production deployments only envio-cloud indexer security set-prod-only myindexer myorg true # Remove an IP envio-cloud indexer security remove-ip myindexer myorg 203.0.113.50 ``` :::tip Add your IP addresses **before** enabling whitelisting - otherwise you may lock yourself out. The CLI will warn you if you try to enable whitelisting with no IPs configured. ::: ### Deployment Commands All deployment commands accept arguments as ` [organisation]`. Organisation and indexer can be omitted if set via `envio-cloud config`. All of them require authentication, and you can only see deployments in organisations you are a member of. The commit is the first 7 characters of the commit hash, as `envio-cloud indexer commits` shows it. In a script, use `git rev-parse HEAD | cut -c1-7`. #### Deployment Status ```bash envio-cloud deployment status [organisation] envio-cloud deployment status myindexer abc1234 myorg --watch-till-synced envio-cloud deployment status myindexer abc1234 myorg --watch-till-synced --timeout 10m envio-cloud deployment status myindexer abc1234 myorg -o json ``` Shows how far your deployment has synced on each chain: the chain's latest block, the last block your indexer has processed, the number of events, and whether the chain is ready, plus an overall percentage. A chain is ready once your indexer has caught up with it, or has reached its end block if you set one. `deployment metrics` and `deployment m` do the same thing. | Flag | Description | | --- | --- | | `--watch-till-synced` | Keep checking until every chain is ready, then exit with code `0` | | `--timeout` | Stop watching after this long, such as `100s` or `10m`, and exit with code `124`. Only with `--watch-till-synced` | | `-o, --output` | Output format (`json`) | `--watch-till-synced` waits while the deployment starts up and stops on errors that waiting can't fix. Without `--timeout` it has no time limit, so in a script pass `--timeout`. Exit code `124` means the deployment isn't synced yet: run the command again. With `-o json` the command prints the current status once, so `--timeout` can't be combined with it. `data` has one entry per chain: ```json { "ok": true, "data": [ { "chain_id": 1, "block_height": 23000000, "latest_processed_block": 22999990, "num_events_processed": 120000, "is_ready": true } ] } ``` The example shows the fields you'll usually need; each entry has a few more. An empty `data` list means the deployment hasn't started syncing yet. If your indexer uses an older version of `envio`, the command fails and asks you to upgrade `envio` to the latest version. #### Deployment Info ```bash envio-cloud deployment info [organisation] envio-cloud deployment info myindexer abc1234 myorg -o json ``` Shows whether caching is enabled and whether the database is directly exposed. With `-o json`, `data` is `{"cacheEnabled": , "dbExposed": ""}`. #### Get Query Endpoint Returns the GraphQL query endpoint URL for a deployment. The URL is read from the deployment record, so it always matches where the deployment runs. Output is a bare URL, so it composes cleanly with shell scripting. A deployment that hasn't been scheduled yet has no endpoint, and the command fails with exit code `2`. ```bash envio-cloud deployment endpoint [organisation] envio-cloud deployment endpoint myindexer abc1234 myorg envio-cloud deployment endpoint myindexer abc1234 myorg -o json ``` With `-o json`, `data` has `query_endpoint`, `indexer_id`, `commit_hash` and `organisation_id`. Use the URL directly in a `curl` query. If the indexer has API key authentication on, add the `Authorization` header shown in [Configure API Key Authentication](#configure-api-key-authentication): ```bash curl "$(envio-cloud deployment endpoint myindexer abc1234 myorg)" \ -H "Content-Type: application/json" \ -d '{"query": "{ _meta { chainId isReady } }"}' ``` | Flag | Description | | --- | --- | | `-o, --output` | Output format (`json`) | The `ep` alias is also available: `envio-cloud deployment ep `. #### Manually Deploy a Commit Trigger a deployment of a specific commit - the CLI equivalent of the **Deploy** button in the Envio Cloud dashboard. Combined with disabling auto-deploy, this gives you full manual control over what gets deployed and when. ```bash # Turn off automatic deploys on push envio-cloud indexer settings set myindexer myorg --auto-deploy=false # See recent commits and their statuses ('inactive' commits can be deployed) envio-cloud indexer commits myindexer myorg # Deploy a specific commit envio-cloud deployment deploy myindexer abc1234 myorg ``` Only commits with status `inactive` can be deployed. If a commit cannot be deployed (already active, still processing, missing config file, unsupported Envio version, etc.), the CLI explains why and exits with code `1`. The same happens when the indexer already has as many deployments as its plan allows: the CLI lists them, marks the production one, and asks you to delete one that isn't in production first. See the [commit statuses](#list-recent-commits). Requires confirmation (`y/N`); skip with `--yes` for CI/CD. #### Promote a Deployment Promote a deployment to the production endpoint. This is also how you roll back: promote an older deployment. Requires confirmation (`y/N`). ```bash envio-cloud deployment promote [organisation] envio-cloud deployment promote myindexer abc1234 myorg --yes ``` #### Delete a Deployment Permanently delete a deployment. Requires typing the indexer name to confirm. ```bash envio-cloud deployment delete [organisation] envio-cloud deployment delete myindexer abc1234 myorg --yes ``` :::danger This action cannot be undone. The deployment and its data will be permanently removed. ::: #### Restart a Deployment Restart a running deployment. There is a 10-minute cooldown between restarts. ```bash envio-cloud deployment restart [organisation] envio-cloud deployment restart myindexer abc1234 myorg --yes ``` #### Manage a Deployment's Environment Variables Change the environment variables of a deployment that is already running, without a new deployment. The indexer restarts with the new variables and resumes from its last checkpoint, with no resync, and the GraphQL endpoint stays available. This works on running, finished and paused deployments; a paused deployment uses the new variables when it is resumed. It isn't available on the Development plan. These are the deployment's own variables. The indexer's variables ([`indexer env`](#manage-environment-variables)) are not changed, so new deployments still start from them. ```bash # Keys the deployment runs with (values only with --show-values) envio-cloud deployment env list myindexer abc1234 myorg envio-cloud deployment env list myindexer abc1234 myorg --show-values # Add or change variables; other variables are kept envio-cloud deployment env set myindexer abc1234 myorg ENVIO_RPC_URL=https://... --wait # Secrets: read KEY=VALUE lines from a file, keeping values out of shell history envio-cloud deployment env set myindexer abc1234 myorg --from-file .env.secrets envio-cloud deployment env set myindexer abc1234 myorg --from-file - --yes < .env.secrets # Remove variables by key envio-cloud deployment env delete myindexer abc1234 myorg ENVIO_DEBUG --yes # Preview a change without making it envio-cloud deployment env set myindexer abc1234 myorg ENVIO_DEBUG=true --dry-run -o json # State of the last update, following it until it ends envio-cloud deployment env status myindexer abc1234 myorg --wait ``` | Flag | Commands | Description | | --- | --- | --- | | `--show-values` | `list` | Show values. Without it, only keys are printed, also with `-o json` | | `--from-file` | `set` | Read `KEY=VALUE` lines from a file, or `-` for stdin. Stdin can't also answer the confirmation, so `-` needs `--yes` (or `--dry-run`) | | `--dry-run` | `set`, `delete` | Show the change without making it | | `--wait` | `set`, `delete`, `status` | Wait until the update is applied or fails | | `--timeout` | `set`, `delete`, `status` | How long `--wait` waits (default `35m`) | | `-y, --yes` | `set`, `delete` | Skip the confirmation prompt | | `-o, --output` | all | Output format (`json`) | `set` and `delete` show the change as keys only and ask for confirmation. An update usually takes about a minute. Values passed as `KEY=VALUE` arguments end up in your shell history, the process list and CI logs. For secrets, use `--from-file`. Rules: - Keys must start with `ENVIO_` and use only letters, digits and underscores. Keys managed by the platform, such as `ENVIO_PG_*`, can't be set. `list` marks any that are present; the next update removes them. - If the deployment's `envio` version is older than 3.0.0 (including 3.0.0 pre-releases), `config.yaml` values are resolved when the deployment is built. Changing a variable used in `config.yaml`, such as an RPC URL, then needs a new deployment, and the CLI warns about it. - Only one update runs at a time. If the variables change after the command reads them (another update from the CLI, the dashboard or an agent), the update is refused with `changed_since_read` instead of undoing that change: run the command again. Exit codes for `set` and `delete`: | Code | Meaning | | --- | --- | | `0` | The update started, or was applied with `--wait` | | `1` | Refused: nothing was changed. The message says why | | `2` | The request could not be completed | | `3` | The update failed while being applied. The deployment kept its previous variables (`--wait`) | | `4` | `--wait` timed out while the update was still being applied | `status --wait` exits with `0` when the update was applied (or there is none), `3` when it failed or never reported a result, and `4` on timeout. Without `--wait`, `status` exits with `0` whatever the state. With `-o json`, a refusal carries a stable `reason`, such as `no_changes`, `protected_keys`, `invalid_keys`, `already_in_progress`, `changed_since_read`, `status_not_editable` or `development_plan`, and a started update carries the `actionId` that `--wait` follows. You can make the same change in the dashboard, from the deployment's **Settings** page. #### Deployment Logs Show build or runtime logs for a deployment. ```bash envio-cloud deployment logs [organisation] envio-cloud deployment logs myindexer abc1234 myorg --build envio-cloud deployment logs myindexer abc1234 myorg --level error,warn envio-cloud deployment logs myindexer abc1234 myorg --since 24h envio-cloud deployment logs myindexer abc1234 myorg --follow envio-cloud deployment logs myindexer abc1234 myorg -o json ``` | Flag | Description | | --- | --- | | `--build` | Show build logs instead of runtime logs | | `--level` | Filter by log level, comma-separated: `trace`, `debug`, `info`, `warn`, `error` | | `--limit` | Max number of log lines (default and maximum: 100) | | `--since` | How far back to look, such as `30m`, `1h` or `7d`. Runtime logs default to the last 30 minutes, up to 7 days. Build logs have no window unless you pass one, up to 30 days | | `--follow` | Poll for new logs every 10 seconds | | `-o, --output` | Output format (`json`): `data` is a list of log entries, oldest first | `--follow` only works without `-o json`. If `deployment logs` finds no deployment for a commit, read the commit's status with [`indexer commits`](#list-recent-commits). A failed check, such as `configFileMissing`, shows there. #### Manage Deployment Tags Organize deployments with custom key/value tags (see [Production Features](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md) for how tags appear in the dashboard). ```bash # List tags on a deployment envio-cloud deployment tags list [organisation] # Set one or more tags (existing keys are overwritten, other tags preserved) envio-cloud deployment tags set [organisation] KEY=VALUE [KEY=VALUE ...] envio-cloud deployment tags set myindexer abc1234 myorg env=staging team=backend # Remove a tag by key envio-cloud deployment tags remove [organisation] KEY envio-cloud deployment tags remove myindexer abc1234 myorg env ``` Tag rules: - Deployments support up to **5 custom tags** - Keys and values are limited to **20 characters**; values are automatically lowercased - Keys starting with `envio` are **reserved** for system tags and are hidden from output - The special `name` tag is displayed directly on the deployment list in the dashboard ### Repository Commands #### List Repositories ```bash envio-cloud repos envio-cloud repos -o json ``` Lists the repositories connected to your organisation and the indexers in each. Requires authentication. ## Confirmation Prompts Dangerous commands require confirmation before executing: | Command | Confirmation type | | --- | --- | | `indexer add` | y/N prompt | | `indexer delete` | Type the indexer name | | `deployment delete` | Type the indexer name | | `deployment deploy` | y/N prompt | | `deployment promote` | y/N prompt | | `deployment restart` | y/N prompt | | `deployment env set`, `deployment env delete` | y/N prompt | | `indexer security api-key enable`, `disable`, `remove` | y/N prompt | | `indexer security enable` | y/N prompt, only when no IPs are whitelisted | Skip a prompt with the `--yes` / `-y` flag for CI/CD usage. Two prompts have no `--yes`: `security enable` asks only when the whitelist is empty, so add IPs with `security add-ip` first, and `indexer add` asks when it can't check the repository, which `--skip-repo-check` skips. Without an answer, a prompt cancels the command. `indexer add` then exits with code `0`, the others with code `1`. ## Global Flags | Flag | Description | | --- | --- | | `--org` | Override default organisation | | `--indexer` | Override default indexer | | `-q, --quiet` | Suppress informational messages | | `--config` | Specify config file path (default: `$HOME/.envio-cloud.yaml`) | | `-h, --help` | Display command help | | `-v, --version` | Show CLI version (`envio-cloud --version`) | `-o, --output` is set per command, not globally. See [JSON Output](#json-output). ## JSON Output Most commands support JSON output via the `-o json` flag, making the CLI easy to integrate into scripts and automation pipelines. Informational messages go to stderr, so stdout holds only the JSON. **Success response:** ```json {"ok": true, "data": [ ... ]} ``` **Error response:** ```json {"ok": false, "error": "error message"} ``` Exceptions: - `login`, `logout`, `token`, `config`, `completion`, the IP whitelist commands (`security enable`, `disable`, `add-ip`, `remove-ip`, `set-prod-only`) and `security api-key enable`, `disable` and `remove` have no `-o` flag. - `repos -o json` prints a bare list of repositories, with no `ok`/`data` envelope, and a plain-text message when there are none. - `indexer add -o json` prints the configuration it is about to send, with no envelope, and then adds the indexer. Add `--dry-run` to stop there. - Some argument errors, such as deploying a commit that isn't `inactive`, print only to stderr. Check the exit code first, then parse stdout. **Example with jq:** ```bash # Get event count for a deployment envio-cloud deployment status myindexer abc1234 myorg -o json | jq '.data[].num_events_processed' # List all indexer IDs in an org envio-cloud indexer list --org myorg -o json | jq -r '.data[].indexer_id' ``` ## Exit Codes | Code | Meaning | | --- | --- | | `0` | Success | | `1` | User error (invalid arguments, authentication required, a cancelled prompt) | | `2` | API or server error | | `124` | `deployment status --watch-till-synced --timeout`: the time ran out before the deployment synced | `deployment env` has its own codes `3` and `4`; see [Manage a Deployment's Environment Variables](#manage-a-deployments-environment-variables). `login`, `token` and `indexer add` print some errors but still exit with code `0`. After `indexer add`, confirm the indexer exists with `envio-cloud indexer get -o json`. ## Related Documentation - **[Envio Cloud Overview](https://docs.envio.dev/docs/HyperIndex/hosted-service.md)** - Introduction to Envio Cloud - **[Deploying Your Indexer](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md)** - Step-by-step deployment guide via the dashboard - **[Production Features](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md)** - Tags, IP whitelisting, caching, and alerts - **[Monitoring](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring.md)** - Dashboard monitoring and alerts - **[Envio CLI](https://docs.envio.dev/docs/HyperIndex/cli-commands.md)** - Local development CLI reference - **[npm package](https://www.npmjs.com/package/envio-cloud)** - Latest version and changelog --- # Monitoring Your Blockchain Indexer > Track sync progress, deployment status, logs and errors for an indexer on Envio Cloud, and route alerts to Discord, Slack, Telegram, email or any webhook. Once your blockchain indexer is deployed, Envio Cloud provides several tools to help you monitor its health, performance, and progress. ## Dashboard Overview The main dashboard provides real-time visibility into your indexer's status: **Key Metrics Displayed:** - **Active Deployments**: Track how many deployments are currently running (e.g., 1/3 active) - **Deployment Status**: See whether your indexer is actively syncing, stopped, or has encountered errors - **Recent Commits**: View your deployment history with commit information and active status - **Usage Statistics**: Monitor your indexing hours, storage usage, and query rate limits - **Chain Progress**: Real-time progress bars showing sync status for each chain - **Events Processed**: Track the total number of events your indexer has processed - **Historical Sync Time**: See how long it took to complete the initial sync ## Deployment Status Indicators Each deployment shows clear status information: - **Syncing**: Indexer is actively processing blocks and events - **Syncing Stopped**: Indexer has stopped processing (may indicate an error or a breach of [plan limits](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#development-plan-fair-usage-policy)) - **Historical Sync Complete**: Initial sync finished, indexer is processing new blocks in real-time ## Error Detection and Troubleshooting When issues occur, the dashboard displays failure information to help you quickly diagnose problems. **Failure Information Includes:** - **Error Type**: Clear indication of the failure (e.g., "Indexing Has Stopped") - **Error Description**: Details about what went wrong (e.g., "Error during event handling") - **Next Steps**: Guidance on where to find more information (error logs) - **Support Access**: Direct link to Discord for assistance ## Logging _Full logging supported is integrated and configured by Envio via Envio Cloud_ Access detailed logs to troubleshoot issues and monitor indexer behavior: - **Real-time Logs**: View live logs as your indexer processes events - **Error Logs**: Quickly identify and diagnose errors in your event handlers - **Deployment Logs**: Track the deployment process and startup sequence - **Filter Log Levels**: Find specific log entries to debug issues Access logs through the "Logs" button on your deployment page. ## Built-in Alerts Configure proactive monitoring through the Alerts tab to receive notifications before issues impact your users: - **Critical Alerts**: Get notified when your production endpoint goes down - **Warning Alerts**: Receive alerts when your indexer stops processing blocks - **Info Alerts**: Stay informed about indexer restarts and error logs - **Deployment Notifications**: Know when historical sync completes For detailed alert configuration, see the [Deployment Guide](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#alerts-tab) and our [Features page](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md#built-in-alerts). ### Notification Channels Envio Cloud supports the following notification channels: | Channel | Configuration | | --- | --- | | **Discord** | Webhook URL, optional bot username | | **Slack** | Webhook URL, channel name, optional bot username | | **Telegram** | Bot API token, chat ID | | **Email** | One or more email addresses | | **Webhook** | Any HTTP endpoint URL (works with incident.io, PagerDuty, Opsgenie, etc.) | Channels are configured at the organisation level via **Settings > Notification Channels**, then subscribed to alerts on individual indexers. ### Webhook Channel The webhook channel sends a structured JSON payload via HTTP POST to any URL you provide. This makes it compatible with any service that accepts webhook-based alerts. **Custom Headers (optional):** When creating a webhook channel, you can add custom HTTP headers that will be sent with every request. This is useful for services that require authentication via API keys or bearer tokens - for example, incident.io requires an `Authorization: Bearer ` header. :::warning The webhook channel is a generic HTTP endpoint. It is not guaranteed to work with all third-party services - please see the [integration guides below](#webhook-integrations) for supported setup instructions. If you need help integrating with a specific service, please reach out on the [Envio Discord](https://discord.gg/envio). ::: **Webhook Payload Schema:** ```json { "title": "IndexerStoppedProcessing — my-indexer (abc123)", "status": "firing", "severity": "warning", "description": "Indexer my-indexer has stopped processing blocks for 10+ minutes (commit: abc123)", "source_url": "https://envio.dev/app/my-org/my-indexer/abc123", "alert_id": "my-org/proj456/my-indexer/IndexerStoppedProcessing", "metadata": { "organisationId": "my-org", "indexerName": "my-indexer", "commit": "abc123", "labels": { "envio_alert_name": "IndexerStoppedProcessing", "severity": "warning" }, "annotations": { "summary": "Indexer my-indexer has stopped processing blocks for 10+ minutes", "description": "The indexer has not processed any blocks in the last 10 minutes." }, "startsAt": "2025-05-15T12:00:00Z", "type": "alert" } } ``` :::note The `endsAt` field is only included when the alert has resolved. Firing alerts omit this field. ::: | Field | Description | | --- | --- | | `title` | Alert name (e.g. `IndexerStoppedProcessing`, `ProdEndpointDown`) | | `status` | `"firing"` or `"resolved"` | | `severity` | `"critical"`, `"warning"`, or `"info"` | | `description` | Human-readable summary of the alert | | `source_url` | Link to the deployment in the Envio dashboard | | `alert_id` | Unique key for deduplication: `orgId/projectId/indexerName/alertName` | | `metadata` | Additional context including labels, timestamps, and deployment info | ### Webhook Integrations ### incident.io [incident.io](https://incident.io) can receive Envio alerts via their [Custom HTTP Sources](https://docs.incident.io/alerts/custom-http-sources) feature. **Step 1: Create a Custom HTTP Source in incident.io** In the incident.io dashboard, Follow the incident.io [custom HTTP sources](https://docs.incident.io/alerts/custom-http-sources) guide to setup the webhook integration. **Step 2: Configure the Transform Expression** Paste this ES5 JavaScript transform expression to map the Envio payload into incident.io's format: ```javascript var severity = body.severity || "info"; var severityMap = { critical: 1, warning: 2, info: 3 }; return { title: body.title, status: body.status, description: body.description || "", source_url: body.source_url || "", metadata: { severity: severity, severity_rank: severityMap[severity] || 3, organisation_id: body.metadata.organisationId, indexer_name: body.metadata.indexerName, commit: body.metadata.commit, source: "envio", type: body.metadata.type, starts_at: body.metadata.startsAt, ends_at: body.metadata.endsAt || "", labels: JSON.stringify(body.metadata.labels || {}), annotations: JSON.stringify(body.metadata.annotations || {}) } }; ``` **Step 3: Set the Deduplication Key Path** Set the dedup key path to `alert_id`. This ensures alerts are grouped per indexer and auto-resolve when the status changes to `"resolved"`. **Step 4: Add the Webhook Channel in Envio** 1. Go to **Settings > Notification Channels** in the Envio Cloud dashboard 2. Click **Add Channel** and select **Webhook** 3. Paste the webhook URL from incident.io 4. Expand **Custom Headers** and add the authorization header: - **Header name**: `Authorization` - **Value**: Copy the full `Bearer ` value from the incident.io source config 5. Subscribe your indexer's alerts to this channel :::tip Proactive Monitoring Set up multiple notification channels (**Paid Plans Only**) to ensure you never miss critical alerts about your indexer's health. ::: ## Visual Reference ### Dashboard Overview ![Dashboard overview](https://docs.envio.dev/img/monitoring/dashboard-overview.png) ### Chain Progress ![Chain progress bars](https://docs.envio.dev/img/monitoring/network-progress-bars.webp) ### Example Failure Notification When indexing stops, the dashboard clearly surfaces the issue so you can investigate and resolve it quickly. ![Indexing has stopped](https://docs.envio.dev/img/monitoring/indexing-has-stopped.png) ## Related Documentation - **[Deploying Your Indexer](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md)** - Complete deployment guide - **[Envio Cloud CLI](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md)** - Monitor deployments from the command line with `envio-cloud deployment status` - **[Features](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md)** - Learn about all available Envio Cloud features - **[Pricing & Billing](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md)** - Compare plans and see feature availability --- # Envio Cloud Troubleshooting > Fix common Envio Cloud problems, including builds that fail on Envio Cloud, pushes that don't start a deployment, missing organisations and paused indexers. Answers to the most common problems when deploying and running indexers on Envio Cloud. For issues with running your indexer locally, see [Common Issues](https://docs.envio.dev/docs/HyperIndex/common-issues.md). ### Why does my indexer build locally but fail on Envio Cloud? First, make sure your deployment meets the [requirements](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#requirements). Envio Cloud builds from the commit on GitHub and only uploads the folder set as **Indexer Directory** in your indexer settings. Check the following: - **Imports outside the indexer directory**: code imported from a folder above the Indexer Directory is not uploaded. Move shared code inside the Indexer Directory, or set the Indexer Directory to a folder that contains everything the indexer imports. - **Files that are not committed**: anything in `.gitignore` or not pushed to the deployment branch is not part of the build. - **Skipped folders and files**: folders named `generated` or `node_modules` are skipped at any depth, as are dotfiles other than `.npmrc` and dot folders other than `.envio`. Skipped files are left out without an error, so the build only fails later, for example with a missing file or import. Keep files the indexer needs, such as ABIs, in a folder with a different name, and set environment variables in the [Environment Variables tab](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#environment-variables-tab) rather than a `.env` file. - **Envio version**: `envio` must be listed in the `package.json` inside the Indexer Directory with an exact version, such as `"envio": "x.y.z"`, that meets the [version requirements](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#requirements). Values such as `~x.y.z`, `latest` or `workspace:*` are rejected, and the commit shows "Invalid version" with the message "The Envio version is not supported". - **Dependency versions**: Envio Cloud resolves dependencies on every build and does not use your `pnpm-lock.yaml`, so a version range can resolve to a newer release than the one you run locally. Pin exact versions if the build differs from your local setup. ### Why didn't my push start a deployment? Check the commit's status first, in **Recent Commits** or with `envio-cloud indexer commits -o json`. The [commit statuses](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#list-recent-commits) table explains each one. - **Branch name**: the branch you pushed to must match **Git Release Branch** in your indexer settings exactly, including case. - **Automatic deployments**: check that **Automatically Deploy On Push** is enabled in your indexer settings. When it is disabled, deploy a commit from the **Recent Commits** section instead. - **Member role**: pushes from members with the `reader` role do not start a deployment automatically. An admin can deploy the commit from **Recent Commits**. - **Deployment limit**: each indexer can have 3 deployments. Delete an old deployment, then deploy the commit from **Recent Commits**. See [Deployment Limits](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#deployment-limits). - **Paused indexer**: pushes to a paused indexer do not start a deployment. See [Why is my indexer paused?](#why-is-my-indexer-paused) - **Indexer Directory or Config File**: if either path is wrong, the commit shows "Failed to download" or "Missing config". The Config File path is relative to the Indexer Directory. After changing the Indexer Directory, push a new commit. - **Repository access**: the Envio Deployments GitHub App must have access to the repository. Add it in the app's settings on GitHub. - **Renamed GitHub organisation**: Envio Cloud identifies your organisation by its GitHub name, so pushes stop starting deployments after the organisation is renamed. Renaming is not handled automatically, so [contact us](https://discord.gg/envio) before renaming an organisation that has indexers on Envio Cloud, or as soon as possible if you already have. ### Why did my deployment fail with "Failed to apply schema"? The build succeeded, but the database could not be set up from your schema. Open the logs for the deployment and read the lines above "Failed to apply schema", which contain the specific error. Check the build logs first, then the runtime logs. In the CLI, the build logs need the `--build` flag: ```bash envio-cloud deployment logs [organisation] --build envio-cloud deployment logs [organisation] ``` See [Deployment Logs](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#deployment-logs) in the CLI documentation. - If the error refers to your `schema.graphql`, fix the schema and push a new commit. - If the error does not relate to your schema, [contact us](https://discord.gg/envio) with the deployment link. ### Why does codegen fail on Envio Cloud? Codegen runs on every build with the `envio` version from your `package.json`. To reproduce the failure, install the same version locally and run: ```bash pnpm envio codegen ``` Check that `config.yaml` and `schema.graphql` are valid and that every file they reference is inside the Indexer Directory, committed and not in a [skipped folder](#why-does-my-indexer-build-locally-but-fail-on-envio-cloud), for example an ABI inside a folder named `generated`. The build logs show the error codegen reported. ### Why didn't deploying an older commit start a deployment? Deploying a commit from **Recent Commits**, or with [`envio-cloud deployment deploy`](https://docs.envio.dev/docs/HyperIndex/envio-cloud-cli.md#manually-deploy-a-commit), can be accepted without a new deployment appearing, for example when the commit's code is no longer available after you deleted its deployment. Push a new commit to the branch set as **Git Release Branch** instead. An empty commit works: ```bash git commit --allow-empty -m "Redeploy" git push ``` If a new commit also does not deploy, check [Why didn't my push start a deployment?](#why-didnt-my-push-start-a-deployment) ### Why did my build time out? Builds that run for longer than about 30 minutes are stopped. Check the build logs for the step that was running when the build stopped. If it keeps timing out, [contact us](https://discord.gg/envio) with the deployment link. ### Why can't I see my organisation or repository in Envio Cloud? Installing the GitHub App adds the person who installed it. Other members of the GitHub organisation must be added by an organisation admin on the **Members** page before they can see the organisation, its repositories and indexers. Until then they see "You are not a member of this team". See [Access Control](https://docs.envio.dev/docs/HyperIndex/organisation-setup.md#access-control). Only people who are members of the GitHub organisation can be added. ### How do I add someone to my organisation? An organisation admin can select **Add** next to the person on the **Members** page. The page lists the members of your GitHub organisation, so the person must be a member there first. See [Adding Members](https://docs.envio.dev/docs/HyperIndex/organisation-setup.md#adding-members). ### How do I remove someone from my organisation? An organisation admin can select **Disable** next to the member on the **Members** page. The member loses access to the organisation in Envio Cloud. Admins can enable them again while they are still a member of the GitHub organisation. ### Why is my indexer paused? An indexer is most often paused because of outstanding payments. Settle your account, then contact the Envio team to resume indexing. Indexers on the development plan are also scaled down when they pass the [fair usage limits](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#development-plan-fair-usage-policy). ## Related Documentation - **[Deploying](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md)** - Deploy, update and configure your indexer - **[Monitoring](https://docs.envio.dev/docs/HyperIndex/hosted-service-monitoring.md)** - Track logs, sync status and alerts - **[Organisation Setup](https://docs.envio.dev/docs/HyperIndex/organisation-setup.md)** - Create an organisation and manage members - **[Pricing & Billing](https://docs.envio.dev/docs/HyperIndex/hosted-service-billing.md)** - Compare plans and see feature availability - **[Common Issues](https://docs.envio.dev/docs/HyperIndex/common-issues.md)** - Troubleshoot local and runtime indexer issues --- # Pricing & Billing > Compare Envio Cloud plans from the free Development plan to Dedicated, and see how charges, failed payments, cancellations and Stripe invoices are handled. Envio offers flexible pricing options to meet the needs of projects at different stages of development. ## Pricing Plans Envio Cloud offers flexible pricing plans to match your project's needs, from free development environments to enterprise-grade dedicated hosting. :::info Current Pricing For the most up-to-date pricing information, detailed plan comparisons, and feature breakdowns, please visit our official [Envio Pricing Page](https://envio.dev/pricing). ::: **Available Plans:** | Plan | Price | Intended for | | --- | --- | --- | | **Development** | Free | Testing, prototyping, and development. 30-day max lifespan, subject to [fair usage limits](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#development-plan-fair-usage-policy) | | **Production Small** | Paid | Getting started with production deployments | | **Production Medium** | Paid | Scaling your indexing operations with higher limits | | **Production Large** | Paid | High-volume production workloads | | **Dedicated** | Custom | Ultimate performance, isolated infrastructure, and custom SLAs | **What's included across paid plans:** - Higher event processing and storage limits (increases with each tier) - Higher query rate limits on your GraphQL endpoint - Effect API cache support for faster re-indexing (Medium plans and up) - Monitoring, alerts, and deployment management - Priority support (Dedicated plan) :::warning Development Plan Disclaimer The free development plan is intended for testing and development purposes only and should not be used as a production environment. Development plan deployments have a maximum life span of 30 days and Envio makes no guarantees regarding uptime, availability, or data persistence for deployments on the development plan. If you choose to use a development plan deployment in a production capacity, you do so entirely at your own risk. Envio assumes no liability or accountability for any downtime, data loss, or service interruptions that may occur on development plan deployments. ::: :::tip For detailed feature explanations, see our [Features page](https://docs.envio.dev/docs/HyperIndex/hosted-service-features.md). For deployment instructions, see our [Deployment Guide](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md). Not sure which option is right for your project? [Book a call with our team](https://cal.com/jonjon-clark/15min) to discuss your specific needs. ::: ## Billing FAQ Most of these answers come from our [Terms of Service](https://docs.envio.dev/docs/HyperIndex/terms-of-service.md), which is the source of truth if anything here differs. ### When am I charged? Plan fees are charged upfront for the plan you select. Any usage above what your plan includes is billed separately at the end of the monthly billing cycle. If that extra usage grows past a significant threshold, we may charge for it before the cycle ends. ### What happens if a payment fails? If a payment fails, we may retry the charge or suspend access until the outstanding amount is settled. Continued failed payments may result in account termination. ### How does cancelling work? You can cancel a subscription at any time. A cancellation takes effect at the end of the current monthly billing cycle for monthly subscriptions, and at the end of the current annual billing cycle for annual subscriptions. To cancel, open the subscription management page in Envio Cloud and cancel the subscription there, or cancel it through the Stripe portal. ### Where do I find my invoices? Invoices are handled through Stripe. The subscription management page in Envio Cloud shows recent payments and invoices under each subscription. For your full invoice history, click the manage billing button on that page to open the Stripe portal. ### How do I change my billing email? Open the subscription management page in Envio Cloud, click the manage billing button to enter the Stripe portal, and update your billing information there. ### Can I pay in crypto? Only Dedicated plans paid yearly can be paid in crypto. ### Can I get a refund? No. All payments are non-refundable, and we do not provide refunds or credits for unused service, partial subscription periods, downgrades, or cancellations. ### Is there a discount for paying yearly? Yes. Production plans can be billed yearly at a lower price than paying month to month. See the [hosting pricing page](https://envio.dev/pricing/hosting) for the current yearly prices. Dedicated plans are custom priced. ### Can I use the free Development plan in production? No. The Development plan is for testing and development only, and we do not recommend it for commercial use. Deployments on it are deleted after 30 days at most, and we make no guarantees on uptime, availability, or data persistence. See the [fair usage limits](https://docs.envio.dev/docs/HyperIndex/hosted-service-deployment.md#development-plan-fair-usage-policy) for the full rules. ### How does overage work on HyperSync? On HyperSync plans with overage, you can burst past your plan's base request rate and pay only for the requests above it. See the [HyperSync pricing page](https://envio.dev/pricing/hypersync) for the current rates and burst limits on each plan. --- # Organisation Setup > Create an Envio Cloud organisation by installing the Envio Deployments GitHub app, then add team members, since GitHub membership alone does not grant access. Use this guide to set up an organisation in Envio Cloud and grant access to your team. --- ## Creating an Organisation To create a new organisation, navigate to [https://envio.dev](https://envio.dev) and click the **Login** button in the top right corner. Log in with GitHub, then in the drop down next to your username, select **Install App**. This action redirects you to GitHub, where you can install the **Envio Deployments** app for the relevant GitHub organisation. ![Add New Organisation Popup](https://docs.envio.dev/img/org-setup/add-new-organisation-popup.png) On GitHub, choose the organisation you want to enable and complete the installation. Once approved, GitHub returns you to the new organisation's page in the Envio Cloud UI. ![Install Envio Deployments Page](https://docs.envio.dev/img/org-setup/install-envio-deployments-page.png) ![Select Org and Install](https://docs.envio.dev/img/org-setup/select-org-install-page.png) --- ## Access Control Being a member of the GitHub organisation **does not** automatically grant access to the organisation in the Envio Cloud UI. Each member must be explicitly added by the organisation admin. If someone attempts to visit the organisation URL (e.g., `https://envio.dev/app/`) without being added, they'll see a "You are not a member of this team" message. ![Not a Member Error](https://docs.envio.dev/img/org-setup/not-a-member-error.png) --- ## Adding Members The organisation admin must add members from the organisation page in Envio. Navigate to the **Members** page to see all users associated with your GitHub organisation, then grant access by selecting **Add** next to each person. ![Members Page Button](https://docs.envio.dev/img/org-setup/members-page-button.png) ![Members List Page](https://docs.envio.dev/img/org-setup/members-list-page.png) Once added, members should be able to access the organisation's page in the Envio Cloud UI and start creating projects! --- --- # Self-Hosting Your Blockchain Indexer > Learn how to self-host Envio indexers with Docker, PostgreSQL, and Hasura for full control. :::info This documentation page is actively being improved. Check back regularly for updates and additional information. ::: While Envio offers a fully managed cloud hosting solution via [Envio Cloud](https://docs.envio.dev/docs/HyperIndex/hosted-service.md), you may prefer to run your blockchain indexer on your own infrastructure. This guide covers everything you need to know about self-hosting Envio indexers. :::note We deeply appreciate users who choose Envio Cloud, as it directly supports our team and helps us continue developing and improving Envio's technology. If your use case allows for it, please consider the hosted option. ::: ## Why Self-Host? Self-hosting gives you: - **Complete Control**: Manage your own infrastructure and configurations - **Data Sovereignty**: Keep all indexed data within your own systems :::warning Disclaimer Self Hosting can be done with a variety of different infrastructure, tools and methods. The outline below is merely a starting point and does not offer a full production level solution. In some cases advanced knowledge of infrastructure, database management and networking may be required for a full production level solution. ::: ## Prerequisites Before self-hosting, ensure you have: - Docker installed on your host machine, or Node.js 22.15.0 or newer to run the indexer directly - A PostgreSQL database the indexer can reach - Sufficient storage for blockchain data and the indexer database - Adequate CPU and memory resources (requirements vary based on chains and indexing complexity) - Required HyperSync and/or RPC endpoints - Envio API token for HyperSync access (`ENVIO_API_TOKEN`) - required for continued access. See [API Tokens](https://docs.envio.dev/docs/HyperSync/api-tokens). ## Getting Started In general, if you want to self-host, you will likely use a Docker setup. For a working example, check out the [local-docker-example repository](https://github.com/enviodev/local-docker-example). It contains a minimal `Dockerfile` and `docker-compose.yaml` that configure the Envio indexer together with PostgreSQL and Hasura. ## Configuration Explained The compose file in that repository sets up three main services: 1. **PostgreSQL Database** (`envio-postgres`): Stores your indexed data 2. **Hasura GraphQL Engine** (`graphql-engine`): Provides the GraphQL API for querying your data 3. **Envio Indexer** (`envio-indexer`): The core indexing service that processes blockchain data ### Environment Variables The configuration uses environment variables with sensible defaults. For production, you should customize: - Envio API token (`ENVIO_API_TOKEN`) - Database connection (`ENVIO_PG_HOST`, `ENVIO_PG_PORT`, `ENVIO_PG_USER`, `ENVIO_PG_PASSWORD`, `ENVIO_PG_DATABASE`, and `ENVIO_PG_SSL_MODE` for a managed database) - Hasura connection (`HASURA_GRAPHQL_ENDPOINT`, for example `http://graphql-engine:8080/v1/metadata`, and `HASURA_GRAPHQL_ADMIN_SECRET`), or `ENVIO_HASURA=false` to run without Hasura. With `NODE_ENV=production`, set the `HASURA_GRAPHQL_*` variables even when Hasura is off (see [Production mode](https://docs.envio.dev/docs/HyperIndex/environment-variables#production-mode)) - Resource limits based on your workload requirements If you set `NODE_ENV=production`, the Postgres connection and Hasura variables lose their dev defaults, and the indexer won't start until they are set. `ENVIO_PG_PASSWORD` (`testing`) and `ENVIO_PG_SCHEMA` (`public`) keep their defaults, so set the password yourself. See [Production mode](https://docs.envio.dev/docs/HyperIndex/environment-variables#production-mode) for the full list. ## Running the Indexer The indexer container runs `envio start` (the `start` script in `package.json`). It: 1. Runs codegen, so the image only needs your project files and dependencies. 2. On the first run, creates the tables in `ENVIO_PG_SCHEMA` (default `public`) and, when Hasura is enabled, tracks them in Hasura. 3. On later runs, resumes from the last checkpoint. 4. Serves `/metrics` and `/healthz` on `ENVIO_INDEXER_PORT` (default `9898`). Point your container health check at `/healthz` on that port. See [Observability](https://docs.envio.dev/docs/HyperIndex/observability). `envio start -r` deletes the indexed data and starts over. A restart after changing the config, the schema or the `envio` version stops with `The following config changes are incompatible with the existing indexer data:`. Re-index with `-r`, or run the new version against a fresh `ENVIO_PG_SCHEMA` and switch over once it has synced. See [Common Issues](https://docs.envio.dev/docs/HyperIndex/common-issues#config-changes-are-incompatible-with-the-existing-indexer-data). To match the versions `envio dev` uses locally, run `postgres:18.3` and `hasura/graphql-engine:v2.43.0`. ## Getting Help If you encounter issues with self-hosting: - Check the [Envio GitHub repository](https://github.com/enviodev/hyperindex) for known issues - Join the [Envio Discord community](https://discord.gg/envio) for community support :::tip For most production use cases, we recommend using [Envio Cloud](https://docs.envio.dev/docs/HyperIndex/hosted-service.md) to benefit from automatic scaling, monitoring, and maintenance. ::: ---