platformio upgrade
pio upgrade
Check or upgrade PlatformIO to the latest version
> platformio upgrade
You are up-to-date!
PlatformIO x.x.x is currently the newest version available.
# If you have problem with permissions try:
> sudo platformio upgrade