diff options
| author | Max Wittig <max.wittig@siemens.com> | 2020-04-07 10:39:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-07 10:39:46 +0200 |
| commit | 5979750fcc953148fcca910c04258f56c3027bce (patch) | |
| tree | 08ee6b2556dce3a53248895d040a580c8770b1b1 /docs/cli.rst | |
| parent | 3396aa51e055b7e7d3bceddc1b91deed17323f3a (diff) | |
| parent | 01de524ce39a67b549b3157bf4de827dd0568d6b (diff) | |
| download | gitlab-5979750fcc953148fcca910c04258f56c3027bce.tar.gz | |
Merge pull request #1052 from machine424/deploy-tokens-support
feat(api): add support for Gitlab Deploy Token API
Diffstat (limited to 'docs/cli.rst')
| -rw-r--r-- | docs/cli.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/cli.rst b/docs/cli.rst index b4a6c5e..b5c8e52 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -207,6 +207,19 @@ Get a specific user by id: $ gitlab user get --id 3 +Create a deploy token for a project: + +.. code-block:: console + + $ gitlab -v project-deploy-token create --project-id 2 \ + --name bar --username root --expires-at "2021-09-09" --scopes "read_repository" + +List deploy tokens for a group: + +.. code-block:: console + + $ gitlab -v group-deploy-token list --group-id 3 + Get a list of snippets for this project: .. code-block:: console |
