- v2.6.1Latest
- v2.6.0
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.2
- 1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.16.2
- 0.16.1
- 0.16.0
- 0.15.7
- 0.15.6
- 0.15.5
- 0.15.4
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.0
- 0.13.1
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.1
- 0.10.1
- 0.10.0
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.3
init
deno-init
initializes a Deno configuration file from the command line.
Previous versions also initialized entrypoints, but that functionality has been moved to a different project. From v2 onwards this module is purely for generating config.
Table of Contents
Installation
deno install --allow-read --allow-write --allow-net=deno.land -fn deno-init https://deno.land/x/init@v2.2.0/mod.ts
Usage
deno-init
Options
--help
or -h
will print the CLI documentation to the terminal.
--yes
or -y
will skip the prompts and initialize the file in the current
working directory with default values:
deno-init --yes
--jsonc
or -c
will create the config file as a .jsonc
file with the
possible options listed as comments.
deno-init --jsonc
--fmt
or -m
will set up fmt
options only.
deno-init --fmt
--lint
or -l
will set up lint
options only.
deno-init --lint
--tsconfig
or -t
will add compilerOptions
only.
deno-init --tsconfig
--name
or -n
will use a non-default name for the config file. The default
name is deno.json
.
deno-init --name config.json
Contributing
Bug reports, other issues or feature requests are welcome!