New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

cocode-ai

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cocode-ai

CoCode AI Studio CLI - Your AI-powered code assistant in the terminal.

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

CoCode AI CLI (NPM Package)

This is a command-line interface (CLI) for interacting with the CoCode AI Studio backend, designed to be published as an NPM package.

Installation

To install the CLI globally, run:

npm install -g cocode-ai

Alternatively, you can install it locally for development:

# Navigate to the cocode-cli directory
cd cocode-cli

# Install dependencies
npm install

# Link the package for local development
npm link

Usage

The CLI provides several commands to interact with the backend services.

General Help

cocode --help

AI Assistant (Chat)

cocode chat "Your message to the AI"
cocode chat "Buatkan component React untuk form login" --project-type react

Generate a New Project

cocode generate --name "My New App" --req "A simple todo list application" --feat "Add, remove, and mark todos as complete" --framework nextjs

Fix a Piece of Code

You can pass the code directly or use the --file option.

cocode fix --error "Syntax error on line 5" --code "function hello() { console.log('hello' "
cocode fix --error "Missing semicolon" --file "path/to/your/file.js" --reqs "Ensure code is ES6 compliant"

Manage Workspaces

# List all your projects
cocode workspaces list

# Load details about a specific workspace
cocode workspaces load <PROJECT_ID>

Manage Previews

# List all your previews
cocode previews list

# Create a new preview for a project
cocode previews create <PROJECT_ID>

Keywords

cli

FAQs

Package last updated on 17 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts