You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands/generate-oas.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# generate-oas
2
2
>[!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.
4
4
5
5
```term
6
6
$ xano generate-oas [options]
@@ -25,7 +25,10 @@ $ xano generate-oas [options]
25
25
$ xano generate-oas --help
26
26
Usage: xano generate-oas [options]
27
27
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.
29
32
30
33
Options:
31
34
--instance <instance> The instance name. This is used to fetch the instance
> #### 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.
Copy file name to clipboardExpand all lines: docs/commands/generate-xs-repo.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# generate-xs-repo
2
2
>[!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.
> #### 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.
**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
12
12
#### --workspace <workspace>
13
13
**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.
16
16
#### --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.
18
18
19
19
### restore-backup --help
20
20
```term
21
21
$ xano restore-backup --help
22
22
Usage: xano restore-backup [options]
23
23
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.
25
27
26
28
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
Copy file name to clipboardExpand all lines: docs/commands/run-test.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# run-test
2
2
>[!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
4
4
5
5
```term
6
6
$ xano run-test [options]
@@ -20,14 +20,16 @@ $ xano run-test [options]
20
20
#### --print-output-dir
21
21
**Description:** Expose usable output path for further reuse.
22
22
#### --test-config-path <path>
23
-
**Description:**Path to a test configuration file.
23
+
**Description:**Local path to the test configuration file.
24
24
25
25
### run-test --help
26
26
```term
27
27
$ xano run-test --help
28
28
Usage: xano run-test [options]
29
29
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
31
33
32
34
Options:
33
35
--instance <instance> The instance name. This is used to fetch the
@@ -41,6 +43,6 @@ Options:
41
43
--all Regenerate for all API groups in the workspace /
42
44
branch of the current context.
43
45
--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.
0 commit comments