Skip to main content

New Project

The new commands create an empty project for AWS, Azure and GCP.

Command Options#

gc help new
Usage: gc new [options]
Create a new project
Options:
-h, --help display help for command

Providers#

AWS#

Flowchart for creating a new AWS project:

gc-new-aws

Example of the CLI output:

✔ Cloud Provider › AWS
✔ Project's name … my-project
✓ aws --version
✓ aws sts get-caller-identity --region us-east-1
✓ aws ec2 describe-regions --region us-east-1
✓ aws configure get region
✔ Select a region › us-east-1
✓ aws configure set region us-east-1
cd /Users/joe/my-project
npm install

Azure#

Flowchart for creating a new Azure project:

gc-new-azure

Example of the CLI output:

✔ Cloud Provider › Azure
✔ Project's name … az-test
✓ az version
✓ az account show
✓ az account list
✔ Select the Subscription Id › e012cd34-c794-4e35-916f-f38dcd8ac45c
✓ az ad sp create-for-rbac -n sp1
✓ az account list-locations
✔ Select a location › brazilsouth
Writing environment variables TENANT_ID, SUBSCRIPTION_ID, APP_ID and PASSWORD to /Users/fredericheem/test/az-test/auth.env
cd /Users/fredericheem/test/az-test
npm install

Google#

Flowchart for creating a new GCP project:

gc-new-google

Example of the CLI output:

✔ Cloud Provider › GCP
✔ Project's name … mygcp
✓ gcloud version
✓ gcloud auth list
✓ gcloud config get-value project
✓ gcloud projects list
✔ Select the project Id › grucloud-test
✓ gcloud config set project grucloud-test
✓ gcloud config get-value compute/region
✓ gcloud compute regions list
✔ Select the region › southamerica-east1
✓ gcloud config set compute/region southamerica-east1
✓ gcloud config get-value compute/zone
✓ gcloud compute zones list
✔ Select the zone › southamerica-east1-b
✓ gcloud config set compute/zone southamerica-east1-b
cd /Users/joe/test/mygcp
npm install