With the following commands, the default UI (text or graphical UI) after boot can be set:

  • Booting into a text UI:
    sudo systemctl set-default multi-user
  • Booting into a graphical UI:
    sudo systemctl set-default graphical

Source