Skip to content

Commit c1c29eb

Browse files
docs: Add --file CLI option documentation to README.md. (#386)
1 parent b719316 commit c1c29eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ This will generate a new client library named based on the title in your OpenAPI
4848
of your API is "My API", the expected output will be "my-api-client". If a folder already exists by that name, you'll
4949
get an error.
5050

51+
If you have an `openapi.json` file available on disk, in any CLI invocation you can build off that instead by replacing `--url` with a `--path`:
52+
53+
`openapi-python-client generate --path location/on/disk/openapi.json`
54+
5155
### Update an existing client
5256

5357
`openapi-python-client update --url https://my.api.com/openapi.json`

0 commit comments

Comments
 (0)