
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Kha CLI is a command-line tool for remote AI assisted development and managing your work with multiple websites on KhaCloud based cloud services. The tool can be used with non KhaCloud projects for remote AI assisted development.
Documentation for Plugins development can be found here.
n package could be used)sudo npm install -g node-pre-gyp)Note: To install n
sudo npm install -g n
sudo n v18.14.0 # to install v18.14.0
sudo n v14.18.1 # to install v14.18.1
sudo n # to switch between versions
Note: node-pre-gyp May require build tools
sudo apt-get update
sudo apt-get install python3 make g++ python3-pip
sudo npm install -g node-pre-gyp
sudo npm install -g kha_cli
** For windows users: ** Open a command prompt as administrator and run the following command before installation:
Set-ExecutionPolicy RemoteSigned
sudo npm update -g kha_cli
Before using Kha Plugins CLI, you need to set up your kha-plugin-config.jsonc file
kha connectConnects a local project for remote work/development
Can work on KhaCloud projects or any other type of projects
Create a CyberOcean cloud account for enhanced AI capabilities, persistent and more secure project management
kha connect configCreates the config file kha-connect.jsonc to add action scripts, to run remotely from the dev envirement
Example of a config file:
{
"actions": [
{
"enabled": true, // Should be set true or the action will be ignored
"key": "kha-upload", // Should be unique
"label": "Kha Upload", // The name shown on the button
"icon": "mdi-upload", // Accepts only MDI Icons
"command": "kha upload" // Command to execute EXP: "npm run build", "./my-bash-script.sh", ...
}
]
}
kha initInitializes a new Kha Plugins project
kha init fixFixes the project initialization by adding the missing files or folders
kha uploadUploads your work to the default website
# Upload with ignoring some tasks (Tasks names are not case sensitive)
kha upload --ignore=tasks,adminui,...
kha listenListens for changes in your work and uploads them to the website
kha routesShows the API and WEB routes endpoints
kha aiRuns an AI task, It's based on OpenAI's GPT-3 API, Some tasks require GPT-3 16K model, OpenAI key is required
kha themeShows the theme commands list, and the available themes
kha theme init <THEME_NAME>Initializes a new theme
kha theme upload <THEME_NAME>Uploads the all the theme files/settings to the website
kha theme static-upload <THEME_NAME>Uploads the theme static files to the website
kha init tasks
Copy the example task in the tasks folder
Rename the file kha-task.example.jsonc to kha-task.jsonc, and fill the options
Use the task from the API, by creating a task object
// Example task to generate a video
const generateVideoTask = await utils.createTask("generate-video");
// Run the task and wait for the result, `true` is used to run the task as admin, if `false` the task will be run as the current user
const taskResult = await generateVideoTask.runAndWait(data, true);
// Run the task and don't wait for the result, and get task id, to retrieve the result later
await generateVideoTask.run(data, true);
const taskId = generateVideoTask.id; // Store the task id to use it later to retrieve the result and the state
// After some time OR from another request
const taskId = /* Retrieve the task id from where it's stored */;
const generateVideoTask = await utils.getTaskById(taskId);
const taskResult = await generateVideoTask.getResult();
// To get task state and any given point in time
const taskStatus = await myTask.getState(); // pending, finished, failed
For more information about tasks creation, visit the documentation of PETH plugins_engine_task_handler on Github
kha upload scriptkha-pre-install.shkha upload script (After uploading to the server)kha-install.shFAQs
KhaCloud CLI Tool for KhaCloud Development and Deployment
The npm package kha_cli receives a total of 1 weekly downloads. As such, kha_cli popularity was classified as not popular.
We found that kha_cli 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.