You can run any command in any container from the host; you can definitely pipe bitcoin-cli output to lncli. If you need to actually change the images (nit just the compose files), then it's a bit much.

For cross service scripting, nix is top tier IMO, but you're right, without any experience with the nix language, it's a little bit of a learning curve.

Reply to this note

Please Login to reply.

Discussion

Just saying stuff like this sucks: Extra output to stdout makes scripting cumbersome to impossible, super long command as replacement suggestion, and that command doesn't even work. And if it did, it probably wouldn't do transparent I/O redirection.

umbrel@umbrel:~ $ bitcoin-cli --version 2 >/dev/null

*** Deprecation notice ***

In a future version of Umbrel, 'bitcoin-cli' will be removed.

Please instead use:

./scripts/app compose bitcoin exec bitcoind bitcoin-cli

[output of --version deleted for clarity]

umbrel@umbrel:~ $ ./scripts/app compose bitcoin exec bitcoind bitcoin-cli --version

-bash: ./scripts/app: No such file or directory