The command-line interface for Posit Connect and Posit Connect Cloud.
uv tool install rsconnect-pythonpipx install rsconnect-pythonpython -m pip install rsconnect-pythonGet an API key from your Posit Connect server with at least publisher privileges:
Store your credentials:
rsconnect add --server https://connect.example.com --api-key <YOUR-CONNECT-API-KEY> --name productionDeploy your application:
rsconnect deploy shiny app.py --title "my shiny app"Read more about publisher and admin capabilities on the docs site.
Store your credentials, logging in to Posit Connect Cloud through your browser:
rsconnect add --connect-cloud --account <YOUR-ACCOUNT-NAME> --name cloudDeploy your application:
rsconnect deploy shiny app.py --name cloud --title "my shiny app"For non-interactive use such as CI, pass a service account credential with
--client-id and --client-secret, or the CONNECT_CLOUD_CLIENT_ID and
CONNECT_CLOUD_CLIENT_SECRET environment variables.