From ece67e413b044769b5ab0bec636818e1f0a64f9c Mon Sep 17 00:00:00 2001 From: 7nohe <7nohe.urata@gmail.com> Date: Tue, 31 Oct 2023 23:17:16 +0900 Subject: [PATCH] docs: update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 8aa3e43..3d2720e 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,23 @@ $ npm install -D @7nohe/openapi-react-query-codegen ``` + Register the command to the `scripts` property in your package.json file. + +```json +{ + "scripts": { + "codegen": "openapi-rq -i ./petstore.yaml -c axios" + } +} +``` + +You can also run the command without installing it in your project using the npx command. + +```bash +$ npx --package @7nohe/openapi-react-query-codegen openapi-rq -i ./petstore.yaml -c axios +``` + + ## Usage ```