# Usage Guide

## Overview

defapp provides the newapp.sh CLI for creating new applications and auditing
existing ones against documentation and standards.

## Commands

### init

- Usage: `newapp.sh init AppName "Description" [--stack STACK] [--standards PACKAGE]`
- Creates a new app directory under the configured base path.
- Renders templates from templates/standards/newapp/<version> into the new app.

### audit

- Usage: `newapp.sh audit /path/to/app [--standards PACKAGE]`
- Reads manifest.json and checks the target app for required files and sections.
- Prints a compliance report and sets exit code accordingly.

### help

- Usage: `newapp.sh help` or `newapp.sh --help`
- Displays available subcommands and options.

## Configuration

- System-level settings come from /home/intel145/websites/.env.
- defapp-specific settings come from /home/intel145/websites/apps/defapp.env.

## Standards

- Standards templates and manifest.json files are stored under
  templates/standards/newapp/<version>.
- Each app declares its standards package/version in its docs or metadata.

