dub-init - Initializes an empty package skeleton
Contents
Description
Initializes an empty package of the specified type in the given directory.
By default, the current working directory is used.
Custom templates can be defined by packages by providing a sub-package called "init-exec". No default
source files are added in this case.
The "init-exec" sub-package is compiled and executed inside the destination folder after the base project
directory has been created.
Free arguments "dub init -t custom -- free args" are passed into the "init-exec" sub-package as app
arguments.
Exit Status
0 DUB succeeded
1 usage errors, unknown command line flags
2 package not found, package failed to load, miscellaneous error
Files
dub.sdl, dub.json
Name
dub-init - Initializes an empty package skeleton
Online Documentation
Options
-t, --type=VALUE
Set the type of project to generate. Available types:
minimal - simple "hello world" project (default) vibe.d - minimal HTTP server based on vibe.d deimos
- skeleton for C header bindings custom - custom project provided by dub package
-f, --format=VALUE
Sets the format to use for the package description file. Possible values:
json (default), sdl
-n, --non-interactive
Don't enter interactive mode.
COMMONOPTIONS
See dub(1)
See Also
dub(1), dub-add(1), dub-convert(1) The D Language Foundation 2025-01-22 DUB-INIT(1)
Synopsis
dubinit [<directory> [<dependency>...]] OPTIONS... [-- <applicationarguments...>]
