# Install graphql-codegen with npm

Generate client code based on a GraphQL schema and query documents. Version 0.4.0 via npm; verified 2016-09-22.

## Install

```sh
sudo av install npm:graphql-codegen
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g graphql-codegen
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:graphql-codegen
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/graphql-codegen>
- **Version:** 0.4.0
- **Source summary:** Generate client code based on a GraphQL schema and query documents
- **Homepage:** <https://github.com/apollostack/apollo-codegen#readme>
- **Repository:** <https://github.com/apollostack/apollo-codegen>
- **Upstream docs:** <https://github.com/apollostack/apollo-codegen#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/graphql-codegen/-/graphql-codegen-0.4.0.tgz>
- **Issue tracker:** <https://github.com/apollostack/apollo-codegen/issues>
- **Published:** 2016-09-22T14:43:10.567Z
- **Last updated:** 2016-09-22T14:43:10.567Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- graphql-codegen (cli)
- graphql-codegen (alias)

## Dependencies

- babel-runtime
- change-case
- graphql
- inflected
- mkdirp
- node-fetch
- yargs

## Build dependencies

- babel-cli
- babel-plugin-transform-runtime
- babel-preset-es2015
- babel-preset-stage-0
- chai
- chai-subset
- common-tags
- glob
- mocha

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepublish
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.4.0
- Package-manager updated: 2016-09-22
- Local data: ok
- Upstream repository: https://github.com/apollostack/apollo-codegen
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for graphql-codegen. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.4.0
- **Version Count:** 1
- **Maintainers:** martijnwalraven
- **Author:** Martijn Walraven
- **Publisher:** martijnwalraven
- **Integrity:** sha512-OnLWOmsg5Wi7Z0rcVBzLr1oWM/sd/CgL65ANcrLxu03KTJt42bTLbgDalRs++oDRg++FuyYXbQXJJCKIV8sHeA==
- **Shasum:** 60bffafa9efd9b12fd029db1b71c345430c1194b
- **File Count:** 0
- **Created At:** 2016-09-22T14:43:10.567Z
- **Latest Published At:** 2016-09-22T14:43:10.567Z
- **Modified At:** 2022-06-18T13:55:26.044Z


## Related links

- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched curated package taxonomy and local package facts.
- [graphql-typed-client](https://www.automicvault.com/pkg/npm/graphql-typed-client/) - Both packages touch the same language runtime or ecosystem. Shared terms: client, code, codegen, fetch, generate.
- [amplify-graphql-types-generator](https://www.automicvault.com/pkg/npm/amplify-graphql-types-generator/) - Local package facts share a topical domain. Shared terms: babel, based, case, change, change-case.
- [graphql-let](https://www.automicvault.com/pkg/npm/graphql-let/) - Package names and metadata indicate a similar tool family. Shared terms: babel, code, codegen, graphql, graphql-codegen.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
