# get

## Description

* Get a mobile application binary from the binary store

## Syntax

`ern binarystore get <descriptor> <outDir>`

**Arguments**

`<descriptor>`

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

`<outDir>`

* Relative or absolute path to a directory where the binary will be transferred to. If the directory does not exist, it will be created.

**Options**

`--flavor`

* Custom flavor of this binary that should be retrieved.
* 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 a proper configuration of the binary store
* If a binary for the same native application version already exists in `outDir`, it will be replaced
* The binary will be named as follows `[mobile-app-name]:[platform]:[version].[ext]`\
  For example, for `myapp:android:1.0.0`, the binary filename will be `myapp-android-1.0.0.apk`. For `myapp:ios:1.0.0` it will be `myapp-ios-1.0.0.app`.

## Related commands

[ern binarystore add](/v0.44/cli-commands/binarystore/add.md) | Add a native application binary to the binary store\
[ern binarystore remove](/v0.44/cli-commands/binarystore/remove.md) | Remove a native application binary from the binary store


---

# 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.44/cli-commands/binarystore/get.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.
