Can i retrieve local database port number from project code or by terminal?

I’m trying to automate my development workflow on the local flywheel using a Shell Script. To make that happen smoothly I need to input my site ‘database port’ manually which currently available into the ‘DATABASE’ tab. I’m looking for a way to retrieve that data automatically from project code or any terminal command instead of getting the port number from Local App.

It may don’t make sense, but it will help me to avoid an interruption after running the script.
Is anyone can help me to retrieve that ‘Port’ data? Thanks in advance.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.