# Suggestion to make \`mender install\` accept the artifact on STDIN

**URL:** <https://hub.mender.io/t/suggestion-to-make-mender-install-accept-the-artifact-on-stdin/4588>\
**Category:** General Discussions\
**Created:** [February 9, 2022, 1:17pm UTC](https://hub.mender.io/t/suggestion-to-make-mender-install-accept-the-artifact-on-stdin/4588 "2022-02-09T13:17:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel\_vps](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@manuel\_vps](https://hub.mender.io/u/manuel_vps)\
**Post date:** [February 9, 2022, 1:17pm UTC](https://hub.mender.io/t/suggestion-to-make-mender-install-accept-the-artifact-on-stdin/4588/1 "2022-02-09T13:17:52Z")

</div>

Hi all,

would it be possible for you to add an option to `mender install` to accept the artifact on STDIN rather than some filesystem? This would enable users to stream it directly from `gpg --decrypt` rather than reserve space on the device to temporarily store the artifact.

That’s how `gz` does things.

It might be programmatically easy to do, as Linux provides both STDIN and regular files as file descriptors to the process. Perhaps all you’d have to do is for mender client to access the file descriptor at some hardcoded path if a certain CLI option is encountered, don’t know.

Regards,  
Manuel

---

<div class="post-metadata">

**Author:** ![eystein](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@eystein](https://hub.mender.io/u/eystein)\
**Post date:** [February 22, 2022, 10:25pm UTC](https://hub.mender.io/t/suggestion-to-make-mender-install-accept-the-artifact-on-stdin/4588/2 "2022-02-22T22:25:45Z")

</div>

Hi @manuel_vps ,

Thanks for the feedback; could you explain a bit what you’re trying to achieve here? Are you wrapping the Mender artifact with some encryption?

We do have plans to support encrypted artifacts, which may be a better solution for your case?

---

<div class="post-metadata">

**Author:** ![manuel\_vps](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@manuel\_vps](https://hub.mender.io/u/manuel_vps)\
**Post date:** [February 28, 2022, 3:53pm UTC](https://hub.mender.io/t/suggestion-to-make-mender-install-accept-the-artifact-on-stdin/4588/3 "2022-02-28T15:53:32Z")

</div>

Hi @eystein,

exactly, that’s what we do. Some of our customers want to refrain from useing networking, hence we want to provide them another way of updating their devices. We don’t want to give them insight into our rootfs, though.

We already have our solution in place. Unless we run out of disk space to intermediately store the decrypted artifact, we are unlikely to pick this issue up again.

Note that apart from encryption, there might be other use cases where streaming the artifact to `mender install` might be useful:

```auto
cat my-artifact | ssh root@128.168.1.1 | mender install

```
