Migration update

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

Troubleshooting

Common setup, authentication, and workflow issues with qmims and Kiro CLI

qmims depends on Kiro CLI for generation and editing workflows. Most runtime issues fall into one of four categories: installation problems, authentication problems, file/path issues, or template/configuration mistakes.

Common Issues

Debugging with Verbose Output

When a command fails unexpectedly, add --verbose to see more detail about what qmims is doing before it hands off to Kiro.

qmims generate --verbose
qmims edit --verbose

Verbose output is useful for checking:

  • Whether qmims resolved the expected target path
  • Whether Kiro availability and auth checks succeeded
  • Which mode or template qmims selected
  • Whether the issue happens before or during Kiro execution

Dependency Checklist

If you are not sure whether the environment is ready, verify each dependency explicitly:

# Check Node.js
node --version

# Check Kiro CLI
kiro-cli --version

# Check Kiro authentication
kiro-cli whoami

# Check qmims
qmims --version
  • Node.js version 18 or later
  • Kiro CLI installed
  • Kiro CLI authenticated or `KIRO_API_KEY` configured
  • qmims installed and available on PATH

Getting Help

For command-specific usage, use built-in help:

qmims --help
qmims generate --help
qmims edit --help
qmims config --help
qmims templates --help

For setup walkthroughs, see the Installation guide. For command behavior details, use the Command Reference.

Common Error Messages

Error MessageLikely CauseTypical Fix
Kiro CLI is not installedKiro CLI is missing from the systemInstall Kiro CLI and verify with kiro-cli --version
Kiro CLI is installed but you are not signed inAuth session missing or expiredRun kiro-cli login and confirm with kiro-cli whoami
No embedded instructions foundThe target Markdown file has no <!-- qmims: ... --> commentsAdd embedded qmims instructions to the file
Template not foundWrong template name or missing custom templateList templates or add the custom template first
EACCES: permission deniedFilesystem or installation permissions issueFix permissions or use a writable environment
command not found: qmimsqmims is not installed globally or not on PATHReinstall qmims and verify the global bin path