# add

## Description

* Add a mobile application binary to the binary store

## Syntax

`ern binarystore add <descriptor> <pathToBinary>`

**Arguments**

`<descriptor>`

* A complete native application descriptor (ex: `myapp:android:1.0.0`), representing the native application version associated to this binary.

`<pathToBinary>`

* Relative or absolute path to the binary to add to the binary store. For an `Android` binary the path should point to a `.apk` file, whereas of `iOS` it should point to a `.app`.

**Options**

`--flavor`

* Custom flavor to attach to this binary.
* The binary of a specific application version (for ex `1.0.0`) can have different flavors, representing different build types of the same application version (for example `Dev`/`Prod`/`QA` ...).

## Remarks

* This command will only work if the following conditions are met:
  * A binary store server is running
  * There is an active Cauldron
  * The active Cauldron contains proper configuration of the binary store
* If a binary already exists in the store for the targeted native application version, it will be replaced.

## Related commands

[ern binarystore get](https://native.electrode.io/v0.40/cli-commands/binarystore/get) | Get a native application binary from the binary store\
\[ern binarystore remove] | Remove a native application binary from the binary store

\[ern binarystore remove]: ./remove.md


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://native.electrode.io/v0.40/cli-commands/binarystore/add.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
