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
.description('Restore a backup to a Xano Workspace via Metadata API');
153
+
.description('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.');
154
154
155
155
addPartialContextOptions(cmd);
156
156
157
-
cmd.option('--source-backup <file>','Path to the backup file to restore')
158
-
.option('--force','Force restoration without confirmation')
157
+
cmd.option('-S, --source-backup <file>','Local path to the backup file to restore.')
158
+
.option('--force','Force restoration without confirmation, not advised to be specified, useful when ran from a CI/CD pipeline and consequences are acknowledged.')
@@ -96,7 +95,7 @@ async function updateOasWizard({
96
95
functionregisterGenerateOasCommand(program,core){
97
96
constcmd=program
98
97
.command('generate-oas')
99
-
.description('Update and generate OpenAPI spec(s) for the current context.');
98
+
.description('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.');
.description('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.')
129
+
.option('-I, --input <file>','Workspace yaml file from a local source, if present.')
130
+
.option('-O, --output <dir>','Output directory (overrides default config), useful when ran from a CI/CD pipeline and want to ensure consistent output location.');
126
131
127
132
addFullContextOptions(cmd);
128
133
addPrintOutputFlag(cmd);
129
134
130
-
cmd.option('--fetch','Specify this if you want to fetch the workspace schema from Xano').action(
135
+
cmd.option('-F, --fetch','Forces fetching the workspace schema from the Xano instance via metadata API.').action(
.description('Process Xano workspace into repo structure');
85
+
.description('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.');
Copy file name to clipboardExpand all lines: packages/cli/src/commands/registry.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,9 @@ async function installComponentToXano(file, resolvedContext, core) {
127
127
functionregisterRegistryAddCommand(program,core){
128
128
constcmd=program
129
129
.command('registry-add')
130
-
.description('Add a prebuilt component to the current Xano context.');
130
+
.description(
131
+
'Add a prebuilt component to the current Xano context, essentially by pushing an item from the registry to the Xano instance.'
132
+
);
131
133
132
134
addFullContextOptions(cmd);
133
135
cmd.option('--components','Comma-separated list of components to add')
@@ -160,7 +162,7 @@ function registerRegistryScaffoldCommand(program, core) {
160
162
.description(
161
163
'Scaffold a Xano registry folder with a sample component. Xano registry can be used to share and reuse prebuilt components. In the registry you have to follow the [registry](https://calycode.com/schemas/registry/registry.json) and [registry item](https://calycode.com/schemas/registry/registry-item.json) schemas.'
162
164
)
163
-
.option('--output <path>','Output path for the registry')
165
+
.option('--output <path>','Local output path for the registry')
164
166
.option(
165
167
'--instance <instance>',
166
168
'The instance name. This is used to fetch the instance configuration. The value provided at the setup command.'
Copy file name to clipboardExpand all lines: packages/cli/src/commands/run-tests.ts
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -128,17 +128,18 @@ ${'-'.repeat(60)}`
128
128
);
129
129
}
130
130
131
-
// [ ] CLI
132
131
functionregisterRunTestCommand(program,core){
133
132
constcmd=program
134
133
.command('run-test')
135
-
.description('Run an API test suite via the OpenAPI spec. WIP...');
134
+
.description(
135
+
'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 '
136
+
);
136
137
137
138
addFullContextOptions(cmd);
138
139
addApiGroupOptions(cmd);
139
140
addPrintOutputFlag(cmd);
140
141
141
-
cmd.option('--test-config-path <path>','Path to a test configuration file.').action(
142
+
cmd.option('--test-config-path <path>','Local path to the test configuration file.').action(
0 commit comments