Skip to content

Commit 1fe3c1f

Browse files
committed
improve metadata format docs
1 parent 2464b80 commit 1fe3c1f

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

docs/advanced/4_local_development/run_locally.mdx

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,74 @@ set "WM_WORKSPACE=workspace_id"
189189

190190
then simply run the relevant command for your language.
191191

192+
### Metadata file
193+
194+
Metadata files are used with the [CLI sync](../11_git_sync/cli_sync.mdx) to push to a windmill workspace with additional data such as
195+
summary, description, additional UI configs and the full lockfile. The metadata file ias at <script_path without extension>.script.yaml.
196+
197+
```
198+
f/foo/my_script.ts
199+
f/foo/my_script.script.yaml
200+
```
201+
202+
The metadata file has the following format:
203+
204+
```
205+
summary: 'My summary'
206+
description: 'My description'
207+
lock:
208+
- anyio==4.2.0
209+
- certifi==2023.11.17
210+
- h11==0.14.0
211+
- httpcore==0.17.3
212+
- httpx==0.24.1
213+
- idna==3.6
214+
- sniffio==1.3.0
215+
- wmill==1.237.0
216+
schema:
217+
$schema: 'https://json-schema.org/draft/2020-12/schema'
218+
type: object
219+
properties:
220+
name:
221+
type: string
222+
description: ''
223+
default: Nicolas Bourbaki
224+
age:
225+
type: integer
226+
description: ''
227+
default: 42
228+
file_:
229+
type: string
230+
description: ''
231+
contentEncoding: base64
232+
default: <function call>
233+
l:
234+
type: array
235+
description: ''
236+
default:
237+
- or
238+
- lists!
239+
items:
240+
type: string
241+
enum: null
242+
no_default:
243+
type: string
244+
description: ''
245+
default: null
246+
obj:
247+
type: object
248+
description: ''
249+
default:
250+
even: dicts
251+
properties: {}
252+
required:
253+
- no_default
254+
is_template: false
255+
kind: script
256+
```
257+
258+
Schema is following the [jsonschema](../../../core_concepts/13_json_schema_and_parsing/index.md) format
259+
192260
### VS Code
193261

194262
:::info VS Code Extension

0 commit comments

Comments
 (0)