mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 15:57:21 +00:00
Update cheatsheets
This commit is contained in:
33
dub
Normal file
33
dub
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
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`
|
||||
|
||||
- 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 --help`
|
||||
Reference in New Issue
Block a user