Skip to content

Commit 0d96201

Browse files
committed
docs: update cli usage
1 parent ee0eb3e commit 0d96201

1 file changed

Lines changed: 32 additions & 5 deletions

File tree

guide/docs/cli.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,46 @@ python manage.py loadshapes <file>
1818

1919
## Data Layer
2020

21-
Create a new Data Layer:
21+
To interact with the Data Layers on the CLI the following management commands exist. `<key>` stands for the key of a Data Layer, you can provide multiple keys separated by `,` and use patterns with `*`.
22+
23+
Managing Data Layers:
24+
25+
```sh
26+
python manage.py dl_init <key>
27+
python manage.py dl_copy <source_key> <target_key>
28+
python manage.py dl_rename <source_key> <target_key>
29+
30+
# Batch update of a single field of the Data Layer model
31+
python manage.py dl_update <key|s> --attr <attr> --value <value>
32+
33+
# Delete metadata, log, processed data, class file,
34+
# add --data to also delete data dir
35+
python manage.py dl_delete <key>
36+
```
37+
38+
Processing:
2239

2340
```sh
24-
python manage.py dl_init <data layer key>
41+
python manage.py dl_download <key|s>
42+
python manage.py dl_process <key|s>
43+
44+
# Delete processed data and log
45+
python manage.py dl_reset <key|s>
2546
```
2647

27-
To download or process a defined Data Layer.
48+
Exporting and importing:
2849

2950
```sh
30-
python manage.py dl_download <data layer key>
31-
python manage.py dl_process <data layer key>
51+
# Metadata (model definitions) of the Data Layers
52+
python manage.py dl_dump_data <key|s>
53+
python manage.py dl_dump_meta <key|s>
54+
55+
# Processed data
56+
python manage.py dl_restore_data <file>
57+
python manage.py dl_restore_meta <file>
3258
```
3359

60+
3461
## Centroid
3562

3663
To calculate the centroid of all loaded shapes use the following command.

0 commit comments

Comments
 (0)