1.0.0 • Published 12 months ago
llama-ocr-cli v1.0.0
llama-ocr-cli
A command-line interface for performing OCR on images using llama-ocr.
Installation
npm install -g llama-ocr-cliPrerequisites
You need a Together AI API key to use this tool. You can either:
- Set it as an environment variable:
TOGETHER_API_KEY=your-key-here - Pass it as a command line argument:
--api-key your-key-here
Usage
Basic usage:
llama-ocr image.jpgWith explicit API key:
llama-ocr image.jpg --api-key your-key-hereSave output to file:
llama-ocr image.jpg -o output.mdOptions
-k, --api-key <key>: Together AI API key (overrides environment variable)-o, --output <file>: Output file for the extracted text (defaults to stdout)-V, --version: Output the version number-h, --help: Display help information
Development
- Clone the repository
- Install dependencies:
npm install- Build the project:
npm run build- Run in development mode:
npm run devPublishing
This package is automatically published to npm when a new GitHub release is created. The GitHub Action workflow will: 1. Build the package 2. Publish to npm registry
To publish a new version: 1. Update version in package.json 2. Create a new release on GitHub 3. The GitHub Action will automatically publish to npm
License
MIT
1.0.0
12 months ago