## How to broadcast transaction through Bitcoin-cli on public node

0

I have my Bitcoin WIF on a mobile application, and I want to use a Bitcoin-cli node running externally on a server to broadcast my transaction request from my mobile device. I cannot use SendToAddress because that CLI command can only be run on a node when the Bitcoins are on that node.

What Bitcoin-cli command do I use, to send coins from my mobile application's wallet, to another address?

The bitcoin-cli command you'll want is sendrawtransaction, but in order to make this work you'll need to get a signed raw transaction hex to use as input. So you'll need a mobile wallet that can provide you with the signed raw transaction, and do so without broadcasting it to the network.
Use bitcoin-cli help sendrawtransaction for more detail on the command.