0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-01-12 01:01:16 -05:00

docs: 1.20: cherry-pick admin/command-line.md

* 4014200021a1997283c779a815fe9e5febf1fda1
This commit is contained in:
Earl Warren 2023-04-28 17:29:20 +02:00 committed by Caesar Schinas
parent 2f5e7530ad
commit fd40096085
No known key found for this signature in database
GPG key ID: AE9108461BEA5ACF

View file

@ -536,3 +536,28 @@ Restore-repo restore repository data from disk dir:
- `--owner_name <owner>`: Restore destination owner name
- `--repo_name <repo>`: Restore destination repository name
- `--units <units>`: Which items will be restored, one or more units should be separated as comma. wiki, issues, labels, releases, release_assets, milestones, pull_requests, comments are allowed. Empty means all units.
### actions generate-runner-token
Generate a new token for a runner to use to register with the server
- Options:
- `--scope {owner}[/{repo}]`, `-s {owner}[/{repo}]`: To limit the scope of the runner, no scope means the runner can be used for all repos, but you can also limit it to a specific repo or owner
To register a global runner:
```
forgejo actions generate-runner-token
```
To register a runner for a specific organization, in this case `org`:
```
forgejo actions generate-runner-token -s org
```
To register a runner for a specific repo, in this case `username/test-repo`:
```
forgejo actions generate-runner-token -s username/test-repo
```