# Dependency

## `@flxbl-io/sfp dependency`

Manage the dependencies of a project

* `@flxbl-io/sfp dependency expand`
* `@flxbl-io/sfp dependency install`
* `@flxbl-io/sfp dependency shrink`

### `@flxbl-io/sfp dependency expand`

Expand the dependency list in sfdx-project.json file for each package, fix the gap of dependencies from its dependent packages

```
USAGE
  $ @flxbl-io/sfp dependency expand -v <value> [-o] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -o, --overwrite                     Flag to overwrite existing sfdx-project.json file
  -v, --targetdevhubusername=<value>  (required) Username or alias of the Dev Hub org.
      --loglevel=<option>             [default: info] logging level for this command invocation
                                      <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>

DESCRIPTION
  Expand the dependency list in sfdx-project.json file for each package, fix the gap of dependencies from its dependent
  packages
```

*See code:* [*src/commands/dependency/expand.ts*](https://github.com/flxbl-io/sfp/blob/v37.0.1/src/commands/dependency/expand.ts)

### `@flxbl-io/sfp dependency install`

Install all the external dependencies of a given project

```
USAGE
  $ @flxbl-io/sfp dependency install -o <value> -v <value> [-k <value>] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -k, --installationkeys=<value>      Installation key for key-protected packages (format is packagename:key -->
                                      core:key nCino:key vlocity:key to allow some packages without installation key)
  -o, --targetusername=<value>        (required) Username or alias of the target org.
  -v, --targetdevhubusername=<value>  (required) Username or alias of the Dev Hub org.
      --loglevel=<option>             [default: info] logging level for this command invocation
                                      <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>

DESCRIPTION
  Install all the external dependencies of a given project
```

*See code:* [*src/commands/dependency/install.ts*](https://github.com/flxbl-io/sfp/blob/v37.0.1/src/commands/dependency/install.ts)

### `@flxbl-io/sfp dependency shrink`

Shrink the dependency list in sfdx-project.json file for each package, remove duplicate dependencies that already exist in its dependent packages

```
USAGE
  $ @flxbl-io/sfp dependency shrink -v <value> [-o] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -o, --overwrite                     Flag to overwrite existing sfdx-project.json file
  -v, --targetdevhubusername=<value>  (required) Username or alias of the Dev Hub org.
      --loglevel=<option>             [default: info] logging level for this command invocation
                                      <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>

DESCRIPTION
  Shrink the dependency list in sfdx-project.json file for each package, remove duplicate dependencies that already
  exist in its dependent packages
```

*See code:* [*src/commands/dependency/shrink.ts*](https://github.com/flxbl-io/sfp/blob/v37.0.1/src/commands/dependency/shrink.ts)
