1.1.0 • Published 12 months ago

craftapi-cli v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

CraftAPI CLI

This is basically a wrapper for OpenAPI Mocker, that adds a URL schema loader for using CraftAPI.

Installation and usage

Using npm

npm i -g craftapi-cli

craftapi -s https://app.craftapi.dev/mock/[WORKSPACE-TOKEN]/[PROJECT-TOKEN]/openapi

More info

See the open-api-mocker docs to read more about the capabilities of this CLI.

Common options

OptionRequiredExampleDescription
-s urltrue-s https://...The CraftAPI schema URL.
-p portfalse-p 3000The port the server will listen to. The default is 5001.
-wfalse-wReload the schema every 10 seconds.
-i secondsfalse-i 30Set the interval at which to reload the schema.

Write --help to prompt every available setting.

craftapi --help

Contributing

Issues and PRs are welcome.