add 'generateapi' command to regenerate the rest api
diff --git a/planetstack/scripts/opencloud b/planetstack/scripts/opencloud
index d460312..893bc16 100755
--- a/planetstack/scripts/opencloud
+++ b/planetstack/scripts/opencloud
@@ -168,3 +168,6 @@
 if [ "$COMMAND" = "genkeys" ]; then
     genkeys
 fi
+if [ "$COMMAND" = "generateapi" ]; then
+   python apigen/modelgen apigen/api.template.py > genapi.py
+fi
\ No newline at end of file