|
2 | 2 |
|
3 | 3 | **geonodectl** is a commandline interface tool for [geonode](https://github.com/GeoNode/geonode). It uses the [geonode apiv2](https://docs.geonode.org/en/master/devel/api/V2/index.html) to interact with a geonode installation. |
4 | 4 |
|
| 5 | +## How to use |
| 6 | + |
5 | 7 | geonodectl has currently the following capabilities: |
6 | 8 | ``` |
7 | 9 | ❯ ./geonodectl --help |
@@ -38,26 +40,27 @@ options: |
38 | 40 | ``` |
39 | 41 |
|
40 | 42 | Currently not all features of the API are implemented. Here is a list of what you can do with geonodectl: |
41 | | -| geonode resource | capabilities | description | |
42 | | -|------------------|--------------|--------------| |
43 | | -| resource | list, delete, download metadata | resource can handle all kinds of geonode-resources except people | |
44 | | -| dataset | list, delete, upload | | |
45 | | -| documents | list, delete, upload | | |
46 | | -| maps | list, delete | | |
47 | | -| geoapps | list, delete | | |
48 | | -| people | list | | |
49 | | -| uploads | list | | |
| 43 | +| geonode resource | capabilities | |
| 44 | +|------------------|--------------| |
| 45 | +| resource | list, delete, download metadata | |
| 46 | +| dataset | list, delete, patch, describe, upload | |
| 47 | +| documents | list, delete, patch, describe, upload | |
| 48 | +| maps | list, delete, patch, describe | |
| 49 | +| geoapps | list, delete, patch, describe | |
| 50 | +| people | list, delete, patch, describe | |
| 51 | +| uploads | list | |
50 | 52 |
|
51 | 53 | This project is WIP, so feel free to add more functions to this project. |
52 | 54 |
|
53 | 55 | ## Usage |
54 | 56 |
|
55 | | -first of all install the requirements for this project with: |
| 57 | +first install the project with: |
| 58 | + |
56 | 59 | ``` |
57 | | -pip install -r requirements.txt |
| 60 | +pip install https://github.com/GeoNodeUserGroup-DE/geonodectl.git |
58 | 61 | ``` |
59 | 62 |
|
60 | | -Further **geonodectl** requires to set two environment variables like: |
| 63 | +Additionally to package install, **geonodectl** requires to set two environment variables to connect to a geonode instance like: |
61 | 64 | ``` |
62 | 65 | GEONODECTL_URL: https://master.demo.geonode.org/api/v2/ # make sure to supply full api url |
63 | 66 | GEONODECTL_BASIC: dXNlcjpwYXNzd29yZA== # you can generate this string like: echo -n user:password | base64 |
@@ -96,7 +99,7 @@ Now you are ready to go: |
96 | 99 | | 1 | wheaterdata 2004 | admin | 2023-01-23T10:19:00Z | True | True | PROCESSED | https://geonode.corki.bonares.de/catalogue/#/dataset/1 | |
97 | 100 |
|
98 | 101 | # delete dataset |
99 | | -❯ ./geonodectl ds delete -pk 36 |
| 102 | +❯ ./geonodectl ds delete 36 |
100 | 103 | deleted ... |
101 | 104 |
|
102 | 105 | # check if deleted: |
|
0 commit comments