Loading...
Loading...
openerp (Kingdee Cloud·Star ERP CLI) Shared Base: Profile credential configuration, LoginBySign authentication and session reuse, general query (ExecuteBillQuery), output envelope and exit codes, dry-run. Must-read before using openerp for the first time, configuring profile, or troubleshooting authentication/query issues.
npx skill4agent add xiaowen-0725/openerp-cli openerp-sharedopenerp-bomquerybom viewbom listdoctorauthappSecretKDSVCSessionId~/.config/openerp/session-*.jsontype:"configuration"openerp config list--profileprod--server-url/K3Cloud/--acct-id--user--app-id--app-secret--lcid--app-secret~/.config/openerp/config.jsonconfig listopenerp config set --profile <name> --server-url ... --acct-id ... --user ... --app-id ... --app-secret ...openerp doctoropenerp config set --profile prod \
--server-url "https://<instance>.ik3cloud.com/K3Cloud/" \
--acct-id <data-center-id> --user <username> \
--app-id <APP_ID> --app-secret <APP_SECRET> --lcid 2052
openerp config list # appSecret is masked; * marks current profile
openerp config use <name> # Switch current profile
openerp config path # Print configuration file path~/.config/openerp/config.jsonOPENERP_PROFILE / OPENERP_SERVER_URL / OPENERP_ACCT_ID / OPENERP_USER / OPENERP_APP_ID / OPENERP_APP_SECRET / OPENERP_LCIDLoginBySignKDSVCSessionIdkdservice-sessionidopenerp auth test # Actual LoginBySign, ✓ means credentials are valid
openerp auth status # Check current profile (no request sent)
openerp doctor # Self-check: configuration → login → probe query; check items one by one with ✓/✗ + repair hintsopenerp doctoropenerp query --form-id <FormId> --fields "<comma-separated fields>" \
[--filter "<SQL-style filter>"] [--order "FNumber desc"] \
[--top N] [--start N] [--limit N] [--page-all] [--page-limit N]--fieldsFMATERIALIDCHILD.FNumberFSupplierId.FName--filterFMATERIALID.FNumber='1.30.67.0132'in ('a','b')and/or--fieldsENG_BOMPUR_PriceCategory{ "ok": true, "data": <result>, "meta": {"count": N} }{ "ok": false, "type": "...", "message": "...", "hint": "executable next step", ... }| Exit Code | Meaning | Typical Action |
|---|---|---|
| 0 | Success | — |
| 1 | K3 business error (api) | Check |
| 2 | Parameter error (validation) | Check |
| 3 | Authentication/configuration failure | Run |
| 4 | Network error | Check network and |
| 5 | Internal error | Report the issue |
--format json|ndjson|table|csv--jq. / .data / .data[0] / .data.FName--dry-runopenerp objects --keyword <term>openerp schema <FormId> --fields-only../openerp-discovery/SKILL.mdopenerp <domain> <object> list|view../openerp-domains/SKILL.md../openerp-bom/SKILL.mdFMaterialIdFEntity.FMaterialIdFSupplierId.FNameopenerp inventory balance list --material <code>STK_InventorySTK_InventoryQueryobject-notes/{FormId}.{profile}.md~/.config/openerp/object-notes/$OPENERP_CONFIG_DIR/object-notes/openerp config pathreferences/object-notes.mdopenerp config list--profilels ~/.config/openerp/object-notes/{FormId}.{profile}.mdaliasesupdatedok:trueobject-notes/{FormId}.{profile}.mdupdatedreferences/object-notes.mdmkdir -pVerification anchorsprofilerm ~/.config/openerp/object-notes/{FormId}.{profile}.md