dub-convert(1)

dub-convert1

Converts the file format of the package recipe.

Usage

dub convert OPTIONS ...

Overview

This command will convert between JSON and SDLang formatted package recipe files.

Warning: Beware that any formatting and comments within the package recipe will get lost in the conversion process.

Options

-f, --format=VALUE

Specifies the target package recipe format. Possible values:
json, sdl

-s, --stdout

Outputs the converted package recipe to stdout instead of writing to disk.

Common options

See dub(1)

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

Online documentation

http://code.dlang.org/docs/commandline

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

--format since Debian 13 (Trixie); --stdout since Debian 13 (Trixie); -f since Debian 13 (Trixie); -s since Debian 13 (Trixie).

Author

Copyright (c) 1999-2026 by The D Language Foundation

From dub 1.42.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.