balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
30.02k stars 2.12k forks source link

Pre-select image from command line #2742

Open dmke opened 5 years ago

dmke commented 5 years ago

Is it possible to pass the path to an image on the command line? This could boost my productivity a lot :-)

Just running

$ balena-etcher-electron /path/to/buildroot/output/images/sdcard.img

didn't yield the expected result; the GUI still asked me to select an image.

(If you don't plan on implementing this yourselves: will you accept a PR implementing this?)

Side note I also expected ```console $ balena-etcher-electron --help ``` to print something meaningful. Instead the GUI just popped up.
thundron commented 5 years ago

I don't think we recently discussed this, let us check and we'll get back to you

lurch commented 5 years ago

Previously requested in #1097

dmke commented 5 years ago

Looks like there was a CLI, but that was removed without much explanation in #2630 (v1.5.0).

Are there plans to revive this again or integrate this into the GUI app?

thundron commented 5 years ago

@dmke It was removed due to it not being used as much as we thought as opposed to having an entirely separate package building process, that also needs to be maintained. Whenever you feel like it you can issue a PR with this feature, it sounds like a nice first step into having a headless Etcher!

thundron commented 4 years ago

Should (finnally!) be possible with https://github.com/balena-io/etcher/pull/3177