0.0.3 • Published 1 year ago

txn-cli v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

txn-cli

A new CLI generated with oclif

oclif Version Downloads/week

Dev

npm install
npm run dev -- hello world
npm run dev -- hello friend -f oclif
npm run dev -- hello PEPE --from MEME
npm run prod -- hell world
npm run prod -- uuid
npm run ts-node ./test/hello.ts

Usage

$ npm install -g txn-cli
$ tx COMMAND
running command...
$ tx (--version)
txn-cli/0.0.3 win32-x64 node-v20.16.0
$ tx --help [COMMAND]
USAGE
  $ tx COMMAND
...

Commands

tx binance st [PATH]

上传策略交易数据到arweave

USAGE
  $ tx binance st [PATH]

ARGUMENTS
  PATH  [default: .env] .env文件路径,需要请设置

DESCRIPTION
  上传策略交易数据到arweave

EXAMPLES
  $ tx binance st d:/.env

See code: src/commands/binance/st.ts

tx binance ticker SYMBOLS

从binance获取加密货币价格

USAGE
  $ tx binance ticker SYMBOLS [-p <value>]

ARGUMENTS
  SYMBOLS  需要查询的加密货币,英文逗号分隔

FLAGS
  -p, --proxy=<value>  设置http代理

DESCRIPTION
  从binance获取加密货币价格

EXAMPLES
  $ tx binance ticker "btcusdt,ethusdt"

See code: src/commands/binance/ticker.ts

tx bitget gt [PATH]

上传网格交易数据到arweave

USAGE
  $ tx bitget gt [PATH]

ARGUMENTS
  PATH  [default: .env] .env文件路径,需要请设置

DESCRIPTION
  上传网格交易数据到arweave

EXAMPLES
  $ tx bitget gt d:/.env

See code: src/commands/bitget/gt.ts

tx bitget ticker SYMBOLS

从bitget获取加密货币价格

USAGE
  $ tx bitget ticker SYMBOLS [-p <value>]

ARGUMENTS
  SYMBOLS  需要查询的symbol

FLAGS
  -p, --proxy=<value>  设置http代理

DESCRIPTION
  从bitget获取加密货币价格

EXAMPLES
  $ tx bitget ticker "btcusdt"

See code: src/commands/bitget/ticker.ts

tx hello PERSON

Say hello

USAGE
  $ tx hello PERSON -f <value>

ARGUMENTS
  PERSON  Person to say hello to

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

DESCRIPTION
  Say hello

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

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

tx hello world

Say hello world

USAGE
  $ tx hello world

DESCRIPTION
  Say hello world

EXAMPLES
  $ tx hello world
  hello world! (./src/commands/hello/world.ts)

See code: src/commands/hello/world.ts

tx help [COMMAND]

Display help for tx.

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

See code: @oclif/plugin-help

tx plugins

List installed plugins.

USAGE
  $ tx plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ tx plugins

See code: @oclif/plugin-plugins

tx plugins add PLUGIN

Installs a plugin into tx.

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

  Uses npm to install plugins.

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

  Use the TX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the TX_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ tx plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ tx plugins add myplugin

  Install a plugin from a github url.

    $ tx plugins add https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ tx plugins add someuser/someplugin

tx plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ tx 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
  $ tx plugins inspect myplugin

See code: @oclif/plugin-plugins

tx plugins install PLUGIN

Installs a plugin into tx.

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

  Uses npm to install plugins.

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

  Use the TX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the TX_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ tx plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ tx plugins install myplugin

  Install a plugin from a github url.

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

  Install a plugin from a github slug.

    $ tx plugins install someuser/someplugin

See code: @oclif/plugin-plugins

tx plugins link PATH

Links a plugin into the CLI for development.

USAGE
  $ tx 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
  $ tx plugins link myplugin

See code: @oclif/plugin-plugins

tx plugins remove [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx 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
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins remove myplugin

tx plugins reset

Remove all user-installed and linked plugins.

USAGE
  $ tx 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

tx plugins uninstall [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx 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
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins uninstall myplugin

See code: @oclif/plugin-plugins

tx plugins unlink [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ tx 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
  $ tx plugins unlink
  $ tx plugins remove

EXAMPLES
  $ tx plugins unlink myplugin

tx plugins update

Update installed plugins.

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

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

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins

tx ts

Unix Timestamp (milliseconds)

USAGE
  $ tx ts

DESCRIPTION
  Unix Timestamp (milliseconds)

See code: src/commands/ts.ts

tx uuid

生成uuid

USAGE
  $ tx uuid

DESCRIPTION
  生成uuid

See code: src/commands/uuid.ts