Try fly postgres connect -a <app-name>. If the fly.toml belonging to the app you want to connect to is not present in your working directory, you need to specify the app to apply the command to.
The proxy command output looks as you’d expect it to. It doesn’t return because, well, it needs to keep proxying that port until you’re done using it. You’d have to open another terminal and do something like