Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/reference/cli/init.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
last_modified: 2026-06-15
last_modified: 2026-11-28
title: "deno init"
oldUrl: /runtime/manual/tools/init/
command: init
Expand Down Expand Up @@ -37,7 +37,7 @@ ok | 1 passed | 0 failed (29ms)

The `init` subcommand will create two files (`main.ts` and `main_test.ts`).
These files provide a basic example of how to write a Deno program and how to
write tests for it. The `main.ts` file exports a `add` function that adds two
write tests for it. The `main.ts` file exports an `add` function that adds two
numbers together and the `main_test.ts` file contains a test for this function.

You can also specify an argument to `deno init` to initialize a project in a
Expand Down Expand Up @@ -187,7 +187,7 @@ Hello world!
## Generate a library project

You can append a `--lib` flag to add extra parameters to your `deno.json`, such
as "name", "version" and an "exports" fields.
as "name", "version" and an "exports" field.

```sh
deno init my_deno_project --lib
Expand Down
Loading