@jimuqu/devops-cli
v0.0.51
Published
Jimuqu DevOps CLI for humans, CI, and AI Agents.
Maintainers
Readme
Jimuqu DevOps CLI
@jimuqu/devops-cli provides the jimuqu-devops command for managing Jimuqu DevOps from a terminal, CI job, or AI Agent.
It can inspect resources, create API tokens, manage hosts/projects/deploy configs, trigger deployments, stream logs, cancel runs, and apply declarative JSON/YAML deployment files.
Install
npm install -g @jimuqu/devops-cli
jimuqu-devops --versionGive This CLI To An Agent
Send the Agent this skill file URL:
https://cdn.jsdelivr.net/npm/@jimuqu/devops-cli@latest/SKILL.mdOr use a fixed version for reproducible behavior. Replace <version> with the CLI version you want the Agent to use:
https://cdn.jsdelivr.net/npm/@jimuqu/devops-cli@<version>/SKILL.mdTell the Agent:
Read this SKILL.md, install the CLI with npm, use JSON output, and deploy through Jimuqu DevOps:
https://cdn.jsdelivr.net/npm/@jimuqu/devops-cli@latest/SKILL.mdThe skill file explains installation, authentication, API token usage, declarative apply, deployment triggers, log streaming, and safety rules for secrets.
Configure
Agents and CI should use environment variables:
export JIMUQU_DEVOPS_URL=http://127.0.0.1:18080
export JIMUQU_DEVOPS_TOKEN=jdp_xxx
jimuqu-devops status --jsonWindows PowerShell:
$env:JIMUQU_DEVOPS_URL = "http://127.0.0.1:18080"
$env:JIMUQU_DEVOPS_TOKEN = "jdp_xxx"
jimuqu-devops status --jsonHuman operators can login once:
jimuqu-devops login --url http://127.0.0.1:18080 --username admin
jimuqu-devops statusThe CLI stores url, username, and token only. It does not store passwords.
API Tokens
Create a long-lived token for Agents or CI:
jimuqu-devops token create --name codex-agent --json
jimuqu-devops token list --json
jimuqu-devops token revoke <token-id> --jsonFull token values are shown only once at creation time.
Common Workflow
jimuqu-devops status --json
jimuqu-devops host list --json
jimuqu-devops project list --json
jimuqu-devops apply --file jimuqu-devops.yml --trigger --watch --json--watch and --follow output JSONL events when --json is enabled.
Declarative Apply
apply supports .json, .yaml, and .yml files. It upserts resources by natural key:
- host:
name - notification channel:
name - project:
repo_url + branch
Sensitive values can reference local environment variables:
host:
password: ${SSH_PASSWORD}
project:
git_password: ${GIT_TOKEN}Run:
jimuqu-devops apply --file jimuqu-devops.yml --trigger --watch --jsonNotification Channel Body
notify create --file and notify update --file accept the same body shape as the notification_channel block in apply files. Use this to define notification channels declaratively without inspecting server or frontend source code.
DingTalk JSON example:
{
"name": "prod-dingtalk",
"type": "dingtalk",
"is_default": true,
"remark": "Production deploy alerts",
"config": {
"webhook_url": "https://oapi.dingtalk.com/robot/send?access_token=xxx",
"secret": "${DINGTALK_SECRET}"
}
}Supported Notification Channel Types
| type | required config fields | optional config fields |
| --- | --- | --- |
| webhook | url | token, secret |
| wechat | webhook_url | key |
| dingtalk | webhook_url | secret |
| feishu | webhook_url | none |
| email | smtp_host, smtp_port, username, password, from, to | subject |
Command Examples
jimuqu-devops notify create --file dingtalk-channel.json --json
jimuqu-devops notify test <channel-id> --jsonDiscovery
Use these commands to inspect the exact installed command surface:
jimuqu-devops agent commands --json
jimuqu-devops agent examples --json
jimuqu-devops agent schema --json
jimuqu-devops --helpMore Documentation
- GitHub repository: https://github.com/chengliang4810/jimuqu-devops
- Agent skill via npm CDN: https://cdn.jsdelivr.net/npm/@jimuqu/devops-cli@latest/SKILL.md
- Agent skill via GitHub raw: https://raw.githubusercontent.com/chengliang4810/jimuqu-devops/main/agent-skills/jimuqu-devops/SKILL.md
