Way to access command line from to switch databases?

We use a VPS and we don’t have access to the command line which I need to configure all sorts of stuff for Nextcloud.