Files
cheatsheet-tldr/tldr/dub
2025-12-20 00:20:53 +00:00

34 lines
585 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# dub
> Package manager for D packages.
> More information: <https://dub.pm/commandline/>.
- Interactively create a new D project:
`dub init {{project_name}}`
- Non-interactively create a new D project:
`dub init {{project_name}} {{[-n|--non-interactive]}}`
- Build and run a D project:
`dub`
- Install dependencies specified in a D project's `dub.json` or `dub.sdl` file:
`dub fetch`
- Update the dependencies in a D project:
`dub upgrade`
- Display help:
`dub {{[-h|--help]}}`