open-index/open-npm huggingface dataset:
npm package: @liam-hq/cli
Description: Command-line tool designed to generate a web application that displays ER diagrams. See https://liambx.com/docs/cli
Latest version: 0.7.24

# @liam-hq/cli

Command-line tool designed to generate a web application that displays ER diagrams.

## How To Use

See https://liambx.com/docs/cli

## Test

```bash
pnpm run test
```

## Building and Installing the Standalone CLI for Development

To build the CLI for development purposes, run:

```bash
pnpm run build
# The executable will be output to dist-cli/bin/cli.js.
```

After building, you can invoke it locally with:

```bash
node ./dist-cli/bin/cli.js erd build --input ./fixtures/input.schema.rb --format schemarb
```

To make it globally accessible as `liam`, use:

```bash
pnpm link --global
```

## Development npm Scripts Explanation

### ER Diagram App Development with Vite

- **Dev Command**
   ```bash
   pnpm dev
   ```
   This command currently performs the following actions:
   - Builds the CLI.
   - Executes the CLI with the command `erd build --input ./fixtures/input.schema.rb --format schemarb`.
   - Copies the generated `schema.json` to the `public/` directory and launches the Vite development server.

## Project File Structure

- **`bin/cli.ts`**: This is the main CLI script.
- **`src/cli/`**: Contains the source code for the CLI.
- **`fixtures/input.schema.rb`**: A sample input file used for testing and development purposes.
- **`src/{App,main}.tsx`**, **`index.html`**: These files constitute the web application's entry point, which displays ER diagrams.
npm package: @liam-hq/erd-core
Description: ⚠️ **WARNING**: This package is an internal dependency of @liam-hq/cli. Direct use is not recommended and the API is subject to change without notice.
Latest version: 0.6.18

⚠️ **WARNING**: This package is an internal dependency of @liam-hq/cli.
Direct use is not recommended and the API is subject to change without notice.

Please use [@liam-hq/cli](https://www.npmjs.com/package/@liam-hq/cli) instead.
npm package: @liam-hq/schema
Description: ⚠️ **WARNING**: This package is an internal dependency of @liam-hq/cli. Direct use is not recommended and the API is subject to change without notice.
Latest version: 0.6.1

⚠️ **WARNING**: This package is an internal dependency of @liam-hq/cli.
Direct use is not recommended and the API is subject to change without notice.

Please use [@liam-hq/cli](https://www.npmjs.com/package/@liam-hq/cli) instead.
npm package: @liam-hq/ui
Description: ⚠️ **WARNING**: This package is an internal dependency of @liam-hq/cli. Direct use is not recommended and the API is subject to change without notice.
Latest version: 0.0.24

⚠️ **WARNING**: This package is an internal dependency of @liam-hq/cli.
Direct use is not recommended and the API is subject to change without notice.

Please use [@liam-hq/cli](https://www.npmjs.com/package/@liam-hq/cli) instead.