---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / uploadBundle

# Function: uploadBundle()

> **uploadBundle**(`client`, `projectSlug`, `bundle`, `target?`): `Promise`\<[`PushResult`](../interfaces/PushResult.md)\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/push.ts:132](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/push.ts#L132)

Uploads a pre-created bundle to MRT.

Use this if you've already created a bundle and want to upload it separately.

## Parameters

### client

[`MrtClient`](../../../clients/type-aliases/MrtClient.md)

MRT client instance

### projectSlug

`string`

Project to upload to

### bundle

[`Bundle`](../interfaces/Bundle.md)

Bundle to upload

### target?

`string`

Optional target to deploy to

## Returns

`Promise`\<[`PushResult`](../interfaces/PushResult.md)\>

Result of the upload
