Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/open-buckets-retire.md

This file was deleted.

15 changes: 9 additions & 6 deletions docs/commands/generate-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,26 @@ $ xano generate-code [options]
**Description:** Expose usable output path for further reuse.
#### --generator <generator>
**Description:** Generator to use, see all options at: https://openapi-generator.tech/docs/generators or the full list of orval clients. To use orval client, write the generator as this: orval-<orval-client>.
#### --args <args>
**Description:** Additional arguments to pass to the generator. For options for each generator see https://openapi-generator.tech/docs/usage#generate
#### --debug
**Description:** Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false

### generate-code --help
```term
$ xano generate-code --help
Usage: xano generate-code [options]
Usage: xano generate-code [options] [passthroughArgs...]

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. Supports **all** openapi tools generators + orval clients.

Arguments:
passthroughArgs Additional arguments to pass to the generator. For
options for each generator see
https://openapi-generator.tech/docs/usage#generate
this also accepts Orval additional arguments e.g.
--mock etc. See Orval docs as well:
https://orval.dev/reference/configuration/full-example

Options:
--instance <instance> The instance name. This is used to fetch the instance
configuration. The value provided at the setup
Expand All @@ -51,9 +57,6 @@ Options:
https://openapi-generator.tech/docs/generators or the
full list of orval clients. To use orval client,
write the generator as this: orval-<orval-client>.
--args <args> Additional arguments to pass to the generator. For
options for each generator see
https://openapi-generator.tech/docs/usage#generate
--debug Specify this flag in order to allow logging. Logs
will appear in output/_logs. Default: false
-h, --help display help for command
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @calycode/xano-cli

## 0.10.1

### Patch Changes

- 307aafe: chore: refactor of codegeneration command, allow variadic argument to passthrough all additional args for both orval and openapi-tools-generator

## 0.10.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@calycode/cli",
"version": "0.10.0",
"version": "0.10.1",
"description": "Command-line interface for Xano providing terminal access to Xano workflows",
"publishConfig": {
"tag": "latest",
Expand Down