# @graphee/cli

> > TODO: description

Latest version **5.0.0** (published 2023-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @graphee/cli
pnpm add @graphee/cli
yarn add @graphee/cli
bun add @graphee/cli
```

Provides the command `graphee`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2023-05-17 |
| First published | 2022-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 20.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Trevor Harwell |
| Maintainers | trevorharwell, evisions-devops |

## Links

- npm: https://www.npmjs.com/package/@graphee/cli
- npm.io page: https://npm.io/package/@graphee/cli

## Dependencies (8)

- [@graphql-codegen/add](https://npm.io/package/@graphql-codegen/add.md) ^3.2.3
- [@graphql-codegen/cli](https://npm.io/package/@graphql-codegen/cli.md) ^2.16.1
- [@graphql-codegen/typescript](https://npm.io/package/@graphql-codegen/typescript.md) ^2.7.3
- [@graphql-typed-document-node/core](https://npm.io/package/@graphql-typed-document-node/core.md) ^3.1.1
- [@graphql-codegen/typed-document-node](https://npm.io/package/@graphql-codegen/typed-document-node.md) ^2.3.3
- [@graphql-codegen/typescript-resolvers](https://npm.io/package/@graphql-codegen/typescript-resolvers.md) ^2.7.3
- [@graphql-codegen/typescript-operations](https://npm.io/package/@graphql-codegen/typescript-operations.md) ^2.5.3
- [@graphql-codegen/typescript-react-query](https://npm.io/package/@graphql-codegen/typescript-react-query.md) ^4.0.2

## Recent versions

- 5.0.0 (latest) — 2023-05-17
- 4.0.1 — 2023-05-02
- 3.1.0 — 2023-05-02
- 3.2.3 — 2023-03-09
- 3.0.0 — 2023-01-12
- 2.0.2 — 2022-12-14
- 2.0.1 — 2022-12-13
- 2.0.0 — 2022-12-13
- 1.0.0 — 2022-12-09
- 0.1.0 — 2022-12-08
- 0.0.1 — 2022-12-08

## README

# `@graphee/cli`

> TODO: description

## Usage

```
const cli = require('@graphee/cli');

// TODO: DEMONSTRATE API
```

## Overriding config

create file in root called `grapheeConfig.ts
```
import { UserDto } from 'users';
import { TenantDto } from 'tenants';

interface AddPlugin {
  add: { content: string[] };
}

type ConfigObject = {
  plugins?: AddPlugin[] | undefined;
  config: {
    [key: string]: string | boolean | Record<string, string>;
    mappers: Record<string, string>;
  };
};

type FullConfig = {
  react?: ConfigObject | undefined;
  client?: ConfigObject | undefined;
  server?: ConfigObject | undefined;
};

const Config: FullConfig = {
  server: {
    plugins: [
      {
        add: { content: ["import { random } from 'module';"] },
      },
    ],
    config: {
      mappers: {
        Tenant: 'TenantDto',
        User: 'UserDto',
      },
    },
  },
  client: {
    config: {
      mappers: {
        Tenant: 'TenantDto',
      },
    },
  },
  react: {
    config: {
      mappers: {
        User: 'UserDto',
      },
    },
  },
};

export default Config;
```
Imports will be automatically added if the Object exists in the Mappers.

---
_Source: https://npm.io/package/@graphee/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
