Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • U User docs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PEP Public
  • User docs
  • Wiki
  • Using pepcli

Using pepcli · Changes

Page history
Update Using pepcli authored Feb 08, 2021 by Kai van Lopik's avatar Kai van Lopik
Show whitespace changes
Inline Side-by-side
Using-pepcli.md
View page @ 2043ad5d
......@@ -39,6 +39,7 @@ pepcli ama query --column-group ShortPseudonyms # The completed command line
The commands supported by `pepcli` are listed below. Follow hyperlinks to read more detailed documentation on each of the commands.
- [`list`](#list) lists data stored in PEP.
- [`query`](#query) provides information on the PEP environment.
## Commands categorized by task
......@@ -49,6 +50,10 @@ General purpose:
- [`query`](#query) provides information on the PEP environment.
Data storage and retrieval:
- [`list`](#list) lists data stored in PEP.
## General flags
Most of `pepcli`'s commands will connect to one or more of the PEP servers, and most server requests will require the user to be [enrolled](Access-control#enrollment). The utility's general flags can be used to indicate how to connect and enroll:
......@@ -67,20 +72,7 @@ Other general flags exist, but are intended for use by developers of the PEP sys
# Commands supported by `pepcli`
## query
Use the `pepcli query` command to query the system. It currently only supports a single sub-command, which lists the columns accessible to you:
```
pepcli query column-access
```
The output will include all columns and column groups accessible to you, as well as whether you have read and/or write access. Note that such access depends on the access group for which you are enrolled. Enroll for a specific access group:
- either by means of a prior call to `pepLogon`,
- or by passing an appropriate [OAuth token](#general-flags) to `pepcli`.
## List data
## list
You can list data e.g. as follows:
```
pepcli list -C <column group> -P <participant group> -T <ticket out file>
......@@ -103,6 +95,19 @@ Important flags are:
Note: Shells use `*` for globbing. We do not want this behaviour, so make sure you escape it with a backslash or double quotes when invoking pepcli from e.g. bash.
## query
Use the `pepcli query` command to query the system. It currently only supports a single sub-command, which lists the columns accessible to you:
```
pepcli query column-access
```
The output will include all columns and column groups accessible to you, as well as whether you have read and/or write access. Note that such access depends on the access group for which you are enrolled. Enroll for a specific access group:
- either by means of a prior call to `pepLogon`,
- or by [passing an appropriate OAuth token](#general-flags) to `pepcli`.
## Get specific entries
After you have done a list, depending on whether data was inlined or not, you have IDs for data entries. You can retrieve the data as follows:
```
......
Clone repository
  • Access control
  • April 2022 migration
  • Castor integration
  • Data structure
  • Glossary
  • Pseudonymization
  • Uploading and downloading data
  • Using pepcli with docker
  • Using pepcli
  • Home