Askr documentation
Tooling

CLI Overview

The commands @askrjs/cli actually ships, how to target a project with --cwd, and which generators do not exist.

Example

Run the project-local published CLI, inspect help before scripting it, and keep CI commands pinned by package-lock.json.

npx askr --version
npx askr --help
npx askr create --help
npx askr openapi --check

Available commands

askr --help is the generated source of truth for the current command set. It covers scaffolding and generation; analysis, diagnosis, repair, and full project checks; database, OpenAPI, and SSG workflows; agent skills; and dependency maintenance. The command table rendered below comes directly from the installed CLI snapshot, and each command accepts its own --help flag for command-specific usage and examples.

Help and version

Running askr with no arguments, or with --help/-h, prints the same top-level help text: a usage line, the command table, global options, and a handful of worked examples. --version (or -v) prints the installed @askrjs/cli version by walking up from the executable's directory until it finds the package.json whose name is @askrjs/cli. An unrecognized command prints Unknown command: <name> and points you back at askr --help rather than silently doing nothing.

Project-local execution

@askrjs/cli can be installed globally (npm install -g @askrjs/cli) or run through a project-local installation. Project-aware commands expose --cwd in their own help when they support targeting a directory other than the current one; check askr <command> --help rather than assuming the flag is universal. This matters for scripting: a CI job or monorepo tool can invoke a supported command such as askr update --cwd packages/app without changing its own working directory first.

CI usage

Several commands fit CI directly: askr analyze --check and askr check fail on project diagnostics, askr openapi --check fails without writing when the checked-in artifact drifts, askr database validate checks an installed @askrjs/orm schema, and askr outdated --json emits deterministic machine-readable output. Because update and upgrade never run an install or touch a lockfile, they can be followed by the normal install-and-test job. --workspace and --tag flags let a dependency-maintenance matrix target one package or one dist-tag at a time.

Published commands

These commands come from @askrjs/cli. Planned generators such as route, crud, table, and form are not available commands.

CommandRun
addaskr add --help
analyzeaskr analyze --help
checkaskr check --help
createaskr create --help
databaseaskr database --help
docsaskr docs --help
doctoraskr doctor --help
generateaskr generate --help
openapiaskr openapi --help
skillsaskr skills --help
ssgaskr ssg --help
outdatedaskr outdated --help
repairaskr repair --help
updateaskr update --help
upgradeaskr upgrade --help