feat: add print option to phpMyAdmin command to output URL to stdout#2779
feat: add print option to phpMyAdmin command to output URL to stdout#2779
Conversation
feat: add print option to phpMyAdmin command to output URL to stdout
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
Adds a --print option to the vip db phpmyadmin CLI flow to allow retrieving the generated phpMyAdmin URL without auto-opening it in the default browser, supporting scripting/automation use cases.
Changes:
- Update
PhpMyAdminCommand.run()to support a{ print }option and conditionally print the generated URL. - Expose a new
--printCLI flag and add a help example for it. - Add a Jest test covering the
--printbehavior.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/commands/phpmyadmin.ts | Adds print handling to output the generated URL instead of opening a browser. |
| src/bin/vip-db-phpmyadmin.ts | Registers the new --print CLI option and passes it into the command. |
| tests/commands/phpmyadmin.ts | Adds test coverage for printing URL vs opening browser. |
You can also share your feedback on Copilot code review. Take the survey.
b74b174 to
07d08c5
Compare
|
There was a problem hiding this comment.
Pull request overview
Adds a --print mode to the vip db phpmyadmin command so users can obtain the generated phpMyAdmin URL without auto-opening a browser, supporting scripting/automation workflows.
Changes:
- Add
--print(and--silent) CLI options tovip db phpmyadmin. - Update
PhpMyAdminCommandto optionally print the URL instead of opening it, and introduce a silent progress tracker mode. - Extend Jest coverage to verify
--printprints the URL and does not open the browser.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/commands/phpmyadmin.ts | Adds print-to-stdout mode and introduces a silent-aware progress tracker wrapper. |
| src/bin/vip-db-phpmyadmin.ts | Exposes --print / --silent options and wires them into the command execution. |
| tests/commands/phpmyadmin.ts | Adds a test to validate print behavior (stdout output, no browser open). |
You can also share your feedback on Copilot code review. Take the survey.
|
Note: #2670 was merged into this branch, not to |



Description
Follow up on #2760 to address issues found by Copilot.
This PR also adds the
--silentoption to suppress all informational messages so thatvip @app.env db phpmyadmin --print --silentjust prints the URL and nothing else (the original PR mentioned "scripting, automation, and piping to clipboard utilities").Changelog Description
Added
vip db phpmyadmin: Added--printoption to output the phpMyAdmin URL to stdout instead of opening it in a browser.vip db phpmyadmin: Added--silentoption to suppress all informational messages (useful for scripting).Pull request checklist
New release checklist
Steps to Test
From the original PR:
npm install && npm run build../dist/bin/vip-db-phpmyadmin.js @<app>.<env> --helpand verify--printappears in the options list../dist/bin/vip-db-phpmyadmin.js @<app>.<env>(without--print) and verify it opens phpMyAdmin in the default browser as before../dist/bin/vip-db-phpmyadmin.js @<app>.<env> --printand verify the URL is printed to stdout and no browser is opened.npx jest --forceExit __tests__/commands/phpmyadmin.tsand verify all tests pass.