Home

stencila new

Create a new, tracked, document

Usage

stencila new [OPTIONS] <PATH>

Examples

# Create a new article (default)
stencila new my-article.md

# Create a new chat document
stencila new conversation.md --type chat

# Create a new AI prompt
stencila new template.md --type prompt

# Create a document in a subdirectory
stencila new docs/report.md

# Overwrite an existing document
stencila new existing.md --force

Arguments

NameDescription
<PATH>The path of the document to create.

Options

NameDescription
-f, --forceOverwrite the document, if it already exists. Possible values: true, false.
-t, --typeThe type of document to create. Possible values: article, chat, prompt. Default value: article.
© 2026 Stencila