For example VS Code usually allows you to run a command through terminal like
but when installed via flatpak I must do
flatpak run com.visualstudio.code ~/src/my-project
I was able to shorten it up by putting an alias in my bashrc file like this
alias code='flatpak run com.visualstudio.code'