# @commercetools-frontend/menu-cli

> CLI to manage a Custom Application menu.json with translations support.

Latest version **0.0.1** (published 2021-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @commercetools-frontend/menu-cli
pnpm add @commercetools-frontend/menu-cli
yarn add @commercetools-frontend/menu-cli
bun add @commercetools-frontend/menu-cli
```

Provides the command `menu-cli`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-04-30 |
| First published | 2021-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=14 |
| Dependencies | 5 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tdeekens, emmenko, commercetools-admin |
| Keywords | commercetools, cli, custom-application |

## Links

- npm: https://www.npmjs.com/package/@commercetools-frontend/menu-cli
- Issues: https://github.com/commercetools/merchant-center-frontend/issues
- npm.io page: https://npm.io/package/@commercetools-frontend/menu-cli

## Dependencies (5)

- [mri](https://npm.io/package/mri.md) 1.1.6
- [rcfile](https://npm.io/package/rcfile.md) 1.0.3
- [prettier](https://npm.io/package/prettier.md) 2.2.1
- [lodash.kebabcase](https://npm.io/package/lodash.kebabcase.md) 4.1.1
- [@commercetools-frontend/mc-scripts](https://npm.io/package/@commercetools-frontend/mc-scripts.md) 19.4.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2021-04-30
- 0.0.0 — 2021-04-29

## README

# @commercetools-frontend/menu-cli

## Installation

```bash
$ npm install --save @commercetools-frontend/menu-cli
```

## Usage

> Please make sure you have Node.js v14 or higher installed as this package uses native ES modules.

The CLI offers commands to manage an Custom Applications `menu.json`.

### Command: `build`

The command generates a `menu.json` file given a `menu.mjs` file, where `react-intl` translations are defined for the menu labels.

```bash
yarn menu-cli build \
  --menu-file=menu.mjs \
  --i18n-folder=i18n/data \
  --locales="en, de, es, fr-FR, zh-CN, ja"
```

It is advised to rely on the CLIs defauls whenever possible and only run `yarn menu-cli build`.

---
_Source: https://npm.io/package/@commercetools-frontend/menu-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
