TypeScript · Command-line Options

init

Initializes a TypeScript project and creates a tsconfig.json file.

Syntax
"init": true

Example

Example
{
  "compilerOptions": {
    "init": true
  }
}

More in this group

all help listFilesOnly locale project showConfig version watch

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course