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, or with cache verify re-checks every package already in the cache.yes
configGets or sets DPM config values.no
deleteDeletes a package from the server.no
helpGet helpyes
infoShows information about the active DPM configuration.yes
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.yaml are used.yes
packCreates a DPM package based on the specified .dspec.yaml file.yes
preparePrepares per-Delphi-version subfolders under /packages with version-correct dpk/dproj files.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.yes
sbomGenerates a Software Bill of Materials (CycloneDX / SPDX) for a project or project group.yes
scanScans a CycloneDX SBOM or a project for known vulnerabilities (OSV).yes
setapikeySaves an API key for a given server URL. When no URL is provided the API key is saved for the DPM public repository.no
signSigns DPM packages with a code-signing certificate.yes
sourcesManages the list of package sources in %AppData%\.dpm\dpm.config.yaml.yes
specGenerates a package.dspec.yaml for a new package. If run in a folder with a .dproj, the generated spec is tokenised based on the project.yes
trustManages the local trust policy - trusted publishers and trusted repositories.yes
uninstallUninstalls a package from a project.yes
updateUpdates a package using the specified sources.no
verifyVerifies the signatures on a DPM package.yes
whyShows the dependency chain(s) that pull a package into a project.yes