← 返回命令列表

Linux command

quarto 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Render document to output format

quarto render [document.qmd]

Render entire project

quarto render

Preview document with live reload

quarto preview [document.qmd]

Create new project

quarto create project [website]

Publish to Quarto Pub

quarto publish quarto-pub

Convert Jupyter notebook to Quarto

quarto convert [notebook.ipynb]

Install extensions

quarto add [quarto-ext/fontawesome]

Check installation

quarto check

说明

Quarto is an open-source publishing system for technical and scientific documents. It extends Pandoc with support for executable code cells in Python, R, Julia, and Observable JS. Documents use .qmd (Quarto Markdown) format combining narrative text with code cells. Code executes during rendering, embedding outputs (plots, tables, results) in the final document. Output formats include HTML, PDF, Word, presentations (RevealJS, Beamer), websites, and books. Projects organize multiple documents with shared configuration. The preview command provides live development with automatic re-rendering on file changes. Hot module replacement updates the browser without full refresh. Extensions add features: custom formats, shortcodes, filters, and themes. The extension ecosystem provides templates for journals, presentations, and specialized outputs. Publishing integrates with Quarto Pub, GitHub Pages, Netlify, Posit Connect, and other platforms. Single command deployment updates hosted content.

参数

render _input_
Render document or project.
preview _input_
Live preview with auto-reload.
create _type_ _name_
Create project or extension.
publish _provider_
Publish to hosting service.
add _extension_
Install extension.
remove _extension_
Remove extension.
update _extension_
Update extension.
convert _file_
Convert between formats.
check _component_
Verify installation.
install _tool_
Install optional tools.
--to _FORMAT_
Output format (html, pdf, docx, etc.).
--output _FILE_
Output file name.
--execute
Execute code cells.
--no-execute
Skip code execution.
--cache
Cache code execution results.
--port _NUM_
Preview server port.
--browser
Open in browser.

FAQ

What is the quarto command used for?

Quarto is an open-source publishing system for technical and scientific documents. It extends Pandoc with support for executable code cells in Python, R, Julia, and Observable JS. Documents use .qmd (Quarto Markdown) format combining narrative text with code cells. Code executes during rendering, embedding outputs (plots, tables, results) in the final document. Output formats include HTML, PDF, Word, presentations (RevealJS, Beamer), websites, and books. Projects organize multiple documents with shared configuration. The preview command provides live development with automatic re-rendering on file changes. Hot module replacement updates the browser without full refresh. Extensions add features: custom formats, shortcodes, filters, and themes. The extension ecosystem provides templates for journals, presentations, and specialized outputs. Publishing integrates with Quarto Pub, GitHub Pages, Netlify, Posit Connect, and other platforms. Single command deployment updates hosted content.

How do I run a basic quarto example?

Run `quarto render [document.qmd]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does render _input_ do in quarto?

Render document or project.