# dependencies

## Description

* Update the versions of one or more native dependencies in a non-released target native application version container (Cauldron) &#x20;
* Generate and publish a new Container version

## Syntax

`ern cauldron update dependencies <dependencies..>`

**Arguments**

`<dependencies..>`

* One or more dependencies (delimited by spaces) to update in a target native application version in the Cauldron.
* You can only update with native dependency versions that have been published to NPM.&#x20;
* You cannot use the `file` or `git` schemes for the dependency(ies).
* The version of each dependency is corresponding to the version to update to.&#x20;

**Example**

`ern cauldron update dependencies MyDependency@1.2.3`\
This example shows how to update the version of `MyDependency` to 1.2.3 in the native application version.

**Options**

`--containerVersion/-v <version>`

* Specify a version for the new container &#x20;
* **Default**  Incremental patch number of the current container version &#x20;

  Example: If the current container version is 1.2.3 and a version is not included in the command, the new container version will be 1.2.4.

`--descriptor/-d <descriptor>`

* Update the native dependencies in a given target native application version in the Cauldron matching the provided native application descriptor &#x20;
* You can only pass a *complete native application descriptor* as the native dependencies updated using this command target only a specific single native application version. &#x20;

  **Default**  Lists all non-released native application versions from the Cauldron and  prompts you to choose one to update.

## Remarks

* The `ern cauldron update dependencies <dependencies..>` command is rarely used. &#x20;
* Native dependency versions are automatically updated if necessary when adding or updating MiniApps using the `ern cauldron add miniapps` command and the `ern cauldron update miniapps` command &#x20;

## Related commands

\[ern cauldron add dependencies] | Add one or more new native dependencies

\[ern cauldron add dependencies]: ../add/dependencies.md
