Skip to content
Snippets Groups Projects
Commit cbe98f23 authored by Mikhail Mineev's avatar Mikhail Mineev
Browse files

instructions updated

parent d78ccfa3
No related branches found
No related tags found
1 merge request!7instructions updated
Pipeline #9716820 passed
...@@ -12,27 +12,28 @@ The command line tools are strongly linked with the CrestApi library, thus we su ...@@ -12,27 +12,28 @@ The command line tools are strongly linked with the CrestApi library, thus we su
1. **Clone CrestApi package**: 1. **Clone CrestApi package**:
```shell ```shell
git clone https://gitlab.cern.ch/crest-db/CrestApi.git git clone https://gitlab.cern.ch/crest-db/CrestApi.git
cd CrestApi cd <CrestApi directory>
git fetch git fetch
git switch release-5.1-CR1 git switch release-5.1-CR1
``` ```
You should then install locally the CrestApi lib following the instructions in the readme. You should then install locally the CrestApi lib following the instructions in the readme.
In general you need to prepare an installation directory (if not existing): In general:
```shell ```shell
mkdir $HOME/installed mkdir $HOME/installed
```
Now you can build the project and install it:
```shell
cd <CrestApi directory>
mkdir build ; cd build mkdir build ; cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/installed .. cmake -DCMAKE_INSTALL_PREFIX=$HOME/installed ..
make ; make install make ; make install
``` ```
2. **Clone CrestCmd package**: 2. **Clone CrestCmd package**:
```shell ```shell
cd ../../
git clone https://gitlab.cern.ch/crest-db/crest-cmd.git git clone https://gitlab.cern.ch/crest-db/crest-cmd.git
cd crest-cmd cd <crest-cmd directory>
git fetch git fetch
git switch release-5.1 git switch release-5.1
``` ```
...@@ -44,27 +45,26 @@ The command line tools are strongly linked with the CrestApi library, thus we su ...@@ -44,27 +45,26 @@ The command line tools are strongly linked with the CrestApi library, thus we su
cmake -DCMAKE_PREFIX_PATH=$HOME/installed .. cmake -DCMAKE_PREFIX_PATH=$HOME/installed ..
make make
``` ```
5. **Setup**: 4. **Path setup:**:
```shell ```shell
source ./CrestApi/setup.sh export PATH=$PATH:./
``` ```
8. **Set the `CREST_API_URL` variable (CREST Server URL)**: 5. **Set the `CREST_API_URL` variable (CREST Server URL)**:
```bash ```bash
export CREST_API_URL=http://crest-j23.cern.ch:8080/api-v5.0 export CREST_API_URL=http://crest-j23.cern.ch:8080/api-v5.0
``` ```
*(Or use the setup script):*
```bash
source ../crest-cmd/scripts/crest-setup.sh
```
--- ---
### CREST Command Line Examples ### CREST Command Line Examples
**a.** To get a tag list: **a.** To get a tag with the name `"test_MvG3"`:
```bash
crestCmd get tagList
```
**b.** To get a tag with the name `"test_MvG3"`:
```bash ```bash
crestCmd get tag -n test_MvG3 crestCmd get tag -n test_MvG3
``` ```
...@@ -79,4 +79,4 @@ The command line tools are strongly linked with the CrestApi library, thus we su ...@@ -79,4 +79,4 @@ The command line tools are strongly linked with the CrestApi library, thus we su
### Additional Documentation ### Additional Documentation
You can find detailed documentation in the [User’s Guide](./doc/crest-cmd-user-guide.md). You can find detailed documentation in the [User’s Guide](./doc/crest-cmd-user-guide.md).
It includes descriptions for the `crestImport` and `crestExport` utilities as well. It includes descriptions for the `crestImport`, `crestExport` and other utilities as well.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment