|
1 | | -``` |
| 1 | +# `generate-code` Command |
| 2 | +> Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will generate that as well as the first step. |
| 3 | +### Options |
| 4 | + |
| 5 | +#### --instance <instance> |
| 6 | +**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command. |
| 7 | +#### --workspace <workspace> |
| 8 | +**Description:** The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface. |
| 9 | +#### --branch <branch> |
| 10 | +**Description:** The branch name. This is used to select the branch configuration. Same as on Xano Interface. |
| 11 | +#### --group <name> |
| 12 | +**Description:** API group name. Same as on Xano Interface. |
| 13 | +#### --all |
| 14 | +**Description:** Regenerate for all API groups in the workspace / branch of the current context. |
| 15 | +#### --print-output-dir |
| 16 | +**Description:** Expose usable output path for further reuse. |
| 17 | +#### --generator <generator> |
| 18 | +**Description:** Generator to use, see all options at: https://openapi-generator.tech/docs/generators |
| 19 | +#### --args <args> |
| 20 | +**Description:** Additional arguments to pass to the generator. See https://openapi-generator.tech/docs/usage#generate |
| 21 | +#### --debug |
| 22 | +**Description:** Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false |
| 23 | + |
| 24 | +### generate-code --help |
| 25 | +```sh |
2 | 26 | Usage: xano generate-code [options] |
3 | 27 |
|
4 | | -Create a library based on the OpenAPI specification. If the openapi specification has not yet been |
5 | | -generated, this will generate that as well as the first step. |
| 28 | +Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will |
| 29 | +generate that as well as the first step. |
6 | 30 |
|
7 | 31 | Options: |
8 | | - --instance <instance> The instance name. This is used to fetch the instance configuration. The value |
9 | | - provided at the setup command. |
10 | | - --workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on |
11 | | - Xano interface. |
12 | | - --branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano |
13 | | - Interface. |
| 32 | + --instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the |
| 33 | + setup command. |
| 34 | + --workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano |
| 35 | + interface. |
| 36 | + --branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface. |
14 | 37 | --group <name> API group name. Same as on Xano Interface. |
15 | 38 | --all Regenerate for all API groups in the workspace / branch of the current context. |
16 | 39 | --print-output-dir Expose usable output path for further reuse. |
17 | | - --generator <generator> Generator to use, see all options at: |
18 | | - https://openapi-generator.tech/docs/generators |
| 40 | + --generator <generator> Generator to use, see all options at: https://openapi-generator.tech/docs/generators |
19 | 41 | --args <args> Additional arguments to pass to the generator. See |
20 | 42 | https://openapi-generator.tech/docs/usage#generate |
21 | | - --debug Specify this flag in order to allow logging. Logs will appear in output/_logs. |
22 | | - Default: false |
| 43 | + --debug Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false |
23 | 44 | -h, --help display help for command |
24 | 45 | ``` |
0 commit comments