Publishing Quarto Content
You can publish Quarto projects with rsconnect-python using the rsconnect deploy quarto command. Pass the command path to a directory containing a Quarto project:
rsconnect deploy quarto /path/to/quarto/projectYou can also use rsconnect write-manifest quarto to generate a manifest file for Quarto content.
Limitations
rsconnect deploy quartocannot publish content that uses theknitrengine (i.e., executes R code). You can deploy this content with another supported method. If this content already has a manifest, you can deploy it withrsconnect deploy manifest.The argument to
rsconnect deploy manifestcan be a directory, but that directory must contain amanifest.jsonfile.
Specifying a Quarto executable
By default, rsconnect-python looks for a Quarto executable in a number of well-known locations, including the system PATH. This executable is used to run quarto inspect to gather required metadata for deployment.
If needed, you can specify a specific Quarto executable by passing its full path to the --quarto option:
rsconnect deploy quarto \
--quarto /path/to/quarto \
/users/alice/my-projectExcluding files
Since you must specify a directory to deploy, there may be times when some files under that directory subtree should not be included in the deployment or manifest. Use the --exclude option to specify files or directories to exclude.
rsconnect deploy quarto \
--exclude quarto-app-venv \
--exclude TODO.txt \
quarto-app/You can exclude a directory by naming it:
rsconnect deploy quarto \
--exclude quarto-app-venv \
--exclude _files/ \
quarto-app/The --exclude option may be repeated, and may include a glob pattern. You should always quote a glob pattern so that it is passed to rsconnect as-is instead of letting the shell expand it.
rsconnect deploy quarto \
--exclude quarto-app-venv \
--exclude "*.txt" \
quarto-app/Some directories are excluded by default, to prevent bundling and uploading files that are not needed or might interfere with the deployment process:
.Rproj.user
.env
.git
.svn
.venv
__pycache__
env
packrat
renv
rsconnect-python
rsconnect
venv