.. _working-with-compositions: ========================= Working with compositions ========================= This chapter describes how to create a composition, create its first version, add new versions and manage composition settings. Creating composition ------------------------------ Go to the **Compositions** tab in the sidebar (see :doc:`../compositions-intro`). An empty list of compositions is displayed. .. image:: images/cm-composition-section.png :width: 500px :alt: Compositions section :align: center Click the **\"+\"** button in the top right corner. Enter a name for the composition, for example, "Test Composition". .. image:: images/cm-composition-creation.png :width: 500px :alt: Composition creation :align: center Press **Create**. The newly created composition opens automatically. Versioning ------------------------- A new composition contains no versions; only the **Create first version** button is available. The examples in this chapter use a "Hello World" application. :download:`Download the application ` Creating version ^^^^^^^^^^^^^^^^^^^^^^^^^^ Press **Create first version** and enter a version number. .. important:: Use semantic versioning in the X.Y.Z format, where X is the major version, Y is the minor version and Z is the patch version. This improves the readability and maintainability of the composition. Optionally, enter a description of the version. A description is recommended. Then add the application file (the ``.yml`` file downloaded earlier): drag and drop it, or click **Choose file** and select it on your computer. .. image:: images/cm-compositions-creating-version.png :width: 500px :alt: Creating the first version :align: center Press **Create**. The first version of the composition is created. .. image:: images/cm-composition-version-look.png :width: 500px :alt: Composition page after creating the first version :align: center Adding a version ^^^^^^^^^^^^^^^^^^^ Adding a version requires a new version of the application. Download it here: :download:`Hello World App 1.0.1 ` Click the **Create version** button in the top right corner. .. image:: images/cm-composition-add-version.png :width: 500px :alt: Create version button :align: center The version creation pop-up opens. Follow the same steps as for the first version. .. image:: images/cm-composition-adding-version.png :width: 500px :alt: Version creation pop-up :align: center Click **Create**. The new version appears in the version dropdown list. .. image:: images/cm-checking-composition-versions.png :width: 500px :alt: Dropdown list of available versions :align: center Composition settings --------------------- After clicking on the gear wheel icon in the top right corner, the pop-up will appear. Here the composition can be either renamed or deleted. .. image:: images/cm-composition-settings.png :width: 500px :alt: Composition settings :align: center .. warning:: Deleting a composition cannot be undone.