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.
Install CodeFix globally via npm:
npm install -g codefixStart the server and sync a project:
codefix --project /path/to/projectIf no project path is specified, it defaults to the current directory.
View or update the secret key:
codefix key [new-key]View or update the port:
codefix port [new-port]Stop the running server:
codefix killAfter the server is running, add a new project:
curl -X POST http://localhost:60280/projects?key=your-secret-key -d '{"path":"/path/to/project"}'Retrieve or update files via API.
curl http://localhost:60280/projects/[project-id]/files/[file-path]?key=your-secret-keycurl -X POST http://localhost:60280/projects/[project-id]/files/[file-path]?key=your-secret-key -d '{"contents":"new content"}'Settings like the secret key and port are saved in ~/.codespin/codefix.json.