EnglishFrenchSpanish

Ad


OnWorks favicon

dub - Online in the Cloud

Run dub in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dub that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


DUB - Package and build management system for D

SYNOPSIS


dub [--version] [<command>] [<options...>] [-- [<application arguments...>]]

DESCRIPTION


Manages the DUB project in the current directory. If the command is omitted, DUB will
default to "run". When running an application, "--" can be used to separate DUB options
from options passed to the application.

Run "dub <command> --help" to get help for a specific command.

You can use the "http_proxy" environment variable to configure a proxy server to be used
for fetching packages.

Package creation

init [<directory> [<dependency>...]]
Initializes an empty package skeleton

Build, test and run

run [<package>]
Builds and runs a package (default command)

build [<package>]
Builds a package (uses the main package in the current working directory by
default)

test [<package>]
Executes the tests of the selected package

generate <generator> [<package>]
Generates project files using the specified generator

describe [<package>]
Prints a JSON description of the project and its dependencies

clean [<package>]
Removes intermediate build files and cached build results

dustmite <destination-path>
Create reduced test cases for build errors

Package management

fetch <name>
Manually retrieves and caches a package

remove <name>
Removes a cached package

upgrade [<package>]
Forces an upgrade of all dependencies

add-path <path>
Adds a default package search path

remove-path <path>
Removes a package search path

add-local <path> [<version>]
Adds a local package directory (e.g. a git repository)

remove-local <path>
Removes a local package directory

list Prints a list of all local packages dub is aware of

add-override <package> <version-spec> <target-path/target-version>
Adds a new package override.

remove-override <package> <version-spec>
Removes an existing package override.

list-overrides
Prints a list of all local package overrides

clean-caches
Removes cached metadata

Common options

-h --help
Display general or command specific help

--root=VALUE
Path to operate in instead of the current working dir

--registry=VALUE
Search the given DUB registry URL first when resolving dependencies. Can be
specified multiple times.

--skip-registry=VALUE
Skips searching certain package registries for dependencies:

none: Search all configured registries (default)

standard: Don't search on http://code.dlang.org/

all: Search none of the configured registries

--annotate
Do not perform any action, just print what would be done

--bare Read only packages contained in the current directory

-v --verbose
Print diagnostic output

-q --quiet
Only print warnings and errors

--vquiet
Print no messages

--cache=VALUE
Puts any fetched packages in the specified location [local|system|user].

March 2016 dub(1)

Use dub online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad