Skip to content

Push command

Pushes a package to a package source and publishes it.

Usage

bat
dpm push <packagePath> [options]

where <packagePath> identifies the package to push to the server.

Options

OptionDescription
apiKeyThe API key for the target repository. If not present, the one specified in the config file is used.
configFileThe DPM configuration file to apply. If not specified, %AppData%\.dpm\dpm.config is used.
helpDisplays help information for the command.
sourceSpecifies the server URL. DPM identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP. Required.
skipDuplicateIf a package and version already exist, skip it.
timeoutSpecifies the timeout, in seconds, for pushing to a server. The default is 300 seconds (5 minutes).
verbositySpecifies the amount of detail displayed in the output: normal, quiet, detailed.

Examples

bat
dpm push .\VSoft.SemanticVersion.1.0.1.dpkg -source=local

dpm push .\VSoft.SemanticVersion.1.0.1.dpkg -source=corporate -apiKey=abcdef