Metadata-Version: 2.4
Name: forgepilot-cli
Version: 0.1.0
Summary: Command-line client for the ForgePilot engineering analysis API — FMEA, drawing review, tolerance stack-up, compliance checks, and calculators from a script or CI pipeline.
Project-URL: Homepage, https://forgepilot.dev
Project-URL: Documentation, https://forgepilot.dev/docs/api
Project-URL: API Keys, https://forgepilot.dev/settings/api-keys
Author: ForgePilot
License-Expression: MIT
License-File: LICENSE
Keywords: cad,cli,engineering,fmea,forgepilot,mechanical-engineering
Classifier: Environment :: Console
Classifier: Intended Audience :: Manufacturing
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.9
Requires-Dist: requests>=2.28
Description-Content-Type: text/markdown

# forgepilot-cli

Command-line client for the [ForgePilot](https://forgepilot.dev) engineering analysis API — run FMEA, drawing review, tolerance stack-up, standards compliance checks, and the deterministic calculators from a script, CI pipeline, or CAD macro instead of the web UI.

Requires a ForgePilot Pro or Enterprise plan.

## Install

```bash
pip install forgepilot-cli
```

## Setup

Generate a key at [forgepilot.dev/settings/api-keys](https://forgepilot.dev/settings/api-keys), then:

```bash
export FORGEPILOT_API_KEY=fp_live_...
```

## Usage

```bash
forgepilot fmea --context "Bolted flange, 5 kN axial, 200 bar seal" --file drawing.pdf
forgepilot tolerance-stackup --file assembly.step
forgepilot ask --context "What FoS should I use for a static aluminum bracket?"
```

Follow up on the same session — a real continuation, not a cold prompt:

```bash
forgepilot chat "What about the tolerance on that mounting hole?"
```

Sessions save to `forgepilot_session.json` in the current directory by default (`--session` for a different path). Each run appends to history so a follow-up actually knows what already happened, the same context the web workspace uses.

## Available tools

`fmea`, `test-plan`, `compliance-check`, `tolerance-stackup`, `drawing-review`, `ecn`, `beam`, `stress`, `pressure-vessel`, `bolted-joint`, `bearing-life`, `buckling`, `fatigue`, `thermal`, `ask`

Full endpoint reference: [forgepilot.dev/docs/api](https://forgepilot.dev/docs/api)
