mt-tech
v1.0.5
Published
美团技术服务合作中心通用cli
Readme
mt-tech
美团技术服务合作中心通用cli
Usage
$ npm install -g mt-tech
$ mt-tech COMMAND
running command...
$ mt-tech (--version)
mt-tech/1.0.5 darwin-arm64 node-v25.8.2
$ mt-tech --help [COMMAND]
USAGE
$ mt-tech COMMAND
...Commands
mt-tech ai-api URImt-tech api URImt-tech help [COMMAND]mt-tech pluginsmt-tech plugins add PLUGINmt-tech plugins:inspect PLUGIN...mt-tech plugins install PLUGINmt-tech plugins link PATHmt-tech plugins remove [PLUGIN]mt-tech plugins resetmt-tech plugins uninstall [PLUGIN]mt-tech plugins unlink [PLUGIN]mt-tech plugins update
mt-tech ai-api URI
美团技术服务合作中心 AI 网关通用请求 CLI
USAGE
$ mt-tech ai-api URI -t <value> -d <value> [--env test|staging|prod] [--format json|text]
ARGUMENTS
URI AI 网关接口路径
FLAGS
-d, --data=<value> (required) 请求体,JSON 格式字符串
-t, --token=<value> (required) 授权 token
--env=<option> [default: prod] 指定环境:test、staging、prod
<options: test|staging|prod>
--format=<option> [default: json] 输出格式:json(格式化)、text(紧凑)
<options: json|text>
DESCRIPTION
美团技术服务合作中心 AI 网关通用请求 CLI
EXAMPLES
$ mt-tech ai-api /v1/api/voyage/openapi/query --token=xxx --data='{"key":"value"}'mt-tech api URI
美团技术服务合作中心api网关接口通用请求cli
USAGE
$ mt-tech api URI -d <value> -b <value> -s <value> [--env test|staging|prod] [--format json|text] [-a
<value>] [-z <value>]
ARGUMENTS
URI 美团技术服务合作中心api网关接口路径
FLAGS
-a, --appAuthToken=<value> 授权 token,不需要鉴权的接口可不传
-b, --businessId=<value> (required) 业务 ID
-d, --developerId=<value> (required) 开发者 ID
-s, --signKey=<value> (required) 开发者签名密钥
-z, --biz=<value> 业务参数,JSON 格式字符串
--env=<option> [default: prod] 指定环境:test、staging、prod
<options: test|staging|prod>
--format=<option> [default: json] 输出格式
<options: json|text>
DESCRIPTION
美团技术服务合作中心api网关接口通用请求cli
EXAMPLES
$ mt-tech api /rms/data/api/v1/poi/settlement_method/query --appAuthToken=xxx --developerId=xxx --businessId=xx --signKey=xxx --biz='{"test":"xxx"}'mt-tech help [COMMAND]
Display help for mt-tech.
USAGE
$ mt-tech help [COMMAND...] [-n]
ARGUMENTS
[COMMAND...] Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for mt-tech.See code: @oclif/plugin-help
mt-tech plugins
List installed plugins.
USAGE
$ mt-tech plugins [--json] [--core]
FLAGS
--core Show core plugins.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
List installed plugins.
EXAMPLES
$ mt-tech pluginsSee code: @oclif/plugin-plugins
mt-tech plugins add PLUGIN
Installs a plugin into mt-tech.
USAGE
$ mt-tech plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
ARGUMENTS
PLUGIN... Plugin to install.
FLAGS
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
-h, --help Show CLI help.
-s, --silent Silences npm output.
-v, --verbose Show verbose npm output.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Installs a plugin into mt-tech.
Uses npm to install plugins.
Installation of a user-installed plugin will override a core plugin.
Use the MT_TECH_NPM_LOG_LEVEL environment variable to set the npm loglevel.
Use the MT_TECH_NPM_REGISTRY environment variable to set the npm registry.
ALIASES
$ mt-tech plugins add
EXAMPLES
Install a plugin from npm registry.
$ mt-tech plugins add myplugin
Install a plugin from a github url.
$ mt-tech plugins add https://github.com/someuser/someplugin
Install a plugin from a github slug.
$ mt-tech plugins add someuser/somepluginmt-tech plugins:inspect PLUGIN...
Displays installation properties of a plugin.
USAGE
$ mt-tech plugins inspect PLUGIN...
ARGUMENTS
PLUGIN... [default: .] Plugin to inspect.
FLAGS
-h, --help Show CLI help.
-v, --verbose
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Displays installation properties of a plugin.
EXAMPLES
$ mt-tech plugins inspect mypluginSee code: @oclif/plugin-plugins
mt-tech plugins install PLUGIN
Installs a plugin into mt-tech.
USAGE
$ mt-tech plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
ARGUMENTS
PLUGIN... Plugin to install.
FLAGS
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
-h, --help Show CLI help.
-s, --silent Silences npm output.
-v, --verbose Show verbose npm output.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Installs a plugin into mt-tech.
Uses npm to install plugins.
Installation of a user-installed plugin will override a core plugin.
Use the MT_TECH_NPM_LOG_LEVEL environment variable to set the npm loglevel.
Use the MT_TECH_NPM_REGISTRY environment variable to set the npm registry.
ALIASES
$ mt-tech plugins add
EXAMPLES
Install a plugin from npm registry.
$ mt-tech plugins install myplugin
Install a plugin from a github url.
$ mt-tech plugins install https://github.com/someuser/someplugin
Install a plugin from a github slug.
$ mt-tech plugins install someuser/somepluginSee code: @oclif/plugin-plugins
mt-tech plugins link PATH
Links a plugin into the CLI for development.
USAGE
$ mt-tech plugins link PATH [-h] [--install] [-v]
ARGUMENTS
PATH [default: .] path to plugin
FLAGS
-h, --help Show CLI help.
-v, --verbose
--[no-]install Install dependencies after linking the plugin.
DESCRIPTION
Links a plugin into the CLI for development.
Installation of a linked plugin will override a user-installed or core plugin.
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
command will override the user-installed or core plugin implementation. This is useful for development work.
EXAMPLES
$ mt-tech plugins link mypluginSee code: @oclif/plugin-plugins
mt-tech plugins remove [PLUGIN]
Removes a plugin from the CLI.
USAGE
$ mt-tech plugins remove [PLUGIN...] [-h] [-v]
ARGUMENTS
[PLUGIN...] plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ mt-tech plugins unlink
$ mt-tech plugins remove
EXAMPLES
$ mt-tech plugins remove mypluginmt-tech plugins reset
Remove all user-installed and linked plugins.
USAGE
$ mt-tech plugins reset [--hard] [--reinstall]
FLAGS
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
--reinstall Reinstall all plugins after uninstalling.See code: @oclif/plugin-plugins
mt-tech plugins uninstall [PLUGIN]
Removes a plugin from the CLI.
USAGE
$ mt-tech plugins uninstall [PLUGIN...] [-h] [-v]
ARGUMENTS
[PLUGIN...] plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ mt-tech plugins unlink
$ mt-tech plugins remove
EXAMPLES
$ mt-tech plugins uninstall mypluginSee code: @oclif/plugin-plugins
mt-tech plugins unlink [PLUGIN]
Removes a plugin from the CLI.
USAGE
$ mt-tech plugins unlink [PLUGIN...] [-h] [-v]
ARGUMENTS
[PLUGIN...] plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ mt-tech plugins unlink
$ mt-tech plugins remove
EXAMPLES
$ mt-tech plugins unlink mypluginmt-tech plugins update
Update installed plugins.
USAGE
$ mt-tech plugins update [-h] [-v]
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Update installed plugins.See code: @oclif/plugin-plugins
mt-tech api URI
美团技术服务合作中心api接口通用请求cli
USAGE
$ mt-tech api URI -d <value> -b <value> -s <value> [--env test|staging|prod] [--format json|text] [-a
<value>] [-z <value>]
ARGUMENTS
URI 美团技术服务合作中心api接口路径
FLAGS
-a, --appAuthToken=<value> 授权 token,不需要鉴权的接口可不传
-b, --businessId=<value> (required) 业务 ID
-d, --developerId=<value> (required) 开发者 ID
-s, --signKey=<value> (required) 开发者签名密钥
-z, --biz=<value> 业务参数,JSON 格式字符串
--env=<option> [default: prod] 指定环境:test、staging、prod
<options: test|staging|prod>
--format=<option> [default: json] 输出格式
<options: json|text>
DESCRIPTION
美团技术服务合作中心api接口通用请求cli
EXAMPLES
$ mt-tech api --uri=/rms/data/api/v1/poi/settlement_method/query --appAuthToken=xxx --developerId=xxx --businessId=xx --signKey=xxx --biz='{"test":"xxx"}'See code: src/commands/api.ts
mt-tech help [COMMAND]
Display help for mt-tech.
USAGE
$ mt-tech help [COMMAND...] [-n]
ARGUMENTS
[COMMAND...] Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for mt-tech.See code: @oclif/plugin-help
