scaffolds a basic Deno project with a script, test, and configuration file
Usage: deno init [OPTIONS] [DIRECTORY OR PACKAGE]...
Arguments:
[DIRECTORY OR PACKAGE]...
Options:
-h, --help[=<CONTEXT>] [possible values: unstable, full]
--lib Generate an example library project
--npm Generate a npm create-* project
-q, --quiet Suppress diagnostic output
--serve Generate an example project for `deno serve`
This means there's no way to run run this command e.g. in CI to scaffold a project, because there's no -A/-y or --force flags to pre-approve the command. The command will just fail with "Permission denied (os error 13)".
Currently, the available options for
deno init(deno init --help) are:This means there's no way to run run this command e.g. in CI to scaffold a project, because there's no
-A/-yor--forceflags to pre-approve the command. The command will just fail with "Permission denied (os error 13)".Solution
Add
-A/--allow-allas a flag todeno init?Rererences