Skip to content

Commit cbc8725

Browse files
authored
Release Version (#146)
2 parents b0d18f7 + 6a60103 commit cbc8725

18 files changed

+96
-70
lines changed

.changeset/calm-sheep-rest.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/fuzzy-bushes-battle.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/commands/generate-code.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $ xano generate-code [options]
2222
#### --generator <generator>
2323
**Description:** Generator to use, see all options at: https://openapi-generator.tech/docs/generators
2424
#### --args <args>
25-
**Description:** Additional arguments to pass to the generator. See https://openapi-generator.tech/docs/usage#generate
25+
**Description:** Additional arguments to pass to the generator. For options for each generator see https://openapi-generator.tech/docs/usage#generate
2626
#### --debug
2727
**Description:** Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false
2828

@@ -49,7 +49,8 @@ Options:
4949
--print-output-dir Expose usable output path for further reuse.
5050
--generator <generator> Generator to use, see all options at:
5151
https://openapi-generator.tech/docs/generators
52-
--args <args> Additional arguments to pass to the generator. See
52+
--args <args> Additional arguments to pass to the generator. For
53+
options for each generator see
5354
https://openapi-generator.tech/docs/usage#generate
5455
--debug Specify this flag in order to allow logging. Logs
5556
will appear in output/_logs. Default: false

docs/commands/generate-oas.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generate-oas
22
>[!NOTE|label:Description]
3-
> #### Update and generate OpenAPI spec(s) for the current context.
3+
> #### Update and generate OpenAPI spec(s) for the current context, or all API groups simultaneously. This generates an opinionated API documentation powered by Scalar API Reference. + this command brings the Swagger docs to OAS 3.1+ version.
44
55
```term
66
$ xano generate-oas [options]
@@ -25,7 +25,10 @@ $ xano generate-oas [options]
2525
$ xano generate-oas --help
2626
Usage: xano generate-oas [options]
2727
28-
Update and generate OpenAPI spec(s) for the current context.
28+
Update and generate OpenAPI spec(s) for the current context, or all API groups
29+
simultaneously. This generates an opinionated API documentation powered by
30+
Scalar API Reference. + this command brings the Swagger docs to OAS 3.1+
31+
version.
2932
3033
Options:
3134
--instance <instance> The instance name. This is used to fetch the instance

docs/commands/generate-repo.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# generate-repo
22
>[!NOTE|label:Description]
3-
> #### Process Xano workspace into repo structure
3+
> #### Process Xano workspace into repo structure. We use the export-schema metadata API to offer the full details. However that is enriched with the Xanoscripts after Xano 2.0 release.
44
55
```term
66
$ xano generate-repo [options]
77
```
88
### Options
99

10-
#### --input <file>
11-
**Description:** workspace yaml file
12-
#### --output <dir>
13-
**Description:** output directory (overrides config)
10+
#### -I, --input <file>
11+
**Description:** Workspace yaml file from a local source, if present.
12+
#### -O, --output <dir>
13+
**Description:** Output directory (overrides default config), useful when ran from a CI/CD pipeline and want to ensure consistent output location.
1414
#### --instance <instance>
1515
**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
1616
#### --workspace <workspace>
@@ -19,19 +19,23 @@ $ xano generate-repo [options]
1919
**Description:** The branch name. This is used to select the branch configuration. Same as on Xano Interface.
2020
#### --print-output-dir
2121
**Description:** Expose usable output path for further reuse.
22-
#### --fetch
23-
**Description:** Specify this if you want to fetch the workspace schema from Xano
22+
#### -F, --fetch
23+
**Description:** Forces fetching the workspace schema from the Xano instance via metadata API.
2424

2525
### generate-repo --help
2626
```term
2727
$ xano generate-repo --help
2828
Usage: xano generate-repo [options]
2929
30-
Process Xano workspace into repo structure
30+
Process Xano workspace into repo structure. We use the export-schema metadata
31+
API to offer the full details. However that is enriched with the Xanoscripts
32+
after Xano 2.0 release.
3133
3234
Options:
33-
--input <file> workspace yaml file
34-
--output <dir> output directory (overrides config)
35+
-I, --input <file> Workspace yaml file from a local source, if present.
36+
-O, --output <dir> Output directory (overrides default config), useful
37+
when ran from a CI/CD pipeline and want to ensure
38+
consistent output location.
3539
--instance <instance> The instance name. This is used to fetch the instance
3640
configuration. The value provided at the setup
3741
command.
@@ -40,7 +44,7 @@ Options:
4044
--branch <branch> The branch name. This is used to select the branch
4145
configuration. Same as on Xano Interface.
4246
--print-output-dir Expose usable output path for further reuse.
43-
--fetch Specify this if you want to fetch the workspace
44-
schema from Xano
47+
-F, --fetch Forces fetching the workspace schema from the Xano
48+
instance via metadata API.
4549
-h, --help display help for command
4650
```

docs/commands/generate-xs-repo.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generate-xs-repo
22
>[!NOTE|label:Description]
3-
> #### Process Xano workspace into repo structure
3+
> #### Process Xano workspace into repo structure. Supports table, function and apis as of know. Xano VSCode extension is the preferred solution over this command. Outputs of this process are also included in the default repo generation command.
44
55
```term
66
$ xano generate-xs-repo [options]
@@ -21,7 +21,10 @@ $ xano generate-xs-repo [options]
2121
$ xano generate-xs-repo --help
2222
Usage: xano generate-xs-repo [options]
2323
24-
Process Xano workspace into repo structure
24+
Process Xano workspace into repo structure. Supports table, function and apis as
25+
of know. Xano VSCode extension is the preferred solution over this command.
26+
Outputs of this process are also included in the default repo generation
27+
command.
2528
2629
Options:
2730
--instance <instance> The instance name. This is used to fetch the instance

docs/commands/registry-add.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# registry-add
22
>[!NOTE|label:Description]
3-
> #### Add a prebuilt component to the current Xano context.
3+
> #### Add a prebuilt component to the current Xano context, essentially by pushing an item from the registry to the Xano instance.
44
55
```term
66
$ xano registry-add [options]
@@ -23,7 +23,8 @@ $ xano registry-add [options]
2323
$ xano registry-add --help
2424
Usage: xano registry-add [options]
2525
26-
Add a prebuilt component to the current Xano context.
26+
Add a prebuilt component to the current Xano context, essentially by pushing an
27+
item from the registry to the Xano instance.
2728
2829
Options:
2930
--instance <instance> The instance name. This is used to fetch the instance

docs/commands/registry-scaffold.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $ xano registry-scaffold [options]
88
### Options
99

1010
#### --output <path>
11-
**Description:** Output path for the registry
11+
**Description:** Local output path for the registry
1212
#### --instance <instance>
1313
**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
1414

@@ -24,7 +24,7 @@ the [registry](https://calycode.com/schemas/registry/registry.json) and
2424
schemas.
2525
2626
Options:
27-
--output <path> Output path for the registry
27+
--output <path> Local output path for the registry
2828
--instance <instance> The instance name. This is used to fetch the instance
2929
configuration. The value provided at the setup command.
3030
-h, --help display help for command

docs/commands/restore-backup.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# restore-backup
22
>[!NOTE|label:Description]
3-
> #### Restore a backup to a Xano Workspace via Metadata API
3+
> #### Restore a backup to a Xano Workspace via Metadata API. DANGER! This action will override all business logic and restore the original v1 branch. Data will be also restored from the backup file.
44
55
```term
66
$ xano restore-backup [options]
@@ -11,25 +11,30 @@ $ xano restore-backup [options]
1111
**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
1212
#### --workspace <workspace>
1313
**Description:** The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
14-
#### --source-backup <file>
15-
**Description:** Path to the backup file to restore
14+
#### -S, --source-backup <file>
15+
**Description:** Local path to the backup file to restore.
1616
#### --force
17-
**Description:** Force restoration without confirmation
17+
**Description:** Force restoration without confirmation, not advised to be specified, useful when ran from a CI/CD pipeline and consequences are acknowledged.
1818

1919
### restore-backup --help
2020
```term
2121
$ xano restore-backup --help
2222
Usage: xano restore-backup [options]
2323
24-
Restore a backup to a Xano Workspace via Metadata API
24+
Restore a backup to a Xano Workspace via Metadata API. DANGER! This action will
25+
override all business logic and restore the original v1 branch. Data will be
26+
also restored from the backup file.
2527
2628
Options:
27-
--instance <instance> The instance name. This is used to fetch the instance
28-
configuration. The value provided at the setup
29-
command.
30-
--workspace <workspace> The workspace name. This is used to fetch the
31-
workspace configuration. Same as on Xano interface.
32-
--source-backup <file> Path to the backup file to restore
33-
--force Force restoration without confirmation
34-
-h, --help display help for command
29+
--instance <instance> The instance name. This is used to fetch the
30+
instance configuration. The value provided at the
31+
setup command.
32+
--workspace <workspace> The workspace name. This is used to fetch the
33+
workspace configuration. Same as on Xano
34+
interface.
35+
-S, --source-backup <file> Local path to the backup file to restore.
36+
--force Force restoration without confirmation, not
37+
advised to be specified, useful when ran from a
38+
CI/CD pipeline and consequences are acknowledged.
39+
-h, --help display help for command
3540
```

docs/commands/run-test.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# run-test
22
>[!NOTE|label:Description]
3-
> #### Run an API test suite via the OpenAPI spec. WIP...
3+
> #### Run an API test suite via the OpenAPI spec. To execute this command a specification is required. Find the schema here: https://calycode.com/schemas/testing/config.json
44
55
```term
66
$ xano run-test [options]
@@ -20,14 +20,16 @@ $ xano run-test [options]
2020
#### --print-output-dir
2121
**Description:** Expose usable output path for further reuse.
2222
#### --test-config-path <path>
23-
**Description:** Path to a test configuration file.
23+
**Description:** Local path to the test configuration file.
2424

2525
### run-test --help
2626
```term
2727
$ xano run-test --help
2828
Usage: xano run-test [options]
2929
30-
Run an API test suite via the OpenAPI spec. WIP...
30+
Run an API test suite via the OpenAPI spec. To execute this command a
31+
specification is required. Find the schema here:
32+
https://calycode.com/schemas/testing/config.json
3133
3234
Options:
3335
--instance <instance> The instance name. This is used to fetch the
@@ -41,6 +43,6 @@ Options:
4143
--all Regenerate for all API groups in the workspace /
4244
branch of the current context.
4345
--print-output-dir Expose usable output path for further reuse.
44-
--test-config-path <path> Path to a test configuration file.
46+
--test-config-path <path> Local path to the test configuration file.
4547
-h, --help display help for command
4648
```

0 commit comments

Comments
 (0)