Stellaris add_opinion command

This command increases the <span class="parameter parameter-primary">Source</span> empire's opinion of the <span class="parameter parameter-primary">Target</span> empire by <span class="parameter parameter-primary">Amount</span>. If you do not specifiy the <span class="parameter parameter-primary">Amount</span>, the default value of 40 will be used.
Command syntax
add_opinion <span class="parameter parameter-primary">Source</span> <span class="parameter parameter-primary">Target</span> <span class="parameter parameter-primary">Amount</span>
Example
add_opinion 1 0 100
How to open the console in Stellaris
Press the ~ / ` key to open the command console. This key is located at the top left of the keyboard, usually under the F1 or ESC key. Type the command and press the Enter key.