How to deploy shiny server app to rstudio connect server?

I have an R/Shiny application running on a Shiny server. How can I deploy it to my RStudio Connect server from the command line?

Howdy @rickn! Welcome to RStudio Community!

This is a fantastic question!! There are a handful of ways to do this! Basically it amounts to:

  • create a manifest.json file with rsconnect::writeManifest(). (To do this, you want to ensure the appropriate R package library / etc. is loaded)
  • set up appropriate credentials. This is probably easiest to do with an API Key
  • deploy the app to Connect with either rsconnect::deployApp(), connectapi::deploy() or the rsconnect-python CLI

I hope that helps!! There are some docs on the topic in those three packages or here: