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 -fn deno-init https://deno.land/x/init@v2.1.1/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
--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!