Add export GITLAB_API_TOKEN=______
to your .bashrc
or relevant file, then run:
curl --request POST -H "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" \ -H "Content-Type:application/json" \"https://gitlab.com/api/v4/projects" \ -d "{ \"name\":\"test\", \"description\":\"Description.\" }"