codefix
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

CodeFix

Overview

CodeFix is a CLI tool for managing and syncing local projects. It allows you to add, manage, and access project files via a local server.

Installation

Install CodeFix globally via npm:

npm install -g codefix

Usage

Start the Server

Start the server and sync a project:

codefix --project /path/to/project

If no project path is specified, it defaults to the current directory.

Manage Secret Key

View or update the secret key:

codefix key [new-key]

Manage Port

View or update the port:

codefix port [new-port]

Stop the Server

Stop the running server:

codefix kill

Add Project via API

After the server is running, add a new project:

curl -X POST http://localhost:60280/projects?key=your-secret-key -d '{"path":"/path/to/project"}'

File Operations

Retrieve or update files via API.

Get File:

curl http://localhost:60280/projects/[project-id]/files/[file-path]?key=your-secret-key

Update File:

curl -X POST http://localhost:60280/projects/[project-id]/files/[file-path]?key=your-secret-key -d '{"contents":"new content"}'

Configuration

Settings like the secret key and port are saved in ~/.codespin/codefix.json.

Readme

Keywords

Package Sidebar

Install

npm i codefix

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

38.1 kB

Total Files

40

Last publish

Collaborators

  • jeswin