amazon as your company name or package ID.
This page describes the Vega CLI commands and examples.
Help option
To explore options for all Vega commands:vega build command:
Exit codes and error output
Vega CLI commands return exit code0 on success and a non-zero exit code on failure. Error messages are written to stderr.
Commonly used commands
npx react-native build-vega
Use thenpx react-native build-vega command to compile your app and produce the vpkg.
To build an app:
vega clean
To remove the artifacts generated in the folder:vega project list-templates
To see the available JavaScript and Turbo module templates you can use to create a sample app:vega project generate
To create a Vega project, use thevega project generate command with the required parameters.
To create a new app:
vega project generate- Generates a Vega app.--template- Sets the Vega app or Turbo Module template, which you can find from thevega project list-templatescommand. In the example, it uses thehello-worldtemplate.--name- Sets the name of your new app or Turbo Module. The name can’t contain whitespace or special characters. Replace with the desired name for your new app.--packageId- Sets the package ID for manifest.toml required in React Native for Vega apps, not in Turbo Module. Replace with the name of your company and with the name of your app.--outputDir (optional)- Sets the output directory for new app files. Replace with the actual name of your app.
vega run-app
To install and run your app:vega device install-app and vega device launch-app.
For the VVD:
sampleapp on a Mac M-series machine, the command is:
Device commands
The Vega CLI device command interface provides a way for you to interact with physical devices and the VVD. You must install and make VDA available on the path for device commands to work. The general command format is:vega device copy-from
To copy device files to the host computer:vega device copy-logs
To retrieve the artifact files from a device:vega device copy-to
To copy host files to the device:vega device get-log-info
To retrieve log information from a device:vega device info
To retrieve device metadata in JSON format, including device type, OS version, hostname, architecture, profile, product name, build description, whether the device is simulated or physical, and Developer Mode status:vega device install
To install an app on a device and simulator, add arguments for the path (-p) to your app’s package. The path follows this syntax: .
For example, if sampleapp runs on a Mac x86 machine:
.vpkg in the directory and install it:
debug build type:
release build type:
vega device installed-apps
To list the apps installed on a device:vega device installed-packages
To list all packages installed on a device:vega device is-app-installed
To check for app installation using app name:vega device is-app-running
To check if an app runs on the device using app name:vega device is-connected
To check the connection status of a specific device:vega device launch-app
To launch the app on a device using app name:vega device list
To list connected devices (Fire TV Stick and Vega Virtual Device):VirtualDevice : tv - architecture - OS type - hostname
Example output with a connected Fire TV Stick (GXXXXXXXXXXXXXXX) and a running virtual device:

