You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询Cumulocity本地开发中启用同目录应用检测的配置参数

Cumulocity Local Dev: Enable Parent Directory App Scanning for Hidden Plugins

Hey there, let's break down how to get that parent directory scanning behavior back in your Cumulocity local development setup!

The Background

As you noted, older versions of cumulocity-tools (like 2.0.26) automatically scanned all sibling apps in the same parent folder when running c8y server, letting your apps reference plugins stored in hidden "plugin container" apps. Newer versions changed this default behavior, but there's a simple config fix to re-enable it.

The Solution: Use the scanParentDirectory Config

Yes, there is a configuration parameter to reactivate the parent directory scanning:

  • Command-line quick fix: When starting your local server, add the --scanParentDir flag directly:
    c8y server --scanParentDir
    
  • Persistent config: To make this the default for your project, add the setting to either:
    1. Your project's package.json under the cumulocity section:
      {
        "cumulocity": {
          "server": {
            "scanParentDirectory": true
          }
        }
      }
      
    2. A .c8yrc file in your project root (create it if it doesn't exist):
      {
        "server": {
          "scanParentDirectory": true
        }
      }
      

Extra Checks

Just to cover all bases:

  • Make sure your hidden plugin app has "hidden": true set in its own package.json — this marks it as a plugin container that other apps can reference.
  • After setting the config, restart your c8y server instance to apply the changes.

内容的提问来源于stack exchange,提问作者Meykel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:26:56