draftify-cli
v1.0.142
Published
Draftify AI CLI tool
Maintainers
Readme
Draftify CLI
Draftify CLI is a command-line interface for interacting with Draftify AI directly from your terminal. It allows you to seamlessly refactor files, chat with an AI assistant in your project, and much more.
Installation
You can install the CLI globally using npm:
npm install -g draftify-cliUsage
Getting Started
If you simply type draftify into your terminal, it will automatically initiate the login flow or start the interactive REPL if you are already authenticated.
draftifyCommands
draftify loginAuthenticates your terminal session with the Draftify Website. You will be redirected to the web browser to confirm login securely.draftify refactor <file> -i <instruction>Refactor a specific file using Draftify AI based on the provided instruction.Example:
draftify refactor src/index.ts -i "Add error handling to all promises"
Security & Privacy
The CLI is completely key-less. It communicates with the Draftify Website using short-lived session tokens. Your API keys remain securely on your local server/website configuration and are never exposed directly to the CLI or saved on the local filesystem of your projects.
Development
To build the CLI locally:
- Clone the repository
- Run
npm install - Run
npm run build - You can link it locally using
npm link
