Skip to content

DPM CLI Commands

This list is the implemented and planned cli commands. Subject to change.

Note you can get help for each command from the command line by invoking

bat
dpm help <command>
CommandDescriptionImplemented
cacheDownloads a package to the local package cache using the specified sources. If no sources are specified, those listed in the global configuration file, %appdata%\DPM\dpm.Configyes
configGets or sets DPM config values.no
deleteDeletes a package from the server.no
helpGet helpyes
installInstalls a package using the specified sources. If no sources are specified, all sources defined in the DPM configuration file are used. If the configuration file specifies no sources, uses the default DPM feed.yes
listDisplays a list of packages from a given source. If no sources are specified, all sources defined in %AppData%\DPM\DPM.config are used. If DPM.config specifies no sources, uses the default DPM feed.yes
packCreates a DPM package based on the specified .dspec file.yes
pushPushes a package to a package source and publishes it.yes
restoreRestores package(s) using the specified sources. If no sources are specified, all sources defined in the DPM configuration file are used. If the configuration file specifies no sources, uses the default DPM feed.yes
setapikeySaves an API key for a given server URL. When no URL is provided API key is saved for the DPM gallery.no
signSigns all the packages matching the first argument with a certificate.no
sourcesProvides the ability to manage list of sources located in %AppData%\DPM\dpm.configyes
specGenerates a package.dspec for a new package. If this command is run in the same folder as a project file (.dproj), it will create a tokenized dspec file.no
uninstallUninstalls a package from a project.yes
updateUpdates a package using the specified sources. If no sources are specified, all sources defined in the DPM configuration file are used. If the configuration file specifies no sources, uses the default DPM feed.no
verifyVerifies the signature of the specified package files.no
whyExplains why a package is referenced.no