D comes with a compilerdmd, a script-like run toolrdmd anda package managerdub.
TheDMD compiler compiles D file(s) and creates a binary.On the command lineDMD can be invoked with the filename:
dmd hello.dThere are many options that allow you to modify the behavior of theDMD compiler.Browse theonline documentation or rundmd --help for an overview of available flags.
rdmdThe helper toolrdmd, distributed with the DMD compiler,will make sure to compile all dependencies and automatically runsthe resulting application:
rdmd hello.dOn UNIX systems the shebang line#!/usr/bin/env rdmd can be puton the first line of an executable D file to allow a script-likeusage.
Browse theonline documentation or runrdmd --help for an overview of available flags.
dubD's standard package manager isdub. Whendub isinstalled locally, a new projecthello can be created usingthe command line:
dub init helloRunningdub inside this folder will fetch all dependencies, compile theapplication and run it.dub build will compile the project.
Browse theonline documentation or rundub help for an overview of available commands and features.
All available dub packages can be browsed through dub'sweb interface.