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
|`--cache / --no-cache`| Use already-cached intermediate data if available. [default: cache]|
102
64
|`--help`| Show this message and exit. |
103
65
104
-
105
66
---
106
67
107
-
###`ls`
68
+
## `ls`
108
69
109
70
List all flows.
110
71
@@ -119,7 +80,7 @@ backend.
119
80
**Usage:**
120
81
121
82
```bash
122
-
Usage: cocoindex ls [OPTIONS] [APP_TARGET]
83
+
cocoindex ls [OPTIONS] [APP_TARGET]
123
84
```
124
85
125
86
**Options:**
@@ -128,10 +89,9 @@ Usage: cocoindex ls [OPTIONS] [APP_TARGET]
128
89
|--------|-------------|
129
90
|`--help`| Show this message and exit. |
130
91
131
-
132
92
---
133
93
134
-
###`server`
94
+
## `server`
135
95
136
96
Start a HTTP server providing REST APIs.
137
97
@@ -142,7 +102,7 @@ APP_TARGET: path/to/app.py or installed_module.
142
102
**Usage:**
143
103
144
104
```bash
145
-
Usage: cocoindex server [OPTIONS] APP_TARGET
105
+
cocoindex server [OPTIONS] APP_TARGET
146
106
```
147
107
148
108
**Options:**
@@ -151,7 +111,7 @@ Usage: cocoindex server [OPTIONS] APP_TARGET
151
111
|--------|-------------|
152
112
|`-a, --address TEXT`| The address to bind the server to, in the format of IP:PORT. If unspecified, the address specified in COCOINDEX_SERVER_ADDRESS will be used. |
153
113
|`-c, --cors-origin TEXT`| The origins of the clients (e.g. CocoInsight UI) to allow CORS from. Multiple origins can be specified as a comma-separated list. e.g. `https://cocoindex.io,http://localhost:3000`. Origins specified in COCOINDEX_SERVER_CORS_ORIGINS will also be included. |
154
-
|`-ci, --cors-cocoindex`| Allow https://cocoindex.io to access the server. |
114
+
|`-ci, --cors-cocoindex`| Allow `https://cocoindex.io` to access the server. |
155
115
|`-cl, --cors-local INTEGER`| Allow `http://localhost:<port>` to access the server. |
156
116
|`-L, --live-update`| Continuously watch changes from data sources and apply to the target index. |
157
117
|`--setup`| Automatically setup backends for the flow if it's not setup yet. |
@@ -161,10 +121,9 @@ Usage: cocoindex server [OPTIONS] APP_TARGET
161
121
|`-r, --reload`| Enable auto-reload on code changes. |
162
122
|`--help`| Show this message and exit. |
163
123
164
-
165
124
---
166
125
167
-
###`setup`
126
+
## `setup`
168
127
169
128
Check and apply backend setup changes for flows, including the internal
170
129
@@ -175,7 +134,7 @@ APP_TARGET: path/to/app.py or installed_module.
Copy file name to clipboardExpand all lines: docs/docs/core/cli.mdx
+2-23Lines changed: 2 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,27 +53,6 @@ CocoIndex CLI supports the following global options:
53
53
*`--version`: Show the CocoIndex version and exit.
54
54
*`--help`: Show the main help message and exit.
55
55
56
-
## Subcommands
56
+
importCliCommandsfrom'./cli-commands.md';
57
57
58
-
The following subcommands are available:
59
-
60
-
| Subcommand | Description |
61
-
| ---------- | ----------- |
62
-
|`ls`| List all flows present in the given file/module. Or list all persisted flows under the current app namespace if no file/module specified. |
63
-
|`show`| Show the spec and schema for a specific flow. |
64
-
|`setup`| Check and apply backend setup changes for flows, including the internal storage and target (to export). |
65
-
|`drop`| Drop the backend setup for specified flows. |
66
-
|`update`| Update the index defined by the flow. |
67
-
|`evaluate`| Evaluate the flow and dump flow outputs to files. Instead of updating the index, it dumps what should be indexed to files. Mainly used for evaluation purpose. |
68
-
|`server`| Start a HTTP server providing REST APIs. It will allow tools like CocoInsight to access the server. |
69
-
70
-
Use `--help` to see the full list of subcommands, and `subcommand --help` to see the usage of a specific one.
71
-
72
-
```sh
73
-
cocoindex --help # Show all subcommands
74
-
cocoindex show --help # Show usage of "show" subcommand
75
-
```
76
-
77
-
## Detailed Command Reference
78
-
79
-
For complete details on all commands and their options, see the auto-generated [CLI Commands Reference](./cli-reference).
0 commit comments