mirror of https://github.com/arendst/Tasmota.git
Updated PlatformIO CLI (markdown)
parent
ae663d7d02
commit
01dbe1f228
|
@ -9,43 +9,47 @@ How to flash the Tasmota firmware onto a device using the `platformio` command l
|
|||
|
||||
## Download the Sonoff-Tasmota source code
|
||||
|
||||
Either download the latest Tasmota release Source code from https://github.com/arendst/Sonoff-Tasmota/releases and extract it or clone the Git repository:
|
||||
Either download the latest Tasmota Source code from https://github.com/arendst/Tasmota/ and extract it or clone the Git repository:
|
||||
|
||||
'git clone https://github.com/arendst/Sonoff-Tasmota.git`
|
||||
'git clone https://github.com/arendst/Tasmota.git`
|
||||
|
||||
## Select the environment
|
||||
The default environment configuration can be used to easily generate Tasmota firmware variants (sonoff, sensors, display, etc.). If you're not sure which binary is the right one for you, consult the [builds table](Builds) or just start with [sonoff.bin](http://thehackbox.org/tasmota/release/sonoff.bin). To build and/or flash exactly one of these, use the `-e` command line argument (e.g., `-e sonoff-sensors`). Alternatively, uncomment (i.e., remove the leading `;`) the desired *env_default* line in the *platformio.ini* file and do not use the `-e` argument on the command.
|
||||
The default environment configuration can be used to easily generate Tasmota firmware variants (sonoff, sensors, display, etc.). If you're not sure which binary is the right one for you, consult the [builds table](Builds) or just start with `tasmota.bin` / `sonoff.bin`. To build and/or flash exactly one of these, use the `-e` command line argument (e.g., `-e sonoff-sensors`). Alternatively, uncomment (i.e., remove the leading `;`) the desired *env_default* line in the *platformio.ini* file and do not use the `-e` argument on the command.
|
||||
```
|
||||
env_default = sonoff
|
||||
;env_default = sonoff-minimal
|
||||
;env_default = sonoff-basic
|
||||
;env_default = sonoff-classic
|
||||
;env_default = sonoff-knx
|
||||
;env_default = sonoff-sensors
|
||||
;env_default = sonoff-display
|
||||
;env_default = sonoff-BG
|
||||
;env_default = sonoff-BR
|
||||
;env_default = sonoff-CN
|
||||
;env_default = sonoff-CZ
|
||||
;env_default = sonoff-DE
|
||||
;env_default = sonoff-ES
|
||||
;env_default = sonoff-FR
|
||||
;env_default = sonoff-GR
|
||||
;env_default = sonoff-HE
|
||||
;env_default = sonoff-HU
|
||||
;env_default = sonoff-IT
|
||||
;env_default = sonoff-NL
|
||||
;env_default = sonoff-PL
|
||||
;env_default = sonoff-PT
|
||||
;env_default = sonoff-RU
|
||||
;env_default = sonoff-SE
|
||||
;env_default = sonoff-TR
|
||||
;env_default = sonoff-TW
|
||||
;env_default = sonoff-UK
|
||||
; *** Uncomment one of the lines below to build/upload only one environment
|
||||
;default_envs = tasmota
|
||||
;default_envs = tasmota-ircustom ; alternative to 'tasmota' with full IR protocols activated, you will need to disable some features to keep code not too big
|
||||
;default_envs = tasmota-minimal
|
||||
;default_envs = tasmota-basic
|
||||
;default_envs = tasmota-knx
|
||||
;default_envs = tasmota-sensors
|
||||
;default_envs = tasmota-display
|
||||
;default_envs = tasmota-ir
|
||||
;default_envs = tasmota-BG
|
||||
;default_envs = tasmota-BR
|
||||
;default_envs = tasmota-CN
|
||||
;default_envs = tasmota-CZ
|
||||
;default_envs = tasmota-DE
|
||||
;default_envs = tasmota-ES
|
||||
;default_envs = tasmota-FR
|
||||
;default_envs = tasmota-GR
|
||||
;default_envs = tasmota-HE
|
||||
;default_envs = tasmota-HU
|
||||
;default_envs = tasmota-IT
|
||||
;default_envs = tasmota-KO
|
||||
;default_envs = tasmota-NL
|
||||
;default_envs = tasmota-PL
|
||||
;default_envs = tasmota-PT
|
||||
;default_envs = tasmota-RU
|
||||
;default_envs = tasmota-SE
|
||||
;default_envs = tasmota-SK
|
||||
;default_envs = tasmota-TR
|
||||
;default_envs = tasmota-TW
|
||||
;default_envs = tasmota-UK
|
||||
```
|
||||
|
||||
# Compile and upload
|
||||
Once all the prerequisites are in place, compiling and uploading is one simple command. Execute this from within the `Sonoff-Tasmota` source code directory:
|
||||
Once all the prerequisites are in place, compiling and uploading is one simple command. Execute this from within the `Tasmota` source code directory:
|
||||
|
||||
`platformio run -e <variant> --target upload --upload-port <port>`
|
||||
|
||||
|
|
Loading…
Reference in New Issue