Skip to content

feat: add a --quiet flag for deploy commands#828

Open
joshyam-k wants to merge 5 commits into
mainfrom
feat/deploy-quiet
Open

feat: add a --quiet flag for deploy commands#828
joshyam-k wants to merge 5 commits into
mainfrom
feat/deploy-quiet

Conversation

@joshyam-k

@joshyam-k joshyam-k commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Intent

rsconnect deploy subcommands now accept --quiet, which suppresses the step-by-step progress lines and the streamed server build log, printing only the deployed content URL to stdout so it can be captured with URL=$(rsconnect deploy ... --quiet).

Errors still go to stderr, and on a failed deploy the server task log is emitted to stderr so failures remain diagnosable. --quiet cannot be combined with -v/--verbose, and for shinyapps.io deploys it also skips opening a browser.

resolves #827

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Manual Validation

(warnings and errors still get sent to stderr)

rsconnect-python git:(feat/deploy-quiet) ✗ uv run rsconnect deploy shiny --quiet -n dogfood ./test-shiny-app
    Warning: Python version constraint missing from pyproject.toml, setup.cfg or .python-version
             Connect will guess the version to use based on local environment.
             Consider specifying a Python version constraint.
https://dogfood.team.pct.posit.it/content/b54233ae-0011-4ce6-9cab-0419a5c2d2bc/

Directions for Reviewers

Review rsconnect/actions.py most carefully. The rest of the diff is just tests and passing the new quiet flag to all of the necessary places.

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.
  • I have run the rsconnect-python-tests-at-night workflow in Connect against this feature branch.

@joshyam-k
joshyam-k marked this pull request as draft July 21, 2026 22:24
@joshyam-k
joshyam-k force-pushed the feat/deploy-quiet branch from 8babbe8 to 6159be4 Compare July 21, 2026 22:25
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://posit-dev.github.io/rsconnect-python/pr-preview/pr-828/

Built to branch gh-pages at 2026-07-22 18:30 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7710 6428 83% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/actions.py 61% 🟢
rsconnect/api.py 81% 🟢
rsconnect/bundle.py 86% 🟢
rsconnect/environment.py 91% 🟢
rsconnect/log.py 75% 🟢
rsconnect/main.py 81% 🟢
TOTAL 79% 🟢

updated for commit: b71382e by action🐍

@joshyam-k
joshyam-k marked this pull request as ready for review July 22, 2026 16:02
Comment thread rsconnect/actions.py Outdated
@joshyam-k
joshyam-k force-pushed the feat/deploy-quiet branch from 30cf3bb to eb85802 Compare July 22, 2026 16:47
@joshyam-k
joshyam-k force-pushed the feat/deploy-quiet branch from eb85802 to 87b3b7c Compare July 22, 2026 16:49
@joshyam-k
joshyam-k requested a review from mconflitti-pbc July 22, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a --quiet flag to deploy commands

2 participants