@harpertoken/autofix-cli
v1.0.0
Published
CLI for Harper Autofix - AI-powered text completion editor
Downloads
31
Maintainers
Readme
Harper Autofix CLI
CLI for AI-powered text completion.
Installation
From the project root:
npm install
cd apps/cli
npm install
npm run buildSetup
- Get Gemini API key from Google AI Studio
- Create
.envfile in the monorepo root (parent of apps/ folder):GEMINI_API_KEY=your_api_key_here
Usage
Create a new document
autofix newOptions:
-m, --mode <mode>: Completion mode (word, sentence, paragraph) - default: sentence-s, --style <style>: Writing style (casual, formal, creative, technical) - default: casual-o, --output <file>: Output file path
Edit an existing file
harper-autofix edit my-document.txt
## Interactive Commands
- Type text + Enter for suggestions
- `.help` - Show commands
- `.save` - Save text
- `.exit` - Save and exit
- `Ctrl+C` - Save and exit
## Examples
```bash
# Start writing with default settings
autofix new
# Write technical documentation
autofix new --mode paragraph --style technical --output docs.txt
# Edit an existing file
harper-autofix edit story.txt --style creativeRequirements
- Node.js 16+
- Gemini API key
License
MIT
