Apollo CLI (v2.34.0) is a command-line tool for Apollo GraphQL that validates schemas, lints operations for compatibility, generates TypeScript/Flow/Swift types, and pushes client-side operations to Apollo Studio. It supports service and client operations like schema download, push, check, and codegen. Release cadence is irregular; development is winding down. Key differentiators include tight integration with Apollo Platform, deep federation support, and built-in type generation. As of Jan 2022, the tool is slated for deprecation—most functionality is being replaced by Rover and Apollo's VSCode extension.
npm install apolloNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install Apollo CLI globally, push a schema to Apollo Studio, and check local queries against it.
Use @apollo/rover CLI instead. See https://go.apollo.dev/migrate-to-rover.
Replace `apollo schema:check` with `apollo service:check`.
Ensure Node.js is available (engine requirement: >=8, but v2.34 recommends Node >=12).
Ensure all .graphql files use consistent import style and fix TypeScript string quotes.
Run `npm install -g apollo@2.34.0 --force` or try `npx apollo@2.34.0`.
Set APOLLO_KEY environment variable or pass --key and --endpoint.
Ensure the glob pattern (e.g., 'src/**/*.graphql') is correct and the files exist.