Metadata-Version: 2.4
Name: mmh-cli
Version: 5.13.0
Summary: MakeMyHouse developer CLI — vendor-neutral scaffolder, linter, docs builder, deploy wrapper.
Author-email: MakeMyHouse <dev@makemyhouse.co>
License: MIT License
        
        Copyright (c) 2026 MakeMyHouse
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/your-org/makemyhouse
Project-URL: Documentation, https://github.com/your-org/makemyhouse/blob/main/docs/REBUILD_FROM_SCRATCH.md
Project-URL: Repository, https://github.com/your-org/makemyhouse
Project-URL: Issues, https://github.com/your-org/makemyhouse/issues
Project-URL: Changelog, https://github.com/your-org/makemyhouse/blob/main/scripts/mmh_cli/CHANGELOG.md
Keywords: makemyhouse,scaffold,cli,fastapi,react,marketplace
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: docs
Requires-Dist: python-docx>=1.1; extra == "docs"
Requires-Dist: graphviz>=0.21; extra == "docs"
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Requires-Dist: ruff>=0.6; extra == "dev"
Dynamic: license-file

# mmh-cli

MakeMyHouse developer CLI — a `create-next-app`-style entrypoint that wraps the bootstrap script, pre-commit checks, and doc-regeneration into a single installable command.

## Install
```bash
pip install -e /app/scripts/mmh_cli       # editable, dev mode
# or
pip install /app/scripts/mmh_cli           # regular install
```

## Commands
| Command          | What it does                                                          |
|------------------|------------------------------------------------------------------------|
| `mmh init`       | Scaffold a fresh repo via `docs/bootstrap.sh` (flags: `--target`, `--install`, `--docker`, `--skip-prereq`) |
| `mmh check`      | Pre-commit sweep — shellcheck + ruff + `pytest tests/unit/`            |
| `mmh docs`       | Regenerate `docs/MakeMyHouse_Flow_Diagrams_v5.13.0.docx`               |
| `mmh health`     | GET `/api/health` (`--url http://host:8001`)                           |
| `mmh version`    | Print CLI version + repo root                                          |

## Examples
```bash
# Bootstrap a new repo into ./mmh, install deps, bring up mongo+redis
mmh init --target ./mmh --install --docker

# Run the same CI sweep locally before pushing
mmh check

# Regenerate the 18-flow .docx after a release
mmh docs

# Smoke-test a deployment
mmh health --url https://api.yourdomain.com
```

## Vendor neutrality
Zero runtime dependencies — pure Python stdlib. The CLI auto-discovers the repo root
by walking up from the install location until it finds `docs/bootstrap.sh`, or honours
`MMH_REPO_ROOT` if set.
