# Overview
Cynic is a code first GraphQL client for Rust. `cynic-cli` is a CLI that
provides utilities for working with `cynic` specifically and GraphQL in
general.
## Features
- Can introspect a remote server and dump it's schema.
- Intelligent feature detection for introspection - checks which features a
server supports and only introspects for those.
## Usage
```console
$ cynic help
A CLI for cynic, a code first GraphQL client for Rust
Usage: cynic [COMMAND]
Commands:
introspect Runs an introspection query against a GraphQL server and outputs the servers schema
querygen Runs querygen that allows you to generate Rust code from a schema and for a query
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
```
### Introspect
The `introspect` command runs an introspection query against a server and
prints the schema to stdout/a file.
```console
$ cynic help introspect
Runs an introspection query against a GraphQL server and outputs the servers schema
Usage: cynic introspect [OPTIONS]
Arguments:
The URL of the GraphQL schema that we should introspect
Options:
-H, --header
Any headers to send with the introspection request
These should be in HTTP format e.g. `-H "Authorization: Bearer a_token_123"`
-o, --output