Vega SDK installer: jq is an undocumented requirement, and `vega sdk config setup` fails with EOF when stdin is not a terminal

:backhand_index_pointing_right: Bug Description

1. Summary

Installing the Vega SDK on Linux with the documented one-liner stops twice:

  • first because jq is missing (it isn’t listed as a prerequisite);
  • then because vega sdk config setup prompts for a directory and fails with failed to read input: EOF when stdin isn’t a terminal, which is the case in any curl … | bash, CI job or setup script.

App Name: Kahani TV (hackathon project, not yet on the Appstore)
App Link on Amazon Appstore: N/A

Bug Severity

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation: the Vega SDK install page lists no jq prerequisite
  • Other

2. Steps to Reproduce

  1. On a fresh Ubuntu 24.04 without jq, run the documented installer one-liner (get_vvm.sh).
  2. Observe jq is required. Install jq and run it again.
  3. Run vega sdk config setup from a script or a pipe (stdin not a TTY).

3. Observed Behavior

jq is required
...
failed to read input: EOF

The setup exits without configuring the SDK directory.

4. Expected Behavior

The prerequisites page lists jq. When stdin is not a terminal, setup uses its
defaults (as --non-interactive does) instead of failing on EOF.

4.a Possible Root Cause & Temporary Workaround

Root cause: the installer parses JSON with jq, and setup always prompts.
Workaround: install jq, then run
  vega sdk config setup --non-interactive && vega sdk install --non-interactive

5. Logs or crash report

N/A (installer output quoted above).

6. Environment

  • SDK Version: Vega CLI 1.4.5
  • React Native Version: N/A (installer)
  • App State: N/A
  • OS Information: host Ubuntu 24.04 (container). No device or simulator involved.

7. Example Code Snippet / Screenshots / Screengrabs

curl -fsSL <documented get_vvm.sh URL> | bash      # → jq is required
vega sdk config setup < /dev/null                  # → failed to read input: EOF

:backhand_index_pointing_right: Playback Issues

N/A

:backhand_index_pointing_right: Additional Context

Found while setting up for the Amazon Developer hackathon (Fire TV track). Easy to
work around once known, but every new Linux user and every CI setup hits it.

Hi @akash_parashar,

Thank you for the clear write-up and the ready-made workaround - you’ve diagnosed both issues correctly.

On jq: it’s a real requirement of the installer, and it’s already part of our documented CI setup - the “Continuous Integration Pipelines with Vega” guide installs it in its example Dockerfile (apt-get install -y curl tar jq …) - but it should also be listed on the main SDK install prerequisites page. We’ll flag that gap to the docs team.

On the non-interactive install: for any non-TTY context (curl … | bash, CI jobs, setup scripts), set NONINTERACTIVE=true for the installer - it skips all prompts and uses defaults, which avoids the failed to read input: EOF you hit. The CI guide documents this (along with VEGA_SDK_VERSION, SKIP_SDK_INSTALL, and SKIP_VVD_INSTALL), and your --non-interactive approach should work as well.

CI guide for reference: Continuous Integration Pipelines with Vega

Our team is investigating this issue and will provide an update as soon as we have more information.

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya