@acflow/cli 中文文档教程

发布于 3年前 浏览 35 项目主页 更新于 3年前

@acflow/cli

oclif example Hello World CLI

oclifVersionCircleCIDownloads/weekLicense

Usage

$ npm install -g @acflow/cli
$ acflow COMMAND
running command...
$ acflow (--version)
@acflow/cli/0.0.9 darwin-arm64 node-v16.13.0
$ acflow --help [COMMAND]
USAGE
  $ acflow COMMAND
...

Commands

acflow dev-test [FILE]

describe the command here

USAGE
  $ acflow dev-test [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  describe the command here

EXAMPLES
  $ acflow dev-test

See code: dist/commands/dev-test.ts

acflow help [COMMAND]

Display help for acflow.

USAGE
  $ acflow 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 acflow.

See code: @oclif/plugin-help

acflow installGit [FILE]

describe the command here

USAGE
  $ acflow installGit [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  describe the command here

EXAMPLES
  $ acflow installGit

See code: dist/commands/installGit.ts

acflow it SOURCE TARGET

Compile react native package project and copy to target dev project folder

USAGE
  $ acflow it [SOURCE] [TARGET] [-n <value>] [-f]

ARGUMENTS
  SOURCE  source package project path, will bundle it and copy to target project
  TARGET  target react native project path for dev, will copy bundle to this project

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  Compile react native package project and copy to target dev project folder

ALIASES
  $ acflow dev

EXAMPLES
  $ acflow it

See code: dist/commands/it.ts

acflow plugins

List installed plugins.

USAGE
  $ acflow plugins [--core]

FLAGS
  --core  Show core plugins.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ acflow plugins

See code: @oclif/plugin-plugins

acflow plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ acflow plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ acflow plugins:inspect myplugin

acflow plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ acflow plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ acflow plugins add

EXAMPLES
  $ acflow plugins:install myplugin 

  $ acflow plugins:install https://github.com/someuser/someplugin

  $ acflow plugins:install someuser/someplugin

acflow plugins:link PLUGIN

Links a plugin into the CLI for development.

USAGE
  $ acflow plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

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
  $ acflow plugins:link myplugin

acflow plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ acflow plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ acflow plugins unlink
  $ acflow plugins remove

acflow plugins update

Update installed plugins.

USAGE
  $ acflow plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

acflow pod-install [FILE]

describe the command here

USAGE
  $ acflow pod-install [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  describe the command here

EXAMPLES
  $ acflow pod-install

See code: dist/commands/pod-install.ts

acflow rn package dev sync SOURCE TARGET

Compile react native package project and copy to target dev project folder

USAGE
  $ acflow rn package dev sync [SOURCE] [TARGET] [-n <value>] [-f]

ARGUMENTS
  SOURCE  source package project path, will bundle it and copy to target project
  TARGET  target react native project path for dev, will copy bundle to this project

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  Compile react native package project and copy to target dev project folder

EXAMPLES
  $ acflow rn package dev sync

acflow it source target

监听业务包文件变化,并自动编译并同步到调试项目中

USAGE
  $ acflow rn:package:dev:sync source=./src target=./target

ARGUMENTS
  source  目标项目
  target  业务包项目

FLAGS
  -f, --from=<value>  (required) Whom is saying hello

DESCRIPTION
  监听业务包文件变化,并自动编译并同步到调试项目中

EXAMPLES
  $ oex hello friend --from oclif
  hello friend from oclif! (./src/commands/hello/index.ts)

See code: dist/commands/hello/index.ts

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文