blob: e02cbcdb00835e2d49428e0ac1306e5da4e9b7b0 [file] [log] [blame] [view]
@PLUGIN@ project
================
NAME
----
@PLUGIN@ project - Imports a project
SYNOPSIS
--------
```
ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ project \
--from <URL> | -f <URL> \
--user <USER> | -u <USER> \
--pass - | <PASS> \
[--parent <NAME>] \
[--quiet] \
<NAME>
```
DESCRIPTION
-----------
Imports a project.
ACCESS
------
Caller must be a member of a group that is granted the 'Import'
capability (provided by this plugin) or the 'Administrate Server'
capability.
SCRIPTING
---------
This command is intended to be used in scripts.
OPTIONS
-------
`--from`
: URL of the remote system from where the project should be imported.
`--pass`
: Password of remote user.
`--user`
: User on remote system.
`--parent`
: Name of the parent project in the target system.
The imported project will be created under this parent project.
`--quiet`
: Suppress progress messages.
EXAMPLES
--------
Import a project:
```
$ ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ project --from https://some-gerrit-server:8080 \
--pass myPassword --user myUser myProject
```