Nice bash script here!
Sadly I have to point out a few stuff that will prevent your script from running
1 - If you run this script twice in a row, you will receive an error message stating that the project “draft” already exists. In fact by running it twice you will perform two project creation (under the hood) and the second attempt will fail. To tackle this you could generate the project name as a random value, and then store it to keep track of the project name you are currently using. The drawback though, is that running this command will create a fresh new project that you would be able to see in the project list page. (You can delete it, not a big deal but still…)
2 - Your authentication token will expire some day, or you might not have one. Running
lumber generate command without a valid token will make the prompt ask for username/password. These are information you can easily pass to the lumber generate command using
-e (email, you already did it) and
-P (password) options.
Thanks for sharing this with the community, congrats for the code , this a nice content