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?
1 Like
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 withrsconnect::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 thersconnect-python
CLI
I hope that helps!! There are some docs on the topic in those three packages or here: