
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
This is a command-line interface (CLI) for interacting with the CoCode AI Studio backend, designed to be published as an NPM package.
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
The CLI provides several commands to interact with the backend services.
cocode --help
cocode chat "Your message to the AI"
cocode chat "Buatkan component React untuk form login" --project-type react
cocode generate --name "My New App" --req "A simple todo list application" --feat "Add, remove, and mark todos as complete" --framework nextjs
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"
# List all your projects
cocode workspaces list
# Load details about a specific workspace
cocode workspaces load <PROJECT_ID>
# List all your previews
cocode previews list
# Create a new preview for a project
cocode previews create <PROJECT_ID>
FAQs
CoCode AI Studio CLI - Your AI-powered code assistant in the terminal.
The npm package cocode-ai receives a total of 0 weekly downloads. As such, cocode-ai popularity was classified as not popular.
We found that cocode-ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.