alibabacloud-livedebug
Installation
SKILL.md
Live-Debug Runtime Diagnostics
Product scope: This skill builds and manages Live-Debug ServiceTask diagnostics on Alibaba Cloud CMS (
aliyun cms2 apm service-task) and queries capture results via SLS. It does not onboard APM/agents and is not a general CloudMonitor (CMS) management skill.
Prerequisite Check
- Check
aliyunexists -which aliyun(macOS/Linux) orwhere aliyun(Windows).
- Not found -> guide the user through Aliyun CLI Installation below. After installation, re-check
aliyun versionbefore continuing.
- Check CLI version - run
aliyun version. Minimum required: 3.3.15 (seecompatibilityin frontmatter).
Compare version segments as integers (semver): 3.3.4 < 3.3.15 because 4 < 15. Version 3.3.15 itself meets the minimum requirement.
- Version OK -> go to step 3.
- Version too old or unrecognized ->
- For Homebrew installations, run
brew updateand thenbrew upgrade aliyun-cli, then re-checkaliyun version. For other installations, runaliyun upgrade --helpto test whether theupgradesubcommand exists.
- Available -> run
aliyun upgrade -y, then re-checkaliyun version. - Not available (or the upgrade fails) -> guide the user to reinstall from Aliyun CLI Installation or follow the official installation/update guide. Do NOT pipe remote install scripts directly into a shell interpreter - download the installer, inspect it, then run it deliberately, or use the OS package manager. Stop and wait if installation remains unresolved.
- If the upgrade succeeded -> go to step 3.