Require Package Dependency
apex package require <PKG_ALIAS> <DEPENDENCY> [ <VERSION>] [--composer]
|
|
Installs a dependency (Composer or Apex), and registers it as a dependency with the package ensuring it's installed when the package is installed on other machines.
|
Parameters
Parameter | Description |
---|---|
pkg_alias | The package alias to register the dependency to. |
dependency | The Composer / Apex package name of the dependency to install. |
version | Optional version of the dependency to install. |
Flags
Flag | Description |
---|---|
--composer | Add this flag if installing a Composer dependency. If not present, Apex dependency will be assumed. |
Examples
- ./apex package require myshop apex/transaction
- ./apex package require myshop guzzlehttp/http --composer