CLI reference / version
aiwritecheck --version
Print which aiwritecheck this is: the package version and the commit of the checkout the command runs from.
Invocation
Run the command.
aiwritecheck --versionInputs and options
Accepted command line
| Input or option | Contract |
|---|---|
--version | Asked alone on the command line; `-v` is the same. |
--text | Print the result as path: value lines. |
Behavior
Output and state effect
The command prints JSON with version, the version package.json declares, revision, the commit the checkout is at, and workingTree, clean or modified, by whether tracked files differ from that commit.
A copy that is not the top of its own git checkout prints revision null and revisionUnknown with the reason, and never the commit of a repository it merely sits inside.
It reads no draft, changes nothing and makes no network request.
Refusals
When the command stops
- With any other word on the line, --version is read as that command's argument and refused as it refuses any unknown one.
- A package.json that is not JSON is reported with its path.
Browser-imported drafts use separate browser storage. See the GUI import guide for that workflow.