Initialize a new devkit.yaml configuration file in the current directory.
hyperroute init
hyperroute compose
Compose a supergraph from subgraph schemas defined in devkit.yaml or the local registry.
hyperroute compose --env <ENV> [OPTIONS]
Flag
Description
-e, --env <ENV>
Required. Environment to compose for
-s, --schema <SCHEMAS>
Subgraph schema files. Format: name=path or name=path@url
-c, --config <PATH>
Path to devkit.yaml
-o, --out <PATH>
Output directory for the composed bundle
--from-registry
Read subgraph schemas from the local registry
--visualize
Print a visual representation of the composition result
--diff <PATH>
Compare against a previous bundle directory
--base <PATH_OR_URL>
Base bundle for version lineage tracking
--wait
Wait for registry lock instead of failing
--max-wait-seconds <N>
Maximum lock wait time (default: 300s)
--lock-ttl <N>
Lock time-to-live (default: 600s)
--no-lock
Skip locking entirely (use with caution)
# Compose from devkit.yaml
hyperroute compose --env dev
# Compose specific schemas
hyperroute compose --env dev \
-s users=./users/schema.graphql \
-s products=./products/schema.graphql@http://products:4001/graphql
# Compose from registry with diff
hyperroute compose --env staging --from-registry --diff ./previous-bundle
hyperroute doctor
Run diagnostic checks on the local environment, router connectivity, and bundle integrity.
hyperroute doctor [OPTIONS]
Flag
Description
--bundle <PATH>
Path to a bundle directory to validate
--routerd <PATH>
Path to the routerd binary to check
--url <URL>
URL of a running router to health-check
--skip-upstream
Skip upstream connectivity checks
hyperroute deploy
Deploy a bundle to a running router.
hyperroute deploy --url <ROUTER_URL> [OPTIONS]
Flag
Description
--url <URL>
Required. Router URL
-b, --bundle <PATH>
Bundle directory or .tar.gz archive
--bundle-id <ID>
Bundle ID to fetch from registry
--snapshot-id <ID>
Snapshot ID to compose and deploy
-e, --env <ENV>
Deploy latest bundle for environment
--dry-run
Validate without deploying
--wait-healthy
Poll router health after deploying
--timeout <SECS>
Health check timeout (default: 30s)
--auto-rollback
Auto-rollback if activation fails
# Deploy from a local bundle directory
hyperroute deploy --url http://localhost:4000 --bundle .hyperroute
# Deploy a specific bundle from the registry
hyperroute deploy --url http://router:4000 --bundle-id bundle-abc123 -c devkit.yaml
# Deploy latest for an environment
hyperroute deploy --url http://router:4000 --env production -c devkit.yaml
hyperroute activate
Activate a specific bundle on a running router (assumes bundle is already uploaded).