mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 20:42:52 +00:00
docs: Update README.md
This commit is contained in:
20
README.md
20
README.md
@@ -11,17 +11,29 @@ Example to copy all Events of the b-tu instance:
|
||||
```shell
|
||||
npm install
|
||||
npm run build
|
||||
node ./lib/cli.js copy -t Event --appVersion 1.0.0 https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000
|
||||
node ./lib/cli.js copy Event https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100
|
||||
```
|
||||
|
||||
### Program arguments:
|
||||
|
||||
```shell
|
||||
node ./lib/cli.js copy --appVersion <app version> -t <vc type> <source> <target>
|
||||
node ./lib/cli.js copy <type> <from> <to> <batchSize>
|
||||
```
|
||||
|
||||
Example execution with docker when backend is running on `localhost:3000`:
|
||||
#### Options:
|
||||
```shell
|
||||
-s, --bulkSource <bulkScource>
|
||||
```
|
||||
The source identifier for the bulk to use with the target instance (default is 'copy')
|
||||
|
||||
```shell
|
||||
docker run --net=host registry.gitlab.com/openstapps/api/copy copy -t Place --appVersion 1.0.0 https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000
|
||||
-a, --appVersion <version>
|
||||
```
|
||||
The App version to use (unset by default)
|
||||
|
||||
### Example execution
|
||||
with docker when backend is running on `localhost:3000`:
|
||||
|
||||
```shell
|
||||
docker run --net=host registry.gitlab.com/openstapps/api/copy copy Place https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user