gitgitlab icon indicating copy to clipboard operation
gitgitlab copied to clipboard

Create project under a namespace

Open sameersbn opened this issue 11 years ago • 4 comments

Is it possible to specify the namespace under which the project should be created? when i do git lab create -t <project name> a new project is created under the user namespace. Would it be possible to add an option to specify the namespace under which the project should be created, e.g. git lab create -t -n <namespace> <project name> or git lab create -t <namespace>/<project name>

sameersbn avatar May 29 '14 05:05 sameersbn

Good idea! I'll look into it.

grimborg avatar May 29 '14 06:05 grimborg

@grimborg thanks. :+1:

sameersbn avatar May 29 '14 07:05 sameersbn

The create project API requires a namespace_id and so far there doesn't seem to be an API endpoint that can convert a namespace name -> id, which makes this difficult to implement.

Will have to look into this further.

3onyc avatar Apr 15 '15 20:04 3onyc

Namespaces are in the current API: http://doc.gitlab.com/ce/api/namespaces.html

jpscharf avatar Jul 14 '15 22:07 jpscharf