Socket
Book a DemoInstallSign in
Socket

@balena/release-bundle

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/release-bundle

Balena Release Bundle SDK

0.5.2
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

Release Bundle SDK

A Release Bundle is a resource bundle that contains application release metadata and image layers.

Installing

npm install --save @balena/release-bundle

Usage

Creating a Release Bundle from a Fleet Release

import { writeFile } from 'fs/promises';
import { create } from '@balena/release-bundle';
import { getSdk } from 'balena-sdk';


async function run() {
    const sdk = getSdk();

    const releaseBundle = await create({
        sdk,
        releaseId: 3023927,
    });
    await writeFile('./release-bundle.tar', releaseBundle);

}

run();

Applying a Release Bundle to a Fleet

import { createReadStream } from 'fs';
import { apply } from '@balena/release-bundle';
import { getSdk } from 'balena-sdk';

async function run() {
    const sdk = getSdk();

    const bundle = await createReadStream(
        './release-bundle.tar',
    );

    await apply({
        sdk,
        application: 2136996,
        stream: bundle,
    });

}

run();

License

This project is distributed under the Apache 2.0 license.

Copyright (c) 2024 Balena Ltd.

Keywords

release

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.