open-index/open-npm huggingface dataset:
npm package: @onsmart/fetch-environment-variables
Description: ![Logo](https://beakyn-ui.s3.amazonaws.com/OUT_PRIMARY_LOGO_POS_RGB_BLACK_PILL.svg?2)
Latest version: 0.0.6


![Logo](https://beakyn-ui.s3.amazonaws.com/OUT_PRIMARY_LOGO_POS_RGB_BLACK_PILL.svg?2)

# Onsmart Fetch Environment Variables

[![Maintainability](https://api.codeclimate.com/v1/badges/fe051bfe6978cdd586a3/maintainability)](https://codeclimate.com/repos/5a8d71b9200a6a0270008608/maintainability)

It's just a simple CLI to fetch all environment variables by application from Onsmart Platform.

## Installation

Use the package manager [yarn](https://classic.yarnpkg.com/lang/en/docs/install/) or [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) to install it.

```bash
yarn add @onsmart/fetch-environment-variables --dev

npm i @onsmart/fetch-environment-variables -D
```

You also can install it as a global package.

```bash
yarn global add @onsmart/fetch-environment-variables

npm i @onsmart/fetch-environment-variables --global
```

## Usage

```bash
> onsmart-fetch-environment-variables

> onsmart-fetch-environment-variables --project core-api
```

Support to those projects:

- Core API: core-api
- SmartScout: smartscout
- Mad UI: mad-ui
- Account UI: account-ui
- Admin Console: admin-console
- Query API: query-api
- Auth Gateway: auth-gateway

## Screenshots

![CLI Screenshot](/node-packages/onsmart-fetch-environment-variables/screenshots/screenshot-01.png?raw=true)

![CLI Screenshot](/node-packages/onsmart-fetch-environment-variables/screenshots/screenshot-02.png?raw=true)

## Deployment

To deploy this project, follow these steps:

- Click on the "Actions Tab"
- Choose the "Onsmart Fetch Environment Variables Deploy" option
- Click on "Run Workflow"
- Select "main" branch
- Run workflow

## License
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @onsmart/opensearch-dump
Description: ![Logo](https://beakyn-ui.s3.amazonaws.com/OUT_PRIMARY_LOGO_POS_RGB_BLACK_PILL.svg?2)
Author: Beakyn Company
Latest version: 1.0.0


![Logo](https://beakyn-ui.s3.amazonaws.com/OUT_PRIMARY_LOGO_POS_RGB_BLACK_PILL.svg?2)

# Onsmart Opensearch Dump

[![Maintainability](https://api.codeclimate.com/v1/badges/fe051bfe6978cdd586a3/maintainability)](https://codeclimate.com/repos/5a8d71b9200a6a0270008608/maintainability)

It's just a simple CLI to import opensearch data to the local environment.

## Installation

Use the package manager [yarn](https://classic.yarnpkg.com/lang/en/docs/install/) or [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) to install it.

```bash
yarn add @onsmart/opensearch-dump --dev

npm i @onsmart/opensearch-dump -D
```

You also can install it as a global package.

```bash
yarn global add @onsmart/opensearch-dump

npm i @onsmart/opensearch-dump --global
```
## Setup

Create an `opensearch-dump.json` file on the root of project, copy and paste this template into the file, and overwrite the values

```json
{
  "connections": {
    "input": "http://..." OR "$environment_variable" OR {
      "node": "http://..." OR "$environment_variable",
      "apiKey": "key-value" OR "$environment_variable"
    }, 
    "output": "http://..." OR "$environment_variable" OR {
      "node": "http://..." OR "$environment_variable",
      "apiKey": "key-value" OR "$environment_variable"
    }
  },
  "indexes": {
    "carts": "index-name" OR {
      "indexName": "index-name" OR "$environment_variable", // required
      "skipDataFetch": false, // optional, default: false
      "searchBody": {} // optional
    }
  }
}
```

If you want to use an environment variable you need to start the string with `$`

## Usage

The CLI will always delete the local index, download the whole structure (mapping, alias, analyzer) and after that, it will download the data

```bash
> onsmart-opensearch-dump run
```

## Deployment

To deploy this project, follow these steps:

- Click on the "Actions Tab"
- Choose the "Onsmart Opensearch Dump Deploy" option
- Click on "Run Workflow"
- Select "main" branch
- Run workflow

## License
[MIT](https://choosealicense.com/licenses/mit/)