How to: To generate a sample client library
You can build a client against the [Petstore API](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml) as follows:

```sh
./bin/generate-samples.sh ./bin/configs/java-okhttp-gson.yaml
```

(On Windows, please install [GIT Bash for Windows](https://gitforwindows.org/) to run the command above)

This script uses the default library, which is `okhttp-gson`. It will run the generator with this command:

```sh
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
  -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
  -g java \
  -t modules/openapi-generator/src/main/resources/Java \
  --additional-properties artifactId=petstore-okhttp-gson,hideGenerationTimestamp=true \
  -o samples/client/petstore/java/okhttp-gson
```

with a number of options. [The java options are documented here.](docs/generators/java.md)

You can also get the options with the `help generate` command (below only shows partial results):

```
NAME
        openapi-generator-cli generate - Generate code with the specified
        generator.

SYNOPSIS
        openapi-generator-cli generate
                [(-a
| --auth
)]
                [--api-name-suffix
] [--api-package
]
                [--artifact-id
] [--artifact-version
]
                [(-c
| --config
)] [--dry-run]
                [(-e
| --engine
)]
                [--enable-post-process-file]
                [(-g
| --generator-name
)]
                [--generate-alias-as-model] [--git-host
]
                [--git-repo-id
] [--git-user-id
]
                [--global-property
...] [--group-id
]
                [--http-user-agent
]
                [(-i
| --input-spec
)]
                [--ignore-file-override
]
                [--import-mappings
...]
                [--instantiation-types
...]
                [--invoker-package
]
                [--language-specific-primitives
...]
                [--legacy-discriminator-behavior] [--library
]
                [--log-to-stderr] [--minimal-update]
                [--model-name-prefix
]
                [--model-name-suffix
]
                [--model-package
]
                [(-o
| --output
)] [(-p
| --additional-properties
)...]
                [--package-name
] [--release-note
]
                [--remove-operation-id-prefix]
                [--reserved-words-mappings
...]
                [(-s | --skip-overwrite)] [--server-variables
...]
                [--skip-validate-spec] [--strict-spec
]
                [(-t