0.6.1 • Published 2 days ago
@opas/cli v0.6.1
cli
command line tools which bundle
@opas/core
and@opas/plugin-app
Usage
npx @opas/cli --help
Commands
init
: Initializeopas
config fileapp
: Generate API client from OpenAPI 2/3 spec
Config
you can use all config types which supported by cosmiconfig
opas.config.cjs
/** @type {import('@opas/cli').OpasConfig} */
const config = {
configs: [
{
url: '', // your open api spec url or file path
namespace: '', // your namespace
extractField: '', // extract field from open api spec
},
],
}
module.exports = config
You can find all configuration options in the OpasConfig