RockoAI is a browser-based AI-assisted code editing platform. We believe you should never be locked into any platform when it comes to your tech stack choice. Therefore, we offer a way for you to pull your codebase and push it back to RockoAI whenever you want.
You can install the CLI globally:
npm install -g rockoai-cli
Or run it directly:
npx rockoai-cli
Before using any commands, you need to authenticate:
rockoai login
rockoai logout
This will open a browser window where you can log in to your RockoAI account. After successful login, the CLI will receive and store an authentication token.
Pull a project from RockoAI directly into your current directory:
rockoai pull -p <project-id>
This will download all project files into your current working directory.
Push files from your current directory to a RockoAI project:
rockoai push -p <project-id>
This will upload all files from your current directory to the specified project.
To set up the development environment:
- Clone the repository
- Install dependencies:
npm install
- Run the CLI:
npm start
To install the CLI locally for testing:
npm link
Then you can use the rockoai
command from anywhere in your terminal.
ISC
-
If the directory is empty we can pull the files
-
If the directy is not only, check if .rockoai.json PROJECT_ID is equal to the project id If so, pass
-
If not, create a folder with the project name and put there