npm package: @metatrust/mpm
Description: Mpm command tools.
Author: 中月不吃辣 @lizhongyue248
Latest version: 0.0.6-alpha

Meta Package Manager
=================

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @metatrust/mpm
$ mpm COMMAND
running command...
$ mpm (--version)
@metatrust/mpm/0.0.6-alpha darwin-x64 node-v16.17.0
$ mpm --help [COMMAND]
USAGE
  $ mpm COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`mpm config [ACTION] [KEY] [VALUE]`](#mpm-config-action-key-value)
* [`mpm generate TEMPLATE FILENAME`](#mpm-generate-template-filename)
* [`mpm help [COMMAND]`](#mpm-help-command)
* [`mpm init`](#mpm-init)
* [`mpm install [dependency]`](#mpm-install-dependency)
* [`mpm search [dependency]`](#mpm-search-dependency)
* [`mpm uninstall [dependency]`](#mpm-uninstall-dependency)

## `mpm config [ACTION] [KEY] [VALUE]`

Config mpm command tools.

```
USAGE
  $ mpm config [ACTION] [KEY] [VALUE]

ARGUMENTS
  ACTION  (list|set|get|reset|where) [default: list] Config action
  KEY     (mpm-json|mpm-lock-json|mpm-module|mpm-schema|mpm-lock-schema|server|proxy) Config key
  VALUE   Config value

DESCRIPTION
  Config mpm command tools.

EXAMPLES
  Show all config.

    $ mpm config [list]

  Config `mpm.json` file name

    $ mpm config set mpm-json dep.json

  Get one config from file.

    $ mpm config get mpm-json

  Reset all config file.

    $ mpm config reset

  Reset one config file.

    $ mpm config reset mpm-json

  Show config file location.

    $ mpm config where
```

_See code: [dist/commands/config/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.6-alpha/dist/commands/config/index.ts)_

## `mpm generate TEMPLATE FILENAME`

Generate smart contract template code.

```
USAGE
  $ mpm generate TEMPLATE FILENAME [-d <value>]

ARGUMENTS
  TEMPLATE  Generate template name.
  FILENAME  Generate file name.

FLAGS
  -d, --data=<value>  [default: {}] Generate template data, must be JSON format.

DESCRIPTION
  Generate smart contract template code.

EXAMPLES
  $ mpm generate
```

_See code: [dist/commands/generate/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.6-alpha/dist/commands/generate/index.ts)_

## `mpm help [COMMAND]`

display help for mpm

```
USAGE
  $ mpm help [COMMAND] [--json] [--all]

ARGUMENTS
  COMMAND  command to show help for

FLAGS
  --all   see all commands in CLI
  --json  Format output as json.

DESCRIPTION
  display help for mpm
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.0.0/src/commands/help.ts)_

## `mpm init`

Create your mpm project.

```
USAGE
  $ mpm init

DESCRIPTION
  Create your mpm project.

EXAMPLES
  $ mpm init
```

_See code: [dist/commands/init/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.6-alpha/dist/commands/init/index.ts)_

## `mpm install [dependency]`

Install all contract in your mpm.json dependencies.

```
USAGE
  $ mpm install [dependency]

FLAGS
  -t, --type=<option>  [default: contract] Download contract type.
                       <options: library|contract>

DESCRIPTION
  Install all contract in your mpm.json dependencies.

EXAMPLES
  $ mpm install

  $ mpm install contractName

FLAG DESCRIPTIONS
  -t, --type=library|contract  Download contract type.

    By default, the installed dependency type will search for the specified dependency files and related dependencies.
    All files of the entire library can be downloaded by specifying 'library'.
```

_See code: [dist/commands/install/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.6-alpha/dist/commands/install/index.ts)_

## `mpm search [dependency]`

Search dependency.

```
USAGE
  $ mpm search [dependency]

ARGUMENTS
  NAME  Search dependency name.

DESCRIPTION
  Search dependency.
```

_See code: [dist/commands/search/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.6-alpha/dist/commands/search/index.ts)_

## `mpm uninstall [dependency]`

Uninstall dependency.

```
USAGE
  $ mpm uninstall [dependency]

DESCRIPTION
  Uninstall dependency.
```

_See code: [dist/commands/uninstall/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.6-alpha/dist/commands/uninstall/index.ts)_
<!-- commandsstop -->
* [`mpm help [COMMAND]`](#mpm-help-command)
* [`mpm [COMMAND]`](#mpm-command)
* [`mpm config`](#mpm-mpm-config)
* [`mpm init`](#mpm-mpm-init)
* [`mpm install [CONTRACT]`](#mpm-mpm-add-contract)
* [`mpm uninstall`](#mpm-mpm-uninstall)

## `mpm help [COMMAND]`

display help for mpm

```
USAGE
  $ mpm help [COMMAND] [--json] [--all]

ARGUMENTS
  COMMAND  command to show help for

FLAGS
  --all   see all commands in CLI
  --json  Format output as json.

DESCRIPTION
  display help for mpm
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.0.0/src/commands/help.ts)_

## `mpm [COMMAND]`

Welcome to use Meta Package Manage.

```
USAGE
  $ mpm [COMMAND]

DESCRIPTION
  Welcome to use Meta Package Manage.
```

_See code: [dist/commands/mpm/index.ts](https://github.com/MetaTrustLabs/mpm/mpm/blob/v0.0.1/dist/commands/mpm/index.ts)_

## `mpm install [CONTRACT]`

install contract to your project from mpm registry

```
USAGE
  $ mpm install [CONTRACT]

ARGUMENTS
  CONTRACT  contract's name you want to add

DESCRIPTION
  add contract to your project from mpm registry

EXAMPLES
  $ mpm add ERC
```

## `mpm config`

```
USAGE
  $ mpm config
```

## `mpm init`

create your mpm project

```
USAGE
  $ mpm init

DESCRIPTION
  create your mpm project

EXAMPLES
  $ mpm init
```

## `mpm uninstall`

```
USAGE
  $ mpm mpm uninstall
```