UNPKG

@graphql-markdown/cli

Version:

NodeJS CLI for generating Markdown documentation from a GraphQL schema.

36 lines (23 loc) 2.13 kB
# @graphql-markdown/cli [![Latest Version](https://img.shields.io/npm/v/@graphql-markdown/cli?style=flat)](https://www.npmjs.com/package/@graphql-markdown/cli) [![GitHub License](https://img.shields.io/github/license/graphql-markdown/graphql-markdown?style=flat)](https://raw.githubusercontent.com/graphql-markdown/graphql-markdown/main/LICENSE) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=graphql-markdown_cli&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=graphql-markdown_cli) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=graphql-markdown_cli&metric=coverage)](https://sonarcloud.io/summary/new_code?id=graphql-markdown_cli) [![Mutation Score](https://img.shields.io/endpoint?label=mutation%20score&style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fgraphql-markdown%2Fgraphql-markdown%2Fmain%3Fmodule%3Dcli)](https://dashboard.stryker-mutator.io/reports/github.com/graphql-markdown/graphql-markdown/main?module=cli) Command-line interface for generating **Markdown documentation** from **GraphQL schemas**. Part of the [GraphQL-Markdown](https://graphql-markdown.dev) toolset. ## Installation ```shell npm install -g @graphql-markdown/cli ``` ## Quick Start Create a [GraphQL-Config file](https://graphql-markdown.dev/docs/configuration#graphql-config) and run: ```shell npx gqlmd graphql-to-doc ``` ## Documentation - [Configuration Options](https://graphql-markdown.dev/docs/settings) - [CLI Usage Guide](https://graphql-markdown.dev/docs/cli) - [Troubleshooting](https://graphql-markdown.dev/docs/troubleshooting) ## License GraphQL-Markdown packages are 100% free and open-source, under the [MIT license](https://github.com/graphql-markdown/graphql-markdown/blob/main/LICENSE). This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/graphql-markdown/graphql-markdown) to thank us for our work. By contributing to the Treeware forest you'll be creating employment for local families and restoring wildlife habitats.