E3DS CI/CD for Node.js

E3DS CI/CD for Node.js (the npm package e3ds-automation-kit, earlier called the Automation Kit) is Eagle 3D Streaming's Node.js package that uploads a packaged Unreal build, registers it, and waits for the stream test — so a deployment can be a step in a script rather than a person at a browser.

One of four forms of E3DS CI/CD

The E3DS CI/CD plugin for Unreal works from inside Unreal, which suits a developer packaging by hand. The Node.js package works from a script, which is what you want in a build pipeline where nobody is watching. All four forms, and how to choose.

Install

npm install e3ds-automation-kit

The package is on npm.

The script

const { uploadStreamingApp } = require("e3ds-automation-kit");

(async () => {
  try {
    await uploadStreamingApp(
      "../../Downloads/tinyApp.zip",  // path to the .zip
      process.env.E3DS_API_KEY,       // your API key
      "MyStreamingApp"                // app name
    );
    console.log("Upload completed successfully!");
  } catch (err) {
    console.error("Upload failed:", err.message);
  }
})();
node index.js

Which then validates the path, requests a signed upload URL, uploads with progress, and polls until the stream test finishes.

Step by step, from an empty folder

Node.js 18 or newer. In a terminal (Windows PowerShell shown; the macOS and Linux line is in step 4):

  1. Make a folder for the upload and go into it. Put the zipped build there too:
    mkdir my-upload
    cd my-upload
  2. Install the package. This also creates package.json:
    npm install e3ds-automation-kit
  3. Save the script above as index.js in the same folder, with your zip's path (for a zip in the same folder: "./MyGame.zip") and your app name in it.
  4. Put your API key (Control Panel → Developer Section) in the environment variable the script reads:
    # Windows PowerShell
    $env:E3DS_API_KEY = "your API key"
    
    # macOS / Linux
    export E3DS_API_KEY="your API key"
  5. Run it:
    node index.js

What the terminal shows, from a real upload of a 218 MB build (account name replaced, the long stream-test answer cut short):

[Uploader] Preparing upload for MyGame (217.80 MB / 0.21 GB)
[Uploader] Checking storage provider...
[Uploader] Storage provider: r2
[Uploader] Using R2 multipart upload flow.
[Uploader] R2 multipart upload initiated. Key: yourusername/MyGame/uv-1-1795140132674.zip, Parts: 22, Part size: 10.00 MB
[Uploader] Requesting URLs for parts 1-6 of 22...
...
[Uploader] R2 multipart upload completed.
[Uploader] File upload complete.
...
[Uploader] Polling stream test result for MyGame_uv-1-1795140132674...
...
[Uploader] Stream test in progress... waiting 30s
...
[Uploader] Stream test successful ✅
[Uploader] Upload process completed for app: MyGame (version: uv-1-1795140132674)
Upload completed successfully!

The stream test usually takes 3 to 8 minutes; the package asks for the result every 30 seconds. When it passes, the new version is ready in your Control Panel and your stream link plays it. When it fails, viewers keep the previous version and the log says why — see when it fails.

Watch it in 1:53

Upload with npm (Node.js)Video · 1:53
STEP 1Check path + app namewrong: stops,nothing sent STEP 2Upload the zip in partsa failed part isretried on its own STEP 3Register the build inyour account STEP 4Test launch on our machinechecked every 30 s,up to 10 minutes STEP 5Result Ready in theControl Panelor: failed + why YOUR SCRIPT SEES uploadStreamingApp(path, apiKey, appName) → progress bar → "Upload completed successfully!" or an error
One call does all five steps. Step 4 is the same test launch as an upload from the Control Panel: a build is ready only when it starts and streams on our machine.

The path argument

Most failures here are the path, so it is worth getting right first time. It must point at the .zip file itself, not the folder holding it and not the project directory.

FormExampleWorks
Relative to where you run node"../../Downloads/tinyApp.zip"Yes
Windows, forward slashes"C:/Users/USER/Downloads/tinyApp.zip"Yes — the easiest on Windows
Windows, escaped backslashes"C:\\Users\\USER\\Downloads\\tinyApp.zip"Yes
macOS or Linux"/Users/USER/Downloads/tinyApp.zip"Yes
Windows, single backslashes"C:\Users\USER\Downloads\tinyApp.zip"No — JavaScript reads \ as an escape character
A folder"C:/Users/USER/Downloads/"No — must end in .zip

The app name argument

Letters, numbers and underscores only. No spaces, no hyphens, no dots, no other punctuation.

"MyStreamingApp"    // fine
"My_App_01"         // fine
"app123"            // fine

"My Streaming App"  // space
"My-App"            // hyphen
"My@App"            // symbol
"My.App"            // dot

This is the name that appears in your Control Panel once the upload lands.

When it fails

SymptomCauseFix
Cannot find module 'e3ds-automation-kit'Not installed in this projectnpm install e3ds-automation-kit
Cannot find module '...index.js'Wrong filename or wrong directoryRun the file that exists, from where it exists.
No output at allNode did not runCheck node -v works.
Fails at once with Invalid appNameSpaces or symbols in the app nameThe name is checked before anything is sent, so nothing was uploaded. Use letters, numbers, underscores.
It retries repeatedlyUnstable connectionIt retries each step several times on its own, with growing waits — up to 10 times for the upload itself. If every retry fails, the network is the problem.
Log says Stream test did not complete within 10 minutesLarge build, slow linkThe kit stops waiting after 10 minutes but does not throw — the promise still resolves, so the script above prints Upload completed successfully! anyway. Look for that log line, then check the Control Panel, where the stream test may still be progressing.

Related

Last updated