@acflow/cli
v0.0.17
Published
CLI tool for ACFlow working
Downloads
56
Readme
@acflow/cli
Version
0.0.13
新增:
- 新增对 ditto-cli 的管理,业务包可以直接通过 acflow i18n 指令从 ditto,配置,拉取,解析配置。 增强对多语言的控制和管理
0.0.12
修正:
- gitDependencies 安装过程中无法找到目标 Tag 提交的问题
0.0.11
修正:
- 拉取 gitDependencies 后,个别目录会移除 eslintrc.json 的文件,导致编译报错。
oclif example Hello World CLI
Usage
$ npm install -g @acflow/cli
$ acflow COMMAND
running command...
$ acflow (--version)
@acflow/cli/0.0.17 darwin-arm64 node-v16.13.0
$ acflow --help [COMMAND]
USAGE
$ acflow COMMAND
...
Commands
acflow dev-test [FILE]
acflow help [COMMAND]
acflow i18n [FILE]
acflow installGit [FILE]
acflow it SOURCE TARGET
acflow plugins
acflow plugins:inspect PLUGIN...
acflow plugins:install PLUGIN...
acflow plugins:link PLUGIN
acflow plugins:uninstall PLUGIN...
acflow plugins update
acflow pod-install [FILE]
acflow rn package dev sync SOURCE TARGET
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 i18n [FILE]
describe the command here
USAGE
$ acflow i18n [FILE] -a init|add|pull|parse [-n <value>] [-f]
FLAGS
-a, --action=(init|add|pull|parse) (required) [default: init] actions init add pull parse default init
-f, --force
-n, --name=<value> name to print
DESCRIPTION
describe the command here
EXAMPLES
$ acflow i18n
See code: dist/commands/i18n.ts
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/cli
- Usage
- Commands
acflow dev-test [FILE]
acflow help [COMMAND]
acflow installGit [FILE]
acflow it SOURCE TARGET
acflow plugins
acflow plugins:inspect PLUGIN...
acflow plugins:install PLUGIN...
acflow plugins:link PLUGIN
acflow plugins:uninstall PLUGIN...
acflow plugins update
acflow pod-install [FILE]
acflow rn package dev sync SOURCE TARGET
acflow it source target
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