Skip to content

Commit 60f5fa6

Browse files
authored
Tiny examples for --upload (#3588)
1 parent 51758a1 commit 60f5fa6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reference/commands/install.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,14 @@ Read more about lockfiles in :ref:`tutorial_consuming_packages_versioning_lockfi
214214
Update
215215
------
216216

217-
The ``conan install`` command has a ``--update`` argument that will force the re-evaluation of the selected items of the dependency graph,
217+
The ``conan install`` command has an ``--update`` argument that will force the re-evaluation of the selected items of the dependency graph,
218218
allowing for the update of the dependencies to the latest version if using version ranges, or to the latest revision of the same version,
219219
when those versions are not locked in the given lockfile. Passing ``--update`` will check every package in the dependency graph,
220220
but it is also possible to pass a package name to the ``--update`` argument (it can be added to the command more than once with different names),
221221
to only update those packages, which avoids the re-evaluation of the whole graph.
222+
223+
.. code-block:: bash
224+
225+
$ conan install . --update # Update all packages in the graph
226+
$ conan install . --update=openssl # Update only the openssl package
227+
$ conan install . --update=openssl --update=boost # Update both openssl and boost packages

0 commit comments

Comments
 (0)