@@ -24,12 +24,69 @@ Installation
2424
2525To install ``diffpy.cmi ``, create a new conda environment or activate an existing environment and install the package from the conda-forge channel.
2626
27- .. code-block :: console
27+ .. code-block :: bash
2828
2929 conda create -n diffpy.cmi-env
3030 conda install -c conda-forge diffpy.cmi
3131 conda activate diffpy.cmi-env
3232
33+ To confirm that the installation was successful, type
34+
35+ .. code-block :: bash
36+
37+ python -c " import diffpy.cmi; print(diffpy.cmi.__version__)"
38+
39+ The output should print the latest version.
40+
41+ If the above does not work, you can use ``pip `` to download and install the latest release from
42+ `Python Package Index <https://pypi.python.org >`_.
43+ To install using ``pip `` into your ``diffpy.cmi_env `` environment, type
44+
45+ .. code-block :: bash
46+
47+ pip install diffpy.cmi
48+
49+ Pack and Profile Installation
50+ -----------------------------
51+
52+ Use the `cmi ` command-line interface to install and manage modular optional dependencies, known as `packs `,
53+ and to configure or execute user-defined workflows that combine multiple packs with optional post-installation steps,
54+ known as `profiles `. To use `cmi `, you can run the following example commands:
55+
56+ Show available commands and options with,
57+
58+ .. code-block :: bash
59+
60+ cmi -h
61+
62+ List installed and available packs and profiles,
63+
64+ .. code-block :: bash
65+
66+ cmi pack list
67+ cmi profile list
68+
69+ Show details of a specific pack or profile,
70+
71+ .. code-block :: bash
72+
73+ cmi pack show < pack_name>
74+ cmi profile show < profile_name>
75+
76+ Install a pack or profile (by name or path),
77+
78+ .. code-block :: bash
79+
80+ cmi install < pack_name>
81+ cmi install < profile_name>
82+ cmi install < /absolute/path/to/profile>
83+
84+ List and get installed examples,
85+
86+ .. code-block :: bash
87+
88+ cmi example list
89+ cmi example (copy) < example_name>
3390
3491 Data and Examples
3592-----------------
0 commit comments