Install google clasp, login to Google and authorize clasp with:
clasp login
Then, enable Google Apps Script API in your user settings.
clasp push
clasp deploy
echo "https://datastudio.google.com/datasources/create?connectorId=$(clasp deployments | tail -n 1 | cut -d ' ' -f 2)&authuser=0"