Apollo CLI is a command-line tool for GraphQL client and server development that validates schemas, lints operations, and generates static types.
The tool addresses the need to keep GraphQL clients and servers in sync by providing validation and code generation capabilities. It allows developers to check client operations against a server schema, download schemas for local use, and generate TypeScript types from GraphQL queries to improve type safety on the client side. The approach centers on integrating schema validation and type generation into the development workflow through command-line commands that interact with GraphQL registries and local schema files.
New projects should not adopt this tool. The README explicitly recommends using graphql-code-generator instead for code generation, which is the primary capability most developers would seek from this package. The service-related commands have reached end-of-life, and the project maintainers have announced plans to fully deprecate the repository, with most functionality already replaced by newer projects. Existing projects using the tool can continue to do so with minimal support, but migration to successor tools is the recommended path forward.
Development on the project has entered a maintenance-only phase with minimal activity. The codebase remains in TypeScript but receives only housekeeping updates, such as the relocation of the GraphQL VSCode extension to a separate repository. No active feature development or bug fixes are being prioritized as the team focuses on deprecation planning and directing users toward replacement tools.