Loading...
Loading...
Manage CompShare GPU cloud resources through the compshare CLI. Use when Codex needs to install or configure compshare-cli, search GPU specifications and inventory, inspect pricing, create or manage instances, connect over SSH, transfer files, run durable remote jobs, manage images, disks, US3, teams or billing, ask product questions, or diagnose CLI problems.
npx skill4agent add compshare-cn/compshare-cli compshare-clicompsharecompshare --json ...compshare --json COMMAND --helpcompshare --json --profile production instance list --allinstance create --dry-run--yes--show-sensitivepip install compshare-cli
pip install --upgrade compshare-clicompshare config --name default
compshare config list
compshare --json doctorexport COMPSHARE_PUBLIC_KEY='...'
export COMPSHARE_PRIVATE_KEY='...'
compshare --json doctor--profile NAMEcompshare config pathcompshare config use NAMEcompshare --json --help
compshare --json instance --help
compshare --json instance create --help
compshare --json image list --help--json--profile NAME--lang zh|en--show-sensitive--versioncompshare --json instance zones
compshare --json image list \
--source platform \
--region cn-sh2 \
--zone cn-sh2-02 \
--all
compshare --json instance search \
--region cn-sh2 \
--zone cn-sh2-02 \
--gpu 4090 \
--image IMAGE_ID \
--available--imageinstance searchcompshare --json instance create \
--region cn-sh2 \
--zone cn-sh2-02 \
--gpu 4090 \
--count 1 \
--cpu 16 \
--memory 64GiB \
--image IMAGE_ID \
--image-source platform \
--disk 100GiB \
--charge Postpay \
--max-count 1 \
--max-price 20 \
--dry-run--dry-run--yescompshare --json instance create \
--region cn-sh2 \
--zone cn-sh2-02 \
--gpu 4090 \
--count 1 \
--cpu 16 \
--memory 64GiB \
--image IMAGE_ID \
--image-source platform \
--disk 100GiB \
--charge Postpay \
--max-count 1 \
--max-price 20 \
--yes \
--timeout 900--gpu--count--cpu--memory--image--region--zone--count--max-count# List and filter
compshare --json instance list --all
compshare --json instance list --status Running --gpu 4090 --all
# Show a full record or selected sections
compshare --json instance show INSTANCE_ID
compshare --json instance show INSTANCE_ID --status --spec --billing
# Batch lifecycle operations
compshare --json instance start INSTANCE_1 INSTANCE_2 --timeout 600
compshare --json instance stop INSTANCE_1 INSTANCE_2 --yes --timeout 600
compshare --json instance wait INSTANCE_1 INSTANCE_2 --state Running --timeout 600
# Permanently delete; add --release-disk only when attached data disks must also be deleted
compshare --json instance delete INSTANCE_ID --yes --timeout 600instance rename, password, reinstall, resize
instance price, resize-price, billing, refund, charge
instance network, models, ports, schedule, software, templatecompshare --json instance COMMAND --helpinstance sshcompshare instance ssh INSTANCE_ID
compshare --json instance ssh INSTANCE_ID -- nvidia-smi
compshare --json instance ssh INSTANCE_ID -- sh -lc 'cd /workspace && python train.py'--sh -lc&&:compshare --json instance cp INSTANCE_ID ./model.bin :/workspace/model.bin
compshare --json instance cp INSTANCE_ID ./dataset :/workspace/dataset
compshare --json instance cp INSTANCE_ID :/workspace/results ./results--refresh--no-cacheinstance jobcompshare --json instance job submit INSTANCE_ID \
--name training \
--cwd /workspace/project \
-- python train.py --epochs 100
compshare --json instance job list INSTANCE_ID
compshare --json instance job show INSTANCE_ID JOB_ID
compshare --json instance job logs INSTANCE_ID JOB_ID --tail 200
compshare --json instance job wait INSTANCE_ID JOB_ID --timeout 3600--followcompshare --json instance job logs INSTANCE_ID JOB_ID \
--stdout-offset STDOUT_OFFSET \
--stderr-offset STDERR_OFFSET \
--limit 65536compshare --json instance job cancel INSTANCE_ID JOB_ID --yes
compshare --json instance job prune INSTANCE_ID --older-than 7d --yescompshare --json image --help
compshare --json storage --help
compshare --json storage disk --help
compshare --json team --helpimage list/show/create/progress/update/delete/share/unshare/publish
storage disk list/create/attach/detach/price/resize/delete
storage us3 attach
team list/joined/show/create/update/delete/audit
team invite/member/quota/billing--yescompshare --json ask '按量实例关机以后,云硬盘还收费吗?'
compshare --json doctor
compshare feedback bug '创建实例时发生错误'askdoctorfeedback{
"ok": true,
"schema_version": "1",
"data": {}
}ok: falseerror.codeerror.messageerror.detailsdata.itemsmetaokcompshare --json doctorcompshare config list--available--instance jobcompshare --json COMMAND --help