doc(feat): add --install and --dir references to README (#7)

Reviewed-on: https://codeberg.org/vegvisir/install/pulls/7
Co-authored-by: vlw <victor@vlw.se>
Co-committed-by: vlw <victor@vlw.se>
This commit is contained in:
Victor Westerlund 2025-08-07 10:37:36 +02:00 committed by Victor Westerlund
parent 16c1a2df10
commit 8859a741d3

View file

@ -15,13 +15,19 @@ curl -fsSL https://codeberg.org/vegvisir/install/raw/branch/master/install.sh |
# Arguments
You can pass optional named arguments to this script for headless installation of Vegvisir.
## `--install` - Installation directory
## `--install` - Don't install, only configure Vegvisir
```sh
./install.sh --install="/path/to/project"
./install.sh --install=n
```
Pass an `--install` argument with a value of a directory Vegvisir should consider its [`root_path`](https://vegvisir.vlw.se/docs/Reference/Env#root_path).
Pass `--install=n` to prevent download and installation of the Vegvisir git submodule. Use this option if you're version controlling Vegvisir from your project repository.
## `--override` - Overwrite configuration files
## `--dir` - Installation directory
```sh
./install.sh --dir="/path/to/project"
```
Pass a `--dir` argument with a value of a directory Vegvisir should consider its [`root_path`](https://vegvisir.vlw.se/docs/Reference/Env#root_path).
## `--overwrite` - Overwrite configuration files
```sh
./install.sh --overwrite=y
```