How can I set the transaction fee when creating a transaction through Bitcoin-cli commands?
settxfee sets the fee/kb for future API calls like sendfrom.  It is remains in effect as long as the program runs.

estimatefee 1 returns the fee estimated to result in confirmation within 1 block.