<commit_before>.. _use-cli:

.. toctree::
   :maxdepth: 2

=========
Using CLI
=========

This section is under development at the moment and will be available soon.

Manage applications
~~~~~~~~~~~~~~~~~~~

Manage environments
~~~~~~~~~~~~~~~~~~~

Manage packages
~~~~~~~~~~~~~~~

This section describes how to manage packages using the command line
interface. You can easily:

* :ref:`import a package <cli_import>` or :ref:`bundles of packages <cli_bundles>`
* :ref:`list the existing packages <cli_list>`
* :ref:`display details for a package <cli_display>`
* :ref:`download a package <cli_download>`
* :ref:`delete a package <cli_delete>`
* :ref:`create a package <cli_create>`

.. _cli_import:
<commit_msg>[Murano Docs] [CLI] Manage environments<commit_after>.. _use-cli:

.. toctree::
   :maxdepth: 2

=========
Using CLI
=========

This section is under development at the moment and will be available soon.

Manage applications
~~~~~~~~~~~~~~~~~~~

Manage environments
~~~~~~~~~~~~~~~~~~~

An environment is a set of logically connected applications that are grouped
together for an easy management. By default, each environment has a single
network for all its applications, and the deployment of the environment is
defined in a single heat stack. Applications in different environments are
always independent from one another.

An environment is a single unit of deployment. This means that you deploy not
an application but an environment that contains one or multiple applications.

Using CLI, you can easily perform such actions with an environment as
creating, renaming, viewing, and others.

Create an environment
---------------------

To create an environment, use the following command specifying the
environment name:

.. code-block:: console

   murano environment-create <NAME>

Rename an environment
---------------------

To rename an environment, use the following command specifying the old name of
the environment or its ID and the new name:

.. code-block:: console

   murano environment-rename <OLD_NAME_OR_ID> <NEW_NAME>

Delete an environment
---------------------

To delete an environment, use the following command specifying the
environment name or ID:

.. code-block:: console

   murano environment-delete <NAME_OR_ID>

List deployments for an environment
-----------------------------------

To get a list of deployments for a particular environment, use the following
command specifying the environment name or ID:

.. code-block:: console

   murano deployment-list <NAME_OR_ID>

List the environments
---------------------

To get a list of all existing environments, run:

.. code-block:: console

   murano environment-list

Manage packages
~~~~~~~~~~~~~~~

This section describes how to manage packages using the command line
interface. You can easily:

* :ref:`import a package <cli_import>` or :ref:`bundles of packages <cli_bundles>`
* :ref:`list the existing packages <cli_list>`
* :ref:`display details for a package <cli_display>`
* :ref:`download a package <cli_download>`
* :ref:`delete a package <cli_delete>`
* :ref:`create a package <cli_create>`

.. _cli_import:

{'fraction_non_alphanumeric': 0.14775641025641026, 'fraction_numerical': 0.000641025641025641, 'mean_word_length': 3.9776714513556617, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3619284', 'n_tokens_mistral': 832, 'n_tokens_neox': 783, 'n_words': 365}