@@ -11,21 +11,34 @@ npx geostyler-cli --output new-qgis-style.qml my-existing.sld
11
11
12
12
## Requirements
13
13
14
- Requires [ Node.js] ( https://nodejs.org/ ) and
15
- [ npx] ( https://www.npmjs.com/package/npx ) or [ npm] ( https://www.npmjs.com/ ) , both usually come with Node.js.
14
+ ` geostyler-cli ` can either be run as a standalone application or installed using [ Node.js] ( https://nodejs.org/ ) .
15
+
16
+ ## Standalone application
17
+
18
+ Binaries are available for Linux, MacOS, and Windows on the
19
+ [ Releases] ( https://github.com/geostyler/geostyler-cli/releases ) page.
20
+ Download the zip file for your operating system, unzip, navigate to the folder
21
+ and run the ` geostyler ` command:
22
+
23
+ ```
24
+ geostyler --output new-qgis-style.qml my-existing.sld
25
+ ```
16
26
17
27
## Usage without installation ⚡
18
28
29
+ ` Node.js ` includes [ npx] ( https://docs.npmjs.com/cli/v10/commands/npx ) , this
30
+ allows you to run commands from an npm package without having to install it.
31
+
19
32
```
20
33
npx geostyler-cli -s sld -t qgis -o output.qml input.sld
21
34
```
22
35
23
-
24
36
## Global installation
25
37
26
38
### Installation 💾
27
39
28
- Once:
40
+ ` Node.js ` includes [ npm] ( https://docs.npmjs.com/cli/v10/commands/npm ) - the
41
+ JavaScript package manager. To install the ` geostyler ` command globally:
29
42
30
43
```
31
44
npm install -g geostyler-cli
@@ -80,7 +93,7 @@ geostyler [options] -t qgis -o /path/to/output /path/to/input/
80
93
the extension of the input file. Mandatory if the the target
81
94
is a directory.
82
95
* ` -t ` / ` --target ` Target parser, either ` mapbox ` , ` sld ` (for SLD 1.0), ` se ` (for SLD 1.1),
83
- ` qgis ` or ` qml ` . If not given, it will be guessed from
96
+ and ` qgis ` or ` qml ` for QGIS QML files . If not given, it will be guessed from
84
97
the extension of the output file. Mandatory if the the target
85
98
is a directory.
86
99
Mapfiles are currently not supported as target.
0 commit comments