Adding permanent GLOBALS variables

Hi!
I don’t wanna use Astdb.
I want to know if exist a command in asterisk cli to add global variables to extensions.conf
I tried:

dialplan set global MYVAR VALUE
But when the asterisk reboot, the variable disappear.

Hmmm maybe echoing to the file directly using AGI or System command will work.