Prerequisites
Install the Vega SDK.All build options
Vega offers multiple pathways for you to create your custom app based on your specific requirements. You can choose from the following build approaches.- Vega Studio
- Vega CLI
Build an app with Vega Studio
Vega Studio is a VS Code extension that lets you create, build, run, test, debug, and analyze app performance. It supports Fire TV and other Vega-supported devices. This section provides steps to build Vega apps with Vega Studio.Step 1: Create a Vega project
- Open VS Code.
-
Select the Vega extension icon
from the activity bar to open the Vega Studio panel.
- Select the + (Create Vega Project) icon from the Projects section.
-
Choose a project template.
- helloWorld - Use this project template to create an app that depends on React Native v0.72.
- basicTurboModule - Use this project template to create a custom Turbo Module.
- idlTurboModule - Use this project template to create an app compatible with all supported React Native versions and native IDL APIs.
- Select a directory for your project.
- Provide a project name for your app (no spaces or special characters). For example: MySampleProject Press Enter after entering your project name.
-
Enter a package name for your project in this format
<top-level domain>.<company_name>.<app_name>. For example: com.mycompany.vegaproject Press Enter after entering a package name for your project. Vega Studio creates your project based on your selected template. If you select abasic-turbo-moduleoridl-turbo-moduletemplate with an open project, Vega Studio creates a multi-root workspace. The new project appears as a folder in the same VS Code window. Vega Studio adds the new Turbo Module as a dependency to your open project. If you have multiple Vega apps open, the extension prompts you to select the target app.
Step 2: Build a Vega app
-
Select your project from Vega Studio > Projects.
-
Choose your build mode (debug or release) from the Build Mode section.
-
Select the play button
from the Devices section to start the target virtual device.
-
Select the build button
next to your project name to start the build process.
View the build output
- Go to the integrated terminal panel in VS Code.
- Select the Output tab.
- Choose Vega from the drop-down list. You should see info build-kepler completed.
Step 3: (Optional) Configure a custom port
If port 8081 is already in use by another process, you can specify a custom port.- Go to Code > Settings > Settings in VS Code.
- Enter React Native Port in the search box.
- Enter your port number.
-
Reload VS Code when prompted.
When you start a debug session, Vega Studio automatically configures shared preferences on the device in
/data/shared_preferences.json.
Step 4: Run and test a Vega app
On Vega Virtual Device
- Navigate to Vega Studio > Devices and select VirtualDevice:Tv.
- Select the Play button to start the virtual device.
- Wait for the VVD window to open and the device to finish loading.
- Select the Play button next to your project name. For details, see Vega Virtual Device.
On Fire TV Stick
- Select your Fire TV Stick device from Vega Studio > Devices.
- Select the Play button next to your project name. Your app opens on the Fire TV Stick. For details, see Fire TV Stick.
Step 5: (Optional) Stop the React Native Packager
There are two options to stop the React Native Packager: through the VS Code status bar or the VS Code Command Palette.Option 1: Through the VS Code status bar
Choose the React Native Packager button in the VS Code status bar at the bottom. When you hover over it, you see the tooltip Stop Packager. Choose the Stop Packager tooltip button.
Option 2: Through the VS Code Command Palette

- Open the Command Palette: Mac: Cmd+Shift+P Linux: Ctrl+Shift+P
- Enter and select React Native: Stop Packager.
Step 6: Debug a Vega app
Vega Studio provides a built-in debugger. To use it, follow the instructions in Perform Line-by-Line Debugging with Vega Studio.Step 7: Analyze app performance
Vega Studio provides tools to help you analyze and optimize your app’s performance. For details, visit the following pages:Related topics
- Fix Vega Studio Build Issues
- Run Your App on Vega Virtual Device or Fire TV Stick
- Set Up Fast Refresh to Build Apps Using Vega CLI
- Resolve Vega Extension Issues

