Skip to content

jerrickhakim/rockoai-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RockoAI CLI

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.

Installation

You can install the CLI globally:

npm install -g rockoai-cli

Or run it directly:

npx rockoai-cli

Usage

Authentication

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.

Commands

Pull a Project

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 a Project

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.

Development

To set up the development environment:

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Run the CLI:
    npm start

Local Installation for Testing

To install the CLI locally for testing:

npm link

Then you can use the rockoai command from anywhere in your terminal.

License

ISC

  1. If the directory is empty we can pull the files

  2. If the directy is not only, check if .rockoai.json PROJECT_ID is equal to the project id If so, pass

  3. If not, create a folder with the project name and put there

rockoai-cli

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published