# LegoTechApps CLI — Official Command-Line Tool

Install and use the official LegoTechApps CLI to inspect API discovery, download OpenAPI, list public MCP tools and diagnose endpoints.

Canonical: https://app.legotechapps.com/developers/cli/

## Install

The current official website release runs on Node.js 18 or newer and installs directly from legotechapps.com.

```text
npm install --global https://app.legotechapps.com/downloads/legotechapps-cli-0.1.0.tgz
```

## Discover and diagnose

Print the versioned API index as JSON, or check discovery, OpenAPI, MCP metadata and tools in one command. Doctor exits non-zero when any public contract is unavailable.

```text
legotech discover --json
legotech doctor --json
```

## OpenAPI and MCP

Save the exact live OpenAPI document or list the tools advertised by the public read-only Streamable HTTP MCP server. These commands do not access customer data.

```text
legotech openapi --output openapi.json
legotech mcp tools --json
```

## Resources

- [Download npm package](https://app.legotechapps.com/downloads/legotechapps-cli-0.1.0.tgz)
- [API guide](https://app.legotechapps.com/developers/api/)
- [MCP guide](https://app.legotechapps.com/developers/mcp/)
- [OpenAPI JSON](https://legotechapps.com/openapi.json)
