This would be a standalone package, and probably an API client package. For command line parsing: - https://github.com/unjs/citty (a good example: https://github.com/papra-hq/papra/blob/main/packages/cli/src/cli.ts )