您有两个方式创建应用:
  • wpctl init
    $ wpctl init
    ...
    No application get
    0) new a application
    Select a default application, default is create a application [0:new a application]:0
    You are going to create a application, please enter application name: demo-test
    ...
    [OK] Create application demo-test
    ...
  • webxctl apply时指定不存在的应用,添加--create-on-absent flag来促使创建操作发生,此时应用和环境都会被创建。
    wpctl env:apply
      --app target_app (此应用并不存在)
      --env target_env (此环境也不存在)
      --package https://*** --label v1 (or just using existed package with --pkgId)
      --create-on-absent (保证会进行创建操作)