360 Secure SkillHub
360 安全技能中心

community-cli-howto

该 Skill 说明 community-domo-cli 的安装与 Domo 认证流程,列出 datasets、appdb、code-engine、workflows、filesets 的命令范围,并提供认证、400/404 与变更操作排障建议;明确不支持删除和 raw passthrough。

stahura
热度 0.00
最近更新 2026-10-19 07:48:10
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:API 集成 / DevOps / 数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add stahura/domo-ai-vibe-rules/community-cli-howto
Metadata
name
community-cli-howto
description
General instructions for using the community-domo-cli in this repository, including install/auth setup, endpoint testing, and troubleshooting.

Community Domo CLI

Purpose

Run and troubleshoot community-domo-cli commands in this repository with the current locked endpoint surface.

Install and run

Recommended for users:

pipx install "git+https://github.com/stahura/community-domo-cli.git"
community-domo-cli --help

Contributor/testing path:

python3 -m pip install -e .
community-domo-cli --help

# alternate module invocation for local dev
python3 -m community_domo_cli --help

Auth setup (Ryuu session)

Prereq — install the Domo CLI and log in once:

npm install -g ryuu
domo login -i modocorp.domo.com

Then set env vars before running commands:

export DOMO_INSTANCE=modocorp
export DOMO_AUTH_MODE=ryuu-session
community-domo-cli datasets list

Token auth is deprecated. auth_mode=token is no longer supported by community-domo-cli. If you see "Token auth mode is no longer supported", run domo login -i <instance> again and keep DOMO_AUTH_MODE=ryuu-session.

  • CLI reads the login file from ~/.config/configstore/ryuu/<instance>.json
  • It reuses refresh/session behavior from domo login

Important implementation constraints

  • Product API base is https://<instance>.domo.com/api (the CLI already handles /api).
  • No delete operations are supported.
  • No raw passthrough command exists.
  • Use --dry-run first for mutating operations when validating payloads.

Supported command surface (current)

datasets

  • datasets list
  • datasets schema <dataset_id>
  • datasets sql <dataset_id> --body/--body-file

appdb

  • appdb collections
  • appdb collection-get <collection_id>
  • appdb document-create <collection_id> --body/--body-file

code-engine

  • code-engine get-package <package_id>
  • code-engine create-package --body/--body-file
  • code-engine update-version <package_id> <version> --body/--body-file

workflows

  • workflows get <workflow_id>

filesets

  • filesets get <fileset_id>
  • filesets file-get <fileset_id> <file_id>
  • filesets upload <fileset_id> --body/--body-file
  • filesets download <fileset_id> <file_id> --output <path>

Troubleshooting checklist

  1. Confirm invocation style:
    • Prefer community-domo-cli ...
    • python3 -m community_domo_cli ... is mainly for local contributor testing
    • Do not run python3 community_domo_cli ...
  2. Confirm auth inputs:
    • DOMO_INSTANCE and DOMO_AUTH_MODE=ryuu-session are set
    • domo login has been run successfully for the target instance
  3. Confirm identifier type:
    • dataset UUID for datasets commands
    • fileset UUID and file UUID for filesets commands
  4. For 400/404 issues, retry a known-good GET first:
    • datasets list
    • appdb collections
  5. For mutating calls, validate payload with --dry-run before real execution.

Response style for this project

  • Be terse and concrete.
  • Provide exact commands, not high-level instructions.
  • Prefer giving a direct fix command first, then brief explanation.