Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-218

Create-app, create-content-type with a specific workspace

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • 3.0.7
    • None

    Description

      Currently, create-app and create-content-type commands also create a same-name workspace:

      mgnl create-content-type a

      mgnl create-app a

      /light-modules/foo/contentTypes/a.yaml

       

      # Automatically generated contentType demonstrates usage of the common properties.
      # Modify them to match your requirements.
      datasource:
          workspace: a
      
      <...>

      Improvement

      For both commands, allow the user to set the name of the workspace, e.g. with a switch `-w`.

      This will give the user more flexibility by linking up the newly created app/CT to an already existing workspace: e.g.

      `mgnl create-app bookshelf-app-enterprise -w books`

      Note

      If the workspace already exists, the contenttypes system will work with it seamlessly.

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mdrapela Martin Drápela
                Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD