| gerrit ls-projects - List projects visible to caller |
| 'ssh' -p <port> <host> 'gerrit ls-projects' |
| Displays the list of project names, one per line, that the |
| calling user account has been granted 'READ' access to. |
| If the caller is a member of the privileged 'Administrators' |
| group, all projects are listed. |
| Any user who has configured an SSH key. |
| This command is intended to be used in scripts. |
| $ ssh -p 29418 review.example.com gerrit ls-projects |
| Clone any project visible to the user: |
| for p in `ssh -p 29418 review.example.com gerrit ls-projects` |
| git clone --bare "ssh://review.example.com:29418/$p.git" "$p.git" |
| * link:access-control.html[Access Controls] |
| Part of link:index.html[Gerrit Code Review] |