Skip to content

Commit 1f2e0b6

Browse files
committed
feat: added a little bit more styled markdown docs based on the cmd signatures from commander
1 parent 0342c6f commit 1f2e0b6

17 files changed

+384
-148
lines changed

docs/README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
# @calycode/cli Command Reference
1+
# @calycode/cli (Caly-Xano CLI) Command Reference
22

33
Supercharge your Xano workflow: automate backups, docs, testing, and version control—no AI guesswork, just reliable, transparent dev tools.
44

55
## Table of Contents
66

7-
- [xano - the core commmand](xano.md)
8-
#### Commands:
9-
- [setup](commands/setup.md)
10-
- [switch-context](commands/switch-context.md)
11-
- [generate-oas](commands/generate-oas.md)
12-
- [serve-oas](commands/serve-oas.md)
13-
- [generate-code](commands/generate-code.md)
14-
- [generate-repo](commands/generate-repo.md)
15-
- [generate-xs-repo](commands/generate-xs-repo.md)
16-
- [registry-add](commands/registry-add.md)
17-
- [registry-scaffold](commands/registry-scaffold.md)
18-
- [serve-registry](commands/serve-registry.md)
19-
- [export-backup](commands/export-backup.md)
20-
- [restore-backup](commands/restore-backup.md)
21-
- [run-test](commands/run-test.md)
22-
- [current-context](commands/current-context.md)
7+
- [xano - the core command](xano.md)
238

24-
Need further help? Visit https://github.com/calycode/xano-tools or reach out to Mihály Tóth on [State Change](https://statechange.ai/) or [Snappy Community](https://www.skool.com/@mihaly-toth-2040?g=snappy)
9+
### Commands
10+
- [`setup`](commands/setup.md)
11+
- [`switch-context`](commands/switch-context.md)
12+
- [`generate-oas`](commands/generate-oas.md)
13+
- [`serve-oas`](commands/serve-oas.md)
14+
- [`generate-code`](commands/generate-code.md)
15+
- [`generate-repo`](commands/generate-repo.md)
16+
- [`generate-xs-repo`](commands/generate-xs-repo.md)
17+
- [`registry-add`](commands/registry-add.md)
18+
- [`registry-scaffold`](commands/registry-scaffold.md)
19+
- [`serve-registry`](commands/serve-registry.md)
20+
- [`export-backup`](commands/export-backup.md)
21+
- [`restore-backup`](commands/restore-backup.md)
22+
- [`run-test`](commands/run-test.md)
23+
- [`current-context`](commands/current-context.md)
24+
25+
Need further help? Visit [GitHub](https://github.com/calycode/xano-tools) or reach out to Mihály Tóth on [State Change](https://statechange.ai/) or [Snappy Community](https://www.skool.com/@mihaly-toth-2040?g=snappy)

docs/commands/current-context.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
```
1+
# `current-context` Command
2+
### Options
3+
4+
5+
### current-context --help
6+
```sh
27
Usage: xano current-context [options]
38

49
Options:

docs/commands/export-backup.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
```
1+
# `export-backup` Command
2+
> Backup Xano Workspace via Metadata API
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+
#### --print-output-dir
12+
**Description:** Expose usable output path for further reuse.
13+
14+
### export-backup --help
15+
```sh
216
Usage: xano export-backup [options]
317

418
Backup Xano Workspace via Metadata API
519

620
Options:
7-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
8-
provided at the setup command.
9-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
10-
Xano interface.
11-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
12-
Interface.
21+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
22+
setup command.
23+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
24+
interface.
25+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
1326
--print-output-dir Expose usable output path for further reuse.
1427
-h, --help display help for command
1528
```

docs/commands/generate-code.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,45 @@
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
226
Usage: xano generate-code [options]
327

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.
630

731
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.
1437
--group <name> API group name. Same as on Xano Interface.
1538
--all Regenerate for all API groups in the workspace / branch of the current context.
1639
--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
1941
--args <args> Additional arguments to pass to the generator. See
2042
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
2344
-h, --help display help for command
2445
```

docs/commands/generate-oas.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
1-
```
1+
# `generate-oas` Command
2+
> Update and generate OpenAPI spec(s) for the current context.
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+
18+
### generate-oas --help
19+
```sh
220
Usage: xano generate-oas [options]
321

422
Update and generate OpenAPI spec(s) for the current context.
523

624
Options:
7-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
8-
provided at the setup command.
9-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
10-
Xano interface.
11-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
12-
Interface.
25+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
26+
setup command.
27+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
28+
interface.
29+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
1330
--group <name> API group name. Same as on Xano Interface.
1431
--all Regenerate for all API groups in the workspace / branch of the current context.
1532
--print-output-dir Expose usable output path for further reuse.

docs/commands/generate-repo.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
1-
```
1+
# `generate-repo` Command
2+
> Process Xano workspace into repo structure
3+
### Options
4+
5+
#### --input <file>
6+
**Description:** workspace yaml file
7+
#### --output <dir>
8+
**Description:** output directory (overrides config)
9+
#### --instance <instance>
10+
**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
11+
#### --workspace <workspace>
12+
**Description:** The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
13+
#### --branch <branch>
14+
**Description:** The branch name. This is used to select the branch configuration. Same as on Xano Interface.
15+
#### --print-output-dir
16+
**Description:** Expose usable output path for further reuse.
17+
#### --fetch
18+
**Description:** Specify this if you want to fetch the workspace schema from Xano
19+
20+
### generate-repo --help
21+
```sh
222
Usage: xano generate-repo [options]
323

424
Process Xano workspace into repo structure
525

626
Options:
727
--input <file> workspace yaml file
828
--output <dir> output directory (overrides config)
9-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
10-
provided at the setup command.
11-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
12-
Xano interface.
13-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
14-
Interface.
29+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
30+
setup command.
31+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
32+
interface.
33+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
1534
--print-output-dir Expose usable output path for further reuse.
1635
--fetch Specify this if you want to fetch the workspace schema from Xano
1736
-h, --help display help for command

docs/commands/generate-xs-repo.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
```
1+
# `generate-xs-repo` Command
2+
> Process Xano workspace into repo structure
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+
#### --print-output-dir
12+
**Description:** Expose usable output path for further reuse.
13+
14+
### generate-xs-repo --help
15+
```sh
216
Usage: xano generate-xs-repo [options]
317

418
Process Xano workspace into repo structure
519

620
Options:
7-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
8-
provided at the setup command.
9-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
10-
Xano interface.
11-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
12-
Interface.
21+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
22+
setup command.
23+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
24+
interface.
25+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
1326
--print-output-dir Expose usable output path for further reuse.
1427
-h, --help display help for command
1528
```

docs/commands/registry-add.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
1-
```
1+
# `registry-add` Command
2+
> Add a prebuilt component to the current Xano context.
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+
#### --components
12+
**Description:** Comma-separated list of components to add
13+
#### --registry <url>
14+
**Description:** URL to the component registry. Default: http://localhost:5500/registry/definitions
15+
16+
### registry-add --help
17+
```sh
218
Usage: xano registry-add [options]
319

420
Add a prebuilt component to the current Xano context.
521

622
Options:
7-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
8-
provided at the setup command.
9-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
10-
Xano interface.
11-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
12-
Interface.
23+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
24+
setup command.
25+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
26+
interface.
27+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
1328
--components Comma-separated list of components to add
14-
--registry <url> URL to the component registry. Default:
15-
http://localhost:5500/registry/definitions
29+
--registry <url> URL to the component registry. Default: http://localhost:5500/registry/definitions
1630
-h, --help display help for command
1731
```

docs/commands/registry-scaffold.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
```
1+
# `registry-scaffold` Command
2+
> 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://nextcurve.hu/schemas/registry/registry.json) and [registry item](https://nextcurve.hu/schemas/registry/registry-item.json) schemas.
3+
### Options
4+
5+
#### --output <path>
6+
**Description:** Output path for the registry
7+
#### --instance <instance>
8+
**Description:** The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
9+
10+
### registry-scaffold --help
11+
```sh
212
Usage: xano registry-scaffold [options]
313

4-
Scaffold a Xano registry folder with a sample component. Xano registry can be used to share and reuse
5-
prebuilt components. In the registry you have to follow the
6-
[registry](https://nextcurve.hu/schemas/registry/registry.json) and [registry
7-
item](https://nextcurve.hu/schemas/registry/registry-item.json) schemas.
14+
Scaffold a Xano registry folder with a sample component. Xano registry can be used to share and reuse prebuilt
15+
components. In the registry you have to follow the [registry](https://nextcurve.hu/schemas/registry/registry.json) and
16+
[registry item](https://nextcurve.hu/schemas/registry/registry-item.json) schemas.
817

918
Options:
1019
--output <path> Output path for the registry
11-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
12-
provided at the setup command.
20+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
21+
setup command.
1322
-h, --help display help for command
1423
```

docs/commands/restore-backup.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
```
1+
# `restore-backup` Command
2+
> Restore a backup to a Xano Workspace via Metadata API
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+
#### --source-backup <file>
10+
**Description:** Path to the backup file to restore
11+
#### --force
12+
**Description:** Force restoration without confirmation
13+
14+
### restore-backup --help
15+
```sh
216
Usage: xano restore-backup [options]
317

418
Restore a backup to a Xano Workspace via Metadata API
519

620
Options:
7-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
8-
provided at the setup command.
9-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
10-
Xano interface.
21+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the
22+
setup command.
23+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano
24+
interface.
1125
--source-backup <file> Path to the backup file to restore
1226
--force Force restoration without confirmation
1327
-h, --help display help for command

0 commit comments

Comments
 (0)