Inconsistent device functions ESPHome

Yes, I know it has changed. The address I got the instructions from is: https://esphomelib.com/esphomeyaml/guides/faq.html#how-do-i-update-to-the-latest-version
That is where I ran into the problem…

How do I update to the latest beta release?

For pip-based installs

pip2 install --pre -U esphome

For docker-based installs

docker run […] -it esphome/esphome:beta livingroom.yaml run

I simply do not know where to enter the commands…Directly in my Rasp Pi? Somewhere under hassio>? Another directory? Via SSH? Via a .yaml file in HA?