Skip to content

cli tools

help

anyparse-cli --help

help command

anyparse-cli [COMMAND] --help

parse file

anyparse-cli parse --config config/config.yaml --file /path/to/your_file
params:
  • config: config file path
  • file: file path
  • log_level: log level

start api server and openai proxy

anyparse-cli api --config config/config.yaml

params:

  • config: config file path
  • host: api server host, default: 0.0.0.0
  • port: api server port, default: 18007
  • prefix: api prefix, default: /anyparse
  • seckey: api secret key, default: config.yaml.auths.secret_key
  • api_extra_args: json string, extra args for fastapi, default: ""

allowed file types

anyparse-cli allow --config config/config.yaml

download models

anyparse-cli download --config config/config.yaml --model