Migration update

qmims has been migrated from Amazon Q CLI to Kiro CLI. These docs reflect the current install, authentication, and command workflows.

Generate Command

Create new README files using Kiro-backed generation workflows

The generate command is the main entry point for creating project documentation with qmims. It supports automatic generation, template-driven generation, and instruction-driven generation, all powered by Kiro CLI.

Syntax

qmims generate [path] [options]

Arguments

ArgumentDescriptionDefault
pathPath to the project directory to analyzeCurrent directory

Options

OptionAliasDescription
--output-oOutput filename. Defaults to defaults.outputFileName.
--mode-mGeneration mode: auto, template[:name], or instruct[:file].
--force-fOverwrite the output file without prompting.
--yes-yAutomatically approve Kiro tool permission requests.
--dry-runShow what would happen without making changes.
--verbosePrint detailed diagnostic output.
--list-available-templatesList built-in and custom templates when using template mode.

Generation Modes

Auto Mode

Auto mode asks Kiro to analyze the target project and generate a complete README from scratch.

qmims generate --mode auto

Template Mode

Template mode writes a selected template first, then asks Kiro to fill in the sections while preserving that structure.

qmims generate --mode template:basic

Instruct Mode

Instruct mode reads embedded <!-- qmims: ... --> comments from a Markdown file and uses all discovered instructions to produce the final output.

qmims generate --mode instruct
qmims generate --mode instruct:README.md

Examples

Generate a README in auto mode for the current directory:

qmims generate

Generate a README for a specific project:

qmims generate /path/to/project

Generate using a built-in template:

qmims generate --mode template:detailed

List the available templates:

qmims generate --mode template --list-available-templates

Generate to a custom output file:

qmims generate --output DOCS.md

Preview the workflow without changing files:

qmims generate --dry-run

Run with automatic approval for non-interactive workflows:

qmims generate --yes

Generate from embedded instructions in a specific file:

qmims generate --mode instruct:docs/README-template.md

How It Works

  1. qmims verifies that Kiro CLI is installed and authenticated
  2. It selects the requested generation workflow based on --mode
  3. It prepares the target file or template and builds a Kiro prompt
  4. Kiro runs in documented non-interactive CLI mode to generate or update the README
  5. The final Markdown content is written to the output file