Hi, @mjgs.
$ netlify help sites:create
Create an empty site (advanced)
USAGE
$ netlify sites:create
OPTIONS
-a, --account-slug=account-slug account slug to create the site under
-c, --with-ci initialize CI hooks during site creation
-m, --manual Force manual CI setup. Used --with-ci flag
-n, --name=name name of site
--debug Print debugging information
--httpProxy=httpProxy Proxy server address to route requests through.
--httpProxyCertificateFilename=httpProxyCertificateFilename Certificate file to use when connecting using a proxy server
DESCRIPTION
Create a blank site that isn't associated with any git remote. Does not link to the current working directory.
Are you looking to control which account the site is created under? If so, use the -account-slug
option for that.
If you want to get the default team that is returned by netlify status
(and you might also use the --json
option if you want to pipe that output as input to another program).
Regarding the environment variable, are you saying that you want the Netlify CLI tool to create the environment variable in your local system environment variable with the default team name at Netlify for the auth token being used?