<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Parvez Masarrat Khan on Medium]]></title>
        <description><![CDATA[Stories by Parvez Masarrat Khan on Medium]]></description>
        <link>https://medium.com/@parvezmk?source=rss-d931454d2a95------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Dphpp43o12gJAHTbw6jp-g.jpeg</url>
            <title>Stories by Parvez Masarrat Khan on Medium</title>
            <link>https://medium.com/@parvezmk?source=rss-d931454d2a95------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:03:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parvezmk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Google Cloud Quick Reference — Services and Basic Commands]]></title>
            <link>https://medium.com/@parvezmk/google-cloud-quick-reference-services-and-basic-commands-687dcd909cf6?source=rss-d931454d2a95------2</link>
            <guid isPermaLink="false">https://medium.com/p/687dcd909cf6</guid>
            <category><![CDATA[gcp-certification]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <dc:creator><![CDATA[Parvez Masarrat Khan]]></dc:creator>
            <pubDate>Fri, 15 Dec 2023 14:33:02 GMT</pubDate>
            <atom:updated>2023-12-15T14:33:02.933Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Google Cloud Platform — Quick Reference Guide</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PE_17UvbQ_89FJ9p" /><figcaption>Photo by <a href="https://unsplash.com/@mitchel3uo?utm_source=medium&amp;utm_medium=referral">Mitchell Luo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>This is a quick reference guide for Google Cloud Platform (GCP). This guide provides an overview and essential practical commands to work on almost all the popular Google Cloud Services.</em></p><h3><strong>Table of Contents:</strong></h3><ol><li><a href="#b715">Google Cloud Platform</a></li><li><a href="#0e5c">Cloud CLI</a></li><li><a href="#6a8e">Cloud Pub/Sub</a></li><li><a href="#f94e">Virtual Private Cloud (VPC)</a></li><li><a href="#9b68">Compute Engine</a></li><li><a href="#6c76">Cloud Storage</a></li><li><a href="#f089">Cloud Run</a></li><li><a href="#aff2">Google Kubernetes Engine (GKE)</a></li><li><a href="#a304">Cloud SQL</a></li><li><a href="#96ec">Cloud Bigtable</a></li><li><a href="#f57f">App Engine</a></li><li><a href="#8870">Cloud Functions</a></li><li><a href="#8499">BigQuery</a></li><li><a href="#7c0c">Cloud Filestore</a></li><li><a href="#556e">Cloud Source Repositories</a></li><li><a href="#f05f">Cloud Artifact Registry</a></li><li><a href="#ae1b">Cloud Build</a></li><li><a href="#1e9d">Cloud SDK Libraries</a></li><li><a href="#890b">Google Cloud Console</a></li><li><a href="#92c3">Cloud Shell</a></li><li><a href="#0147">Cloud Composer</a></li><li><a href="#6737">Cloud Scheduler</a></li><li><a href="#48c3">Apigee API Management</a></li><li><a href="#0c1f">Cloud Tasks</a></li><li><a href="#1fe9">Cloud Load Balancing</a></li><li><a href="#6c10">Cloud Firewall</a></li><li><a href="#c895">Cloud Armor</a></li><li><a href="#e118">Cloud CDN</a></li><li><a href="#df7c">Cloud DNS</a></li><li><a href="#a449">Cloud NAT</a></li><li><a href="#03ec">Cloud Logging</a></li><li><a href="#13a4">Cloud Monitoring</a></li><li><a href="#e44d">Cloud Profiler</a></li><li><a href="#f718">Cloud Error Reporting</a></li><li><a href="#bc56">Google Secret Manager</a></li><li><a href="#80aa">Cloud Identity and Access Management</a></li><li><a href="#f0c8">Service Account</a></li><li><a href="#1da6">Auto ML</a></li><li><a href="#e754">Translation AI</a></li><li><a href="#4a7f">Natural Language AI</a></li><li><a href="#bc1d">Video AI</a></li><li><a href="#321c">Vision AI</a></li><li><a href="#7338">Document AI</a></li><li><a href="#7032">Speech-to-Text</a></li><li><a href="#ee33">Text-to-Speech</a></li></ol><blockquote><strong><em>Google Cloud Platform</em></strong></blockquote><p>Google Google Cloud Platform (GCP) is a cloud computing Platform provided by Google. It offers a variety of infrastructure and platform services, including computing, storage, databases, analytics, machine learning, artificial intelligence, networking, and more. GCP enables businesses and developers to build, deploy and scale applications in a flexible, reliable and cost-effective way using Google’s infrastructure.</p><p>In the subsequent sections, we will go through each and every GCP service where we will try to understand what a particular service offers and how we can work on that using few essential commands.</p><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud CLI</em></strong></blockquote><p>Google Cloud CLI, commonly referred to as gcloud, is the command-line interface for interacting with various services and resources on Google Cloud Platform (GCP). It is part of the Google Cloud SDK, which is a set of tools for managing and deploying applications on GCP.<em> </em>Most frequently used tools are given below- <br><strong>gcloud:</strong> <br>The “gcloud” tool is used to work with most Google Cloud resources.<br><strong>gsutil:</strong><br>The “gsutil” tool is used to work with Cloud Storage.<br><strong>bq:</strong><br>The “bq” tool is used to work with BigQuery.<br><strong>cbt:</strong><br>The “cbt” tool is used to work with BigTable.<br><strong>kubectl:</strong><br>The “kubectl” tool is used to work with GKE .<br><strong>Emulators:</strong><br>This is an emulators for products like Cloud Bigtable, Datastore, Firestore, Spanner, and Pub/Sub for local development, testing, and validation.</p><p>Below are few essential commands to work on Cloud CLI:</p><pre>// Initialize SDK<br>gcloud init<br><br>// Authenticate yourself<br>gcloud auth login<br><br>// Set Project<br>gcloud config set project YOUR_PROJECT_ID<br><br>// Enable an API<br>gcloud services enable SERVICE_NAME<br><br>// List all buckets<br>gsutil ls<br><br>// Deploy an Application on GKE<br>kubectl create deployment DEPLOYMENT_NAME --image=IMAGE_NAME<br><br>// Create a table in a Bigtable instance<br>cbt createtable TABLE_NAME<br><br>// Create a new dataset in BigQuery<br>bq mk DATASET_NAME<br><br>// Use the `emulator` command to test pub/sub locally<br>gcloud beta emulators pubsub start</pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Pub/Sub</em></strong></blockquote><p>Cloud Pub/Sub is a messaging service that allows us to send and receive messages between independent applications. It enables scalable, event-driven computing systems by providing a reliable and flexible messaging infrastructure.</p><p>Below are few essential commands to work with Cloud Pub/Sub using the `gcloud` command-line tool.</p><pre>// Create a new Pub/Sub topic.<br>gcloud pubsub topics create TOPIC_NAME<br><br>// List all Pub/Sub topics in the current project<br>gcloud pubsub topics list<br><br>// Delete a Pub/Sub topic.<br>gcloud pubsub topics delete TOPIC_NAME<br><br>// Create a new Pub/Sub subscription for a topic<br>gcloud pubsub subscriptions create SUBSCRIPTION_NAME --topic=TOPIC_NAME<br><br>// List all Pub/Sub subscriptions in the current project<br>gcloud pubsub subscriptions list<br><br>// Delete a Pub/Sub subscription<br>gcloud pubsub subscriptions delete SUBSCRIPTION_NAME<br><br>// Publish a message to a Pub/Sub topic<br>gcloud pubsub topics publish TOPIC_NAME --message=&quot;This is a sample message&quot;<br><br>// Pull messages from a Pub/Sub subscription<br>gcloud pubsub subscriptions pull SUBSCRIPTION_NAME --limit=NUM_MESSAGES<br><br>// Acknowledge that a message has been processed and can be removed from the subscription<br>gcloud pubsub subscriptions acknowledge SUBSCRIPTION_NAME RECEIVED_MESSAGE_ID<br><br>// Install Pub/Sub emulator to test Pub/Sub locally<br>gcloud components install pubsub-emulator gcloud components update<br><br>// Use the `emulator` command to test<br>gcloud beta emulators pubsub start</pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Virtual Private Cloud (VPC)</em></strong></blockquote><p>Virtual Private Cloud (VPC) allows you to create a logically isolated network to deploy and run your Google Cloud resources. It provides flexibility and control over your network settings, including IP addresses, subnets, and routing.</p><p>Below are few essential commands to work on Virtual Private Cloud (VPC):</p><pre>// Create a new VPC<br>gcloud compute networks create VPC_NAME<br><br>// List all VPCs in the current project<br>gcloud compute networks list<br><br>// Retrieve details about a specific VPC<br>gcloud compute networks describe VPC_NAME<br><br>// Create a new subnet within a specific VPC<br>gcloud compute networks subnets create SUBNET_NAME --network VPC_NAME --range SUBNET_RANGE<br><br>// List all subnets within a VPC<br>gcloud compute networks subnets list --network VPC_NAME<br><br>// Retrieve details about a specific subnet<br>gcloud compute networks subnets describe SUBNET_NAME --region REGION<br><br>// Create a new firewall rule to control traffic within a VPC<br>gcloud compute firewall-rules create RULE_NAME --network VPC_NAME --allow ALLOWED_TRAFFIC<br><br>// List all firewall rules within a VPC<br>gcloud compute firewall-rules list --network VPC_NAME<br><br>// Retrieve details about a specific firewall rule<br>gcloud compute firewall-rules describe RULE_NAME<br><br>// Delete a VPC and its associated resources<br>gcloud compute networks delete VPC_NAME</pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Compute Engine</em></strong></blockquote><p>Compute Engine is an Infrastructure as a Service (IaaS) provided by Google Cloud Platform (GCP) that allows users to create virtual machines (VMs) on Google’s infrastructure.</p><p>Below are few essential commands to work on Compute Engine:</p><pre>// Create a VM Instance<br>gcloud compute instances create VM_INSTANCE_NAME<br><br>// List all instances<br>gcloud compute instances list<br><br>// Connect to instance<br>gcloud compute ssh VM_INSTANCE_NAME<br><br>// Start an instance<br>gcloud compute instances start VM_INSTANCE_NAME<br><br>// Stop an instance<br>gcloud compute instances stop VM_INSTANCE_NAME<br><br>// Delete an instance<br>gcloud compute instances delete VM_INSTANCE_NAME<br><br>// Create a disk<br>gcloud compute disks create DISK_NAME --size=SIZE<br><br>// List the disks<br>gcloud compute disks list <br><br>// Attach a disk to an instance<br>gcloud compute instances attach-disk VM_INSTANCE_NAME --disk=DISK_NAM<br><br>// Detaching a disk<br>gcloud compute instances detach-disk VM_INSTANCE_NAME --disk=DISK_NAME<br><br></pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Storage</em></strong></blockquote><p>Cloud Storage is a highly scalable, reliable and fully managed object storage service provided by Google Cloud Platform (GCP). It allows you to store and retrieve data in a highly available and durable manner.</p><p>Below are few essential commands to work on Cloud Storage:</p><pre>// Create a bucket<br>gsutil mb gs://BUCKET_NAME<br><br>// List all buckets<br>gsutil ls<br><br>// Copy files to a bucket<br>gsutil cp LOCAL_FILE gs://BUCKET_NAME<br><br>// Copy files from a bucket<br>gsutil cp gs://BUCKET_NAME/OBJECT_NAME LOCAL_FILE <br><br>// List objects inside a bucket<br>gsutil ls gs://BUCKET_NAME<br><br>// Set permissions on a bucket<br>gsutil acl ch -u USER:PERMISSION gs://BUCKET_NAME <br><br>// Sync local directory to a bucket<br>gsutil rsync -r LOCAL_DIRECTORY gs://BUCKET_NAME<br><br>// Set metadate for an object<br>gsutil setmeta -h &quot;METADATA_KEY:METADATA_VALUE&quot; gs://BUCKET_NAME/OBJECT_NAME<br><br>// Make bucket public<br>gsutil iam ch allUsers:objectViewer gs://BUCKET_NAME <br><br>// Remove a bucket<br>gsutil rm -r gs://BUCKET_NAME <br><br>// Remove an object inside bucket<br>gsutil rm gs://BUCKET_NAME/OBJECT_NAME <br><br>// Copy object with storage class and metadata<br>gsutil cp -s STORAGE_CLASS -h &quot;METADATA_KEY:METADATA_VALUE&quot; LOCAL_FILE gs://BUCKET_NAME </pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Run</em></strong></blockquote><p>Cloud Run is a fully managed compute platform that automatically scales your containerized applications. It abstracts away the underlying infrastructure, allowing developers to focus on building and deploying applications without worrying about server provisioning or scaling.</p><p>Below are few essential commands to work on Cloud Run:</p><pre>// Deploying a Container to Cloud Run<br>gcloud run deploy SERVICE_NAME --image gcr.io/PROJECT_ID/IMAGE_NAME<br><br>// Listing Deployed Services<br>gcloud run services list<br><br>// View Service Details<br>gcloud run services describe SERVICE_NAME<br><br>// Set Environment Variables<br>gcloud run deploy SERVICE_NAME --image gcr.io/PROJECT_ID/IMAGE_NAME --set-env-vars KEY=VALUE<br><br>// Delete a Service<br>gcloud run services delete SERVICE_NAME</pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Google Kubernetes Engine (GKE)</em></strong></blockquote><p>Google Kubernetes Engine (GKE) is a managed Kubernetes service provided by Google Cloud Platform. It simplifies the deployment, management, and scaling of containerized applications using Kubernetes, an open-source container orchestration system.</p><p>Below are few essential commands to work on Google Kubernetes Engine (GKE):</p><pre>// Create a GKE Cluster<br>gcloud container clusters create CLUSTER_NAME<br><br>// Get Cluster Credentials<br>gcloud container clusters get-credentials CLUSTER_NAME<br><br>// List clusters<br>gcloud container Clusters list<br><br>// Scale the Cluster<br>gcloud container clusters resize CLUSTER_NAME --num-nodes=NEW_SIZE<br><br>// Deploy an Application<br>kubectl create deployment DEPLOYMENT_NAME --image=IMAGE_NAME<br><br>// Expose the Deployment<br>kubectl expose deployment DEPLOYMENT_NAME --type=LoadBalancer --port=SERVICE_PORT<br><br>// Check the Deployment Status<br>kubectl get deployments<br><br>// Check the Pods<br>kubectl get pods<br><br>// Scale the Deployment<br>kubectl scale deployment DEPLOYMENT_NAME --replicas=NEW_REPLICAS<br><br>// Delete a Deployment<br>kubectl delete deployment DEPLOYMENT_NAME<br><br>// Delete a GKE Cluster<br>gcloud container clusters delete CLUSTER_NAME<br><br>// Upgrade Cluster version or configuration<br>gcloud container clusters upgrade CLUSTER_NAME</pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud SQL</em></strong></blockquote><p>Cloud SQL is a fully-managed relational database service provided by Google Cloud Platform. It supports popular database engines such as MySQL, PostgreSQL, and SQL Server.</p><p>Below are few essential commands to work on Cloud SQL:</p><pre>// Create a Cloud SQL Instance<br>gcloud sql instances create INSTANCE_NAME --database-version=DATABASE_VERSION --tier=TIER<br><br>// Connect to the Database<br>gcloud sql connect INSTANCE_NAME --user=USERNAME<br><br>// Set a Root Password<br>gcloud sql users set-password root --host=% --instance=INSTANCE_NAME --password=NEW_PASSWORD<br><br>// List SQL Instances<br>gcloud sql instances list<br><br>// Create a Database<br>gcloud sql databases create DATABASE_NAME --instance=INSTANCE_NAME<br><br>// List all Databases<br>gcloud sql databases list --instance=INSTANCE_NAME<br><br>// Import Data into a Database<br>gcloud sql import sql INSTANCE_NAME gs://BUCKET_PATH/DB_BACKUP_FILE_NAME.gz --database=DATABASE_NAME<br><br>// Create a User<br>gcloud sql users create USERNAME --host=% --instance=INSTANCE_NAME --password=USER_PASSWORD<br><br>// List all Users<br>gcloud sql users list --instance=INSTANCE_NAME<br><br>// Delete a Cloud SQL Instance<br>gcloud sql instances delete INSTANCE_NAME</pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Bigtable</em></strong></blockquote><p>Google Cloud Bigtable is a fully-managed, scalable NoSQL database service designed to handle large amounts of data with low-latency and high-throughput. It is well-suited for real-time analytics and IoT applications.</p><p>Below are few essential commands to work on Cloud Bigtable:</p><pre>// install cbt tool for Cloud Big table <br>gcloud components update<br>gcloud components install cbt<br><br>// Create a table in a Google Cloud Bigtable instance<br>cbt createtable TABLE_NAME<br><br>// List all tables in a Google Cloud Bigtable instance<br>cbt ls<br><br>// Write data to a table in a Google Cloud Bigtable instance<br>echo &quot;Hello world:qualifier value&quot; | cbt -instance INSTANCE_ID -project PROJECT_ID -table TABLE_NAME import -<br><br>// Read data from a table in a Google Cloud Bigtable instance<br>cbt read TABLE_NAME<br><br>// Delete a table in a Google Cloud Bigtable instance<br>cbt deletetable TABLE_NAME<br><br>// Create column families within a table<br>cbt createfamily TABLE_NAME COLUMN_FAMILY_NAME<br><br>// Modify the data in a table.<br>cbt set TABLE_NAME ROW_KEY COLUMN_FAMILY_NAME:QUALIFIER VALUE<br></pre><p><a href="#306e"><em>Back to Top</em></a></p><blockquote><strong><em>App Engine</em></strong></blockquote><p>App Engine is a fully managed platform-as-a-service (PaaS) that allows developers to build, deploy, and scale applications on Google’s infrastructure without managing the underlying infrastructure. App Engine supports multiple programming languages,<em> </em>including Java, Python, Node.js, Go and PHP.</p><p>Below are few essential commands to work on App Engine:</p><pre>// Deploy your application to App Engine<br>gcloud app deploy<br><br>// Check the status of the last deployment<br>gcloud app browse<br><br>// View logs generated by the deployed app<br>gcloud app logs read<br><br>// Stop the running version of your app<br>gcloud app versions stop VERSION_ID<br><br>// Configure scaling settings for your app<br>gcloud app versions update default --automatic-scaling \<br>    --min-instances=MIN_INSTANCES --max-instances=MAX_INSTANCES<br><br>// Set environment variables for your app<br>gcloud app browse<br><br>// List all deployed services and versions of your app<br>gcloud app services list<br>gcloud app versions list<br><br>// Set the default version and split traffic between versions<br>gcloud app services set-traffic SERVICE_ID --splits=SPLIT<br><br>// View details of deployed versions and services<br><br>gcloud app versions describe VERSION_ID<br>gcloud app services describe SERVICE_ID<br><br>// Delete a specific version of your app<br>gcloud app versions delete VERSION_ID<br></pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Functions</em></strong></blockquote><p>Cloud Functions is a serverless compute service that allows developers to write and deploy event-driven functions in various programming languages without managing infrastructure.</p><p>Below are few essential commands to work on Cloud Functions:</p><pre>// Deploy a Cloud Function to Google Cloud<br>gcloud functions deploy FUNCTION_NAME --runtime RUNTIME --trigger-event TRIGGER_EVENT --trigger-resource TRIGGER_RESOURCE --entry-point ENTRY_POINT<br><br>// List all deployed Cloud Functions.<br>gcloud functions list<br><br>// View details of a specific Cloud Function.<br>gcloud functions describe FUNCTION_NAME<br><br>// Manually invoke a Cloud Function.<br>gcloud functions call FUNCTION_NAME --data &#39;{&quot;key&quot;:&quot;value&quot;}&#39;<br><br>// Set environment variables for a Cloud Function<br>gcloud functions deploy FUNCTION_NAME --set-env-vars KEY1=VALUE1,KEY2=VALUE2<br><br>// Update an existing Cloud Function with new code or configuration.<br>gcloud functions deploy FUNCTION_NAME --runtime RUNTIME --trigger-event TRIGGER_EVENT --trigger-resource TRIGGER_RESOURCE --entry-point ENTRY_POINT<br><br>// View logs for a Cloud Function<br>gcloud functions logs read FUNCTION_NAME<br><br>//Deploy a Cloud Function using source code from your local machine<br>gcloud functions deploy FUNCTION_NAME --runtime RUNTIME --trigger-event TRIGGER_EVENT --trigger-resource TRIGGER_RESOURCE --source DIR_PATH --entry-point ENTRY_POINT<br><br>// Delete a deployed Cloud Function<br>gcloud functions delete FUNCTION_NAME<br><br>// List available runtimes for Cloud Functions<br>gcloud functions list-runtimes</pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>BigQuery</em></strong></blockquote><p>BigQuery is a fully-managed, serverless data warehouse that enables super-fast SQL queries using the processing power of Google’s infrastructure. It is designed for handling and analyzing large datasets, and it supports real-time analytics with standard SQL queries.</p><p>Below are few essential commands to work on BigQuery:</p><pre>// Create a new dataset in BigQuery<br>bq mk DATASET_NAME<br><br>// List all datasets in the current project<br>bq ls<br><br>// Load data into a BigQuery table from a CSV file<br>bq load DATASET_NAME.TABLE_NAME FILE_PATH SCHEMA<br><br>// Run a SQL query on a BigQuery table<br>bq query --use_legacy_sql=false &#39;SELECT * FROM `PROJECT_ID.DATASET_NAME.TABLE_NAME` LIMIT 10&#39;<br><br>// Export data from a BigQuery table to a Cloud Storage bucket<br>bq extract &#39;PROJECT_ID.DATASET_NAME.TABLE_NAME&#39; gs://BUCKET_NAME/FILE_NAME<br><br>// Stream data into a BigQuery table<br>bq query --use_legacy_sql=false --allow_large_results --destination_table &#39;PROJECT_ID.DATASET_NAME.TABLE_NAME&#39; --replace --noflatten_results --time_partitioning_type=DAY --time_partitioning_field TIMESTAMP_FIELD &lt; SQL_QUERY<br><br>// Delete a dataset and its contents<br>bq rm -r -f DATASET_NAME</pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Filestore</em></strong></blockquote><p>Filestore is a fully managed file storage service for applications that require a filesystem interface and shared data. It’s built on the NFS (Network File System) protocol and provides high-performance, scalable file storage.</p><p>Below are few essential commands to work on Cloud Filestore:</p><pre>// Create a Filestore instance<br>gcloud filestore instances create INSTANCE_NAME --project=PROJECT_ID --location=ZONE  --tier=TIER --file-share-name=&quot;SHARE_NAME&quot;,capacity=CAPACITY_SIZE<br><br>// Listing Filestore instances<br>gcloud filestore instances list --project=PROJECT_ID --location=ZONE<br><br>// Mount the Filestore instance<br>sudo mount -t nfs4 -o nfsvers=4.1 <br>gcloud filestore instances describe INSTANCE_NAME --project=PROJECT_ID --location=ZONE --format=&quot;value(networks.ipAddresses[0])&quot;):SHARE_NAME /path/to/mount<br><br>// Deleting Filestore instance<br>gcloud filestore instances delete INSTANCE_NAME --project=PROJECT_ID --location=ZONE</pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Source Repositories</em></strong></blockquote><p>Cloud Source Repositories is a fully-featured, scalable, and private Git repository hosting service that works seamlessly with other Google Cloud Platform (GCP) services. It provides a version control system for managing your source code.</p><p>Below are few essential commands to work on Cloud Source Repositories:</p><pre>//Create a new Git repository in Cloud Source Repositories<br>gcloud source repos create REPO_NAME<br><br>// Clone a Git repository from Cloud Source Repositories to your local machine<br>git clone https://source.developers.google.com/p/PROJECT_ID/r/REPO_NAME<br><br>// Push code changes to a repository<br>git add .<br>git commit -m &quot;Commit message&quot;<br>git push origin BRANCH_NAME<br><br>// Create a new branch in Cloud Source Git repository<br>git checkout -b NEW_BRANCH_NAME<br><br>// View details of a Git repository in Cloud Source Repositories.<br>gcloud source repos describe REPO_NAME<br><br>// List all Cloud Source Git repositories in a GCP project<br>gcloud source repos list<br><br>// Delete a Cloud Source Git repository<br>gcloud source repos delete REPO_NAME<br><br>// Add a remote URL for a Cloud Source Git repository<br>git remote add google https://source.developers.google.com/p/PROJECT_ID/r/REPO_NAME<br><br>//Create a new tag in a Cloud Source Git repository<br>git tag -a TAG_NAME -m &quot;Tag message&quot;<br>git push origin TAG_NAME<br><br>// View the IAM policy for a repository<br>gcloud source repos get-iam-policy REPO_NAME</pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Artifact Registry</em></strong></blockquote><p>Cloud Artifact Registry is a fully managed artifact management service that allows you to store, manage, and deploy artifacts in a scalable and secure way. It supports various package formats, including Docker containers and Maven, npm, and Python packages.</p><p>Below are few essential commands to work on Cloud Artifact Registry:</p><pre>// Create a new repository in Cloud Artifact Registry<br>gcloud artifacts repositories create REPO_NAME --location=LOCATION --repository-format=PACKAGE_FORMAT<br><br>// List all repositories<br>gcloud artifacts repositories list --location=LOCATION<br><br>// Delete a repository in Cloud Artifact Registry<br>gcloud artifacts repositories delete REPO_NAME --location=LOCATION<br><br>// Configure Docker to authenticate with Cloud Artifact Registry<br>gcloud auth configure-docker LOCATION-docker.pkg.dev<br><br>// Push a Docker image to Cloud Artifact Registry<br>docker tag SOURCE_IMAGE LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME:TAG<br>docker push LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME:TAG<br><br>// List Docker images in a Cloud Artifact Registry repository<br>gcloud artifacts docker images list LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME<br><br>// Delete a Docker image from Cloud Artifact Registry<br>gcloud artifacts docker images delete LOCATION-docker.pkg.dev/PROJECT_ID/REPO_NAME/IMAGE_NAME:TAG<br><br>// List Maven repositories in a Cloud Artifact Registry repository<br>gcloud artifacts repositories maven list --location=LOCATION<br><br>// Deploy a Maven artifact to Cloud Artifact Registry<br>mvn deploy -Dmaven.repo.local=.m2/repository -DaltDeploymentRepository=REPO_ID::default::gcloud --settings settings.xml</pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Build</em></strong></blockquote><p>Cloud Build is a fully-managed continuous integration and continuous delivery (CI/CD) service provided by Google Cloud Platform (GCP). It allows you to build, test, and deploy your applications in the cloud.</p><p>Below are few essential commands to work on Cloud Build:</p><pre>// Trigger a build using Cloud Build.<br>gcloud builds submit --config=cloudbuild.yaml<br><br>// View the logs for a specific build<br>gcloud builds log BUILD_ID<br><br>// List recent builds for a project<br>gcloud builds list<br><br>// View details for a specific build.<br>gcloud builds describe BUILD_ID<br><br>// Build a Docker image using Cloud Build.<br>gcloud builds submit --tag=gcr.io/PROJECT_ID/IMAGE_NAME .<br><br>// Run tests as part of the Cloud Build process<br>// This is an example of a cloudbuild.yaml file that runs npm install and npm test as part of the build.<br>steps:<br>- name: &#39;gcr.io/cloud-builders/npm&#39;<br>  args: [&#39;install&#39;]<br>- name: &#39;gcr.io/cloud-builders/npm&#39;<br>  args: [&#39;test&#39;]<br><br>// Deploy an application to Google App Engine using Cloud Build.<br>// This is an example of a cloudbuild.yaml file that deploys an application to App Engine.<br>steps:<br>- name: &#39;gcr.io/cloud-builders/gcloud&#39;<br>  args: [&#39;app&#39;, &#39;deploy&#39;]<br><br>// Trigger a build from a GitHub repository.<br>gcloud builds submit --config=cloudbuild.yaml --substitutions=_REPO_NAME=github-repo,_BRANCH_NAME=main</pre><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud SDK Libraries</em></strong></blockquote><p>These are the Libraries required for development with Google Cloud services. These are available for almost all the languages like Java, NodeJS, Python, Go, Ruby, C#, C++, PHP etc.</p><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Google Cloud Console</em></strong></blockquote><p>The Google Cloud Console is a web-based user interface for managing resources and services on Google Cloud Platform (GCP). It provides a graphical interface for performing various tasks, including creating and managing virtual machines, databases, storage, and more. While many tasks can be accomplished using the Cloud Console, some users<em> </em>prefer command-line tools for scripting and automation. The primary command-line tool for interacting with GCP services is the gcloud command-line tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccu9AomexNQ0k6DgDZxNrA.png" /><figcaption>Google Cloud Console (<a href="https://console.cloud.google.com/">https://console.cloud.google.com/</a>)</figcaption></figure><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Shell</em></strong></blockquote><p>This is a terminal which can be opened directly in your browser from Google Cloud Console where you can write any code or commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtDxyzjnags156Vo7Y1H_A.png" /><figcaption>Google Cloud Shell</figcaption></figure><p><a href="#f750"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Composer</em></strong></blockquote><p>Google Cloud Composer is a fully managed orchestration service built on Apache Airflow. It allows you to create, schedule, monitor, and manage workflows that span across Google Cloud services and external systems. You can define workflows using Python and the Apache Airflow framework, and Cloud Composer handles the deployment and scaling of the Airflow environment.</p><p>Below are few essential commands to work on Cloud Composer:</p><pre>// Create a new Cloud Composer environment<br>gcloud composer environments create ENVIRONMENT_NAME --location LOCATION --image-version AIRFLOW_VERSION<br><br>// List all Cloud Composer environments in the current project<br>gcloud composer environments list<br><br>// Update the configuration of an existing Cloud Composer environment<br>gcloud composer environments update ENVIRONMENT_NAME --location LOCATION --update-mask CONFIGURATION_FIELD=NEW_VALUE<br><br>// Delete a Cloud Composer environment<br>gcloud composer environments delete ENVIRONMENT_NAME --location LOCATION<br><br>// Define and deploy an Airflow DAG for your workflow<br>   - Create a Python file (`my_dag.py`) with your DAG definition.<br>   - Upload the DAG file to the Cloud Storage bucket associated with your Composer environment.<br>   - Trigger DAG runs through the Airflow UI or programmatically.<br><br>// List all DAGs currently deployed on your Cloud Composer environment<br>gcloud composer environments storage dags list --environment ENVIRONMENT_NAME --location LOCATION<br><br>// Upload DAG files to the Cloud Storage bucket associated with your Composer environment<br>gsutil cp LOCAL_DAG_FILE.py gs://YOUR_BUCKET_NAME/dags/<br><br>// Trigger a manual run of a specific DAG<br>gcloud composer environments run ENVIRONMENT_NAME --location LOCATION trigger_dag -- DAG_ID<br><br>// Open the Airflow web UI for your Composer environmen<br>gcloud composer environments run ENVIRONMENT_NAME --location LOCATION webserver<br><br>// Retrieve the URL for the Airflow web server<br>gcloud composer environments describe ENVIRONMENT_NAME --location LOCATION --format &#39;value(config.airflowUri)&#39;</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Scheduler</em></strong></blockquote><p>Google Cloud Scheduler is a fully managed cron job service that allows you to schedule recurring tasks. It enables you to automate the execution of various processes at specified intervals.</p><p>Below are few essential commands to work on Cloud Scheduler:</p><pre>// Create a job<br>gcloud scheduler jobs create http [JOB_NAME] --schedule=&quot;[SCHEDULE_EXPRESSION]&quot; --uri=&quot;[TARGET_URL]&quot; --http-method=&quot;[HTTP_METHOD]&quot;<br><br>// List jobs<br>gcloud scheduler jobs list<br><br>// Describe a job<br>gcloud scheduler jobs describe [JOB_NAME]<br><br>// Update a job<br>gcloud scheduler jobs update http [JOB_NAME] --schedule=&quot;[NEW_SCHEDULE_EXPRESSION]&quot; --uri=&quot;[NEW_TARGET_URL]&quot; --http-method=&quot;[NEW_HTTP_METHOD]&quot;<br><br>// Delete a job<br>gcloud scheduler jobs delete [JOB_NAME]</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Apigee API Management</em></strong></blockquote><p>Apigee API Management is a comprehensive platform for building, deploying, and managing APIs. It enables organizations to create, secure, and analyze APIs to facilitate communication between different software applications. Apigee provides tools for API development, analytics, security, and monitoring.</p><p>Below are few essential commands to work on Apigee API Management:</p><pre>// List API proxies in the active Cloud Platform project<br>gcloud apigee apis list<br><br>// Deploy an API proxy named hello-world to the test environment<br>gcloud apigee apis deploy --environment=test --api=hello-world<br><br>// Get the status of that deployment<br>gcloud apigee deployments describe --environment=test --api=hello-world<br><br>// Undeploy that API proxy<br>gcloud apigee apis undeploy --environment=test --api=hello-world</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Tasks</em></strong></blockquote><p>Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch, and delivery of a large number of distributed tasks. It is particularly useful for creating and managing lightweight, background tasks that are part of a larger application.</p><p>Below are few essential commands to work on Cloud Tasks:</p><pre>// Create a new Cloud Tasks queue<br>gcloud tasks queues create QUEUE_NAME<br><br>// List all Cloud Tasks queues in the current project<br>gcloud tasks queues list<br><br>// Retrieve details about a specific Cloud Tasks queue<br>gcloud tasks queues describe QUEUE_NAME<br><br>//Create a new task for Cloud Tasks<br>gcloud tasks create-appengine-task QUEUE_NAME --location LOCATION --appengine-http-request=APPENGINE_HTTP_REQUEST<br><br>// List tasks in a Cloud Tasks queue<br>// gcloud tasks queues list-tasks QUEUE_NAME --location LOCATION<br><br>// Retrieve details about a specific task in a Cloud Tasks queue<br>gcloud tasks queues describe-task QUEUE_NAME TASK_NAME --location LOCATION<br><br>// Delete a specific task from a Cloud Tasks queue.<br>gcloud tasks queues delete-task QUEUE_NAME TASK_NAME --location LOCATION<br><br>// Create a new HTTP target task for Cloud Tasks<br>gcloud tasks create-http-task QUEUE_NAME --location LOCATION --url URL<br><br>// Run a task locally for testing purposes<br>gcloud tasks local run<br>  <br>//  Delete a Cloud Tasks queue<br>gcloud tasks queues delete QUEUE_NAME --location LOCATION</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Load Balancing</em></strong></blockquote><p>Google Cloud Load Balancing enables you to distribute incoming network traffic across multiple instances to ensure that no single instance is overloaded. Google Cloud offers several types of load balancers, including HTTP(S), TCP/SSL, and UDP load balancers.</p><p>Below are few essential commands to work on Cloud Load Balancers:</p><pre>// Create a TCP Load Balancer<br>gcloud compute forwarding-rules create &lt;FORWARDING_RULE_NAME&gt; --global --ports=&lt;PORT&gt; --target-tcp-proxy=&lt;TCP_PROXY_NAME&gt;<br><br>// Create an HTTP Load Balancer<br>gcloud compute forwarding-rules create &lt;FORWARDING_RULE_NAME&gt; --global --ports=80 --target-http-proxy=&lt;HTTP_PROXY_NAME&gt;<br><br>// Create a Backend Service<br>gcloud compute backend-services create &lt;BACKEND_SERVICE_NAME&gt; --protocol=&lt;PROTOCOL&gt; --port=&lt;PORT&gt; --backend=&lt;INSTANCE_GROUP_NAME&gt;<br><br>// Create an Instance Group<br>gcloud compute instance-groups managed create &lt;INSTANCE_GROUP_NAME&gt; --base-instance-name=&lt;INSTANCE_NAME&gt; --size=&lt;GROUP_SIZE&gt; --template=&lt;INSTANCE_TEMPLATE_NAME&gt;<br><br>// Create a Health Check<br>gcloud compute health-checks create &lt;HEALTH_CHECK_NAME&gt; --protocol=&lt;PROTOCOL&gt; --port=&lt;PORT&gt; --initial-delay=&lt;SECONDS&gt;<br><br>// Create a URL Map (for HTTP/HTTPS Load Balancers)<br>gcloud compute url-maps create &lt;URL_MAP_NAME&gt; --default-route-action=&lt;ACTION_NAME&gt;<br><br>// Attach a URL Map to the Target HTTP Proxy<br>gcloud compute target-http-proxies update &lt;HTTP_PROXY_NAME&gt; --url-map=&lt;URL_MAP_NAME&gt;<br><br>//Configure SSL for HTTPS Load Balancer<br>gcloud compute ssl-certificates create &lt;SSL_CERT_NAME&gt; --certificate=&lt;CERTIFICATE_FILE&gt; --private-key=&lt;PRIVATE_KEY_FILE&gt;</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Firewall</em></strong></blockquote><p>Cloud Firewall is a service that controls the incoming and outgoing traffic to your instances. It allows you to define rules specifying which connections are allowed or denied.</p><p>Below are few essential commands to work on Cloud Firewall:</p><pre>// Create a Firewall Rule to Allow Traffic<br>gcloud compute firewall-rules create &lt;RULE_NAME&gt; --allow=&lt;PROTOCOL:PORT&gt; --source-ranges=&lt;SOURCE_IP_RANGE&gt;<br><br>// Create a Firewall Rule to Deny Traffic<br>gcloud compute firewall-rules create &lt;RULE_NAME&gt; --deny=&lt;PROTOCOL:PORT&gt; --source-ranges=&lt;SOURCE_IP_RANGE&gt;<br><br>// List Firewall Rules<br>gcloud compute firewall-rules list<br><br>// Show Details of a Specific Firewall Rule<br>gcloud compute firewall-rules describe &lt;RULE_NAME&gt;<br><br>// Update a Firewall Rule (e.g., change allowed ports)<br>gcloud compute firewall-rules update &lt;RULE_NAME&gt; --allow=&lt;NEW_PROTOCOL:PORT&gt;<br><br>// Delete a Firewall Rule<br>gcloud compute firewall-rules delete &lt;RULE_NAME&gt;<br><br>// Add Tags to VM Instances (for targeted firewall rules)<br>gcloud compute instances add-tags &lt;INSTANCE_NAME&gt; --tags=&lt;TAG1,TAG2,...&gt;<br><br>// Remove Tags from VM Instances<br>gcloud compute instances remove-tags &lt;INSTANCE_NAME&gt; --tags=&lt;TAG1,TAG2,...&gt;</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Armor</em></strong></blockquote><p>Cloud Armor is a DDoS (Distributed Denial of Service) and application defense service provided by Google Cloud Platform. It helps protect your applications and services from various web-based threats.</p><p>Below are few essential commands to work on Cloud Armor:</p><pre>// Create a Security Policy<br>gcloud compute security-policies create &lt;POLICY_NAME&gt;<br><br>// Create a Rule to Allow or Deny Traffic<br>gcloud compute security-policies rules create &lt;RULE_NAME&gt; --security-policy=&lt;POLICY_NAME&gt; --action=&lt;ACTION&gt; --description=&lt;DESCRIPTION&gt; --priority=&lt;PRIORITY&gt; --match=&lt;MATCH_EXPRESSION&gt;<br><br>// ist Security Policies<br>gcloud compute security-policies list<br><br>// Show Details of a Specific Security Policy<br>gcloud compute security-policies describe &lt;POLICY_NAME&gt;<br><br>// Update a Security Policy Rule<br>gcloud compute security-policies rules update &lt;RULE_NAME&gt; --security-policy=&lt;POLICY_NAME&gt; --action=&lt;NEW_ACTION&gt;<br><br>// Delete a Security Policy<br>gcloud compute security-policies delete &lt;POLICY_NAME&gt;<br><br>// List Policy Rules<br>gcloud compute security-policies rules list --security-policy=&lt;POLICY_NAME&gt;<br>   <br>// Describe a Specific Policy Rule<br>gcloud compute security-policies rules describe &lt;RULE_NAME&gt; --security-policy=&lt;POLICY_NAME&gt;</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud CDN</em></strong></blockquote><p>Cloud CDN (Content Delivery Network) is a service that enhances the delivery of web content to users by caching static assets closer to them, reducing latency and improving overall performance.</p><p>Below are few essential commands to work on Cloud CDN:</p><pre>// Enable CDN for a Backend Service<br>gcloud compute backend-services update [BACKEND_SERVICE_NAME] --enable-cdn<br><br>// Create a Cache Invalidation<br>gcloud compute url-maps invalidate-cdn-cache [URL_MAP_NAME] --path [URL_PATH]<br> <br>// Configure a Cache Key Policy<br>gcloud compute cache-policies create [CACHE_POLICY_NAME] --key [CACHE_KEY] --include-query-string<br><br>// List CDN-enabled Backend Services<br>gcloud compute backend-services list --filter=&quot;cdnPolicy.enabled:true&quot;<br><br>// Purge All Cached Content for a Backend Service<br>gcloud compute backend-services update [BACKEND_SERVICE_NAME] --purge-cdn-cache</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud DNS</em></strong></blockquote><p>Cloud DNS is a scalable, reliable, and managed Domain Name System (DNS) service provided by Google Cloud. It allows you to publish your domain names and associate them with your Google Cloud resources.</p><p>Below are few essential commands to work on Cloud DNS:</p><pre>// Create a Managed Zone<br>gcloud dns managed-zones create [ZONE_NAME] --dns-name=[DNS_NAME]<br><br>// List Managed Zones<br>gcloud dns managed-zones list<br><br>// Create DNS Record Sets<br>gcloud dns record-sets transaction start --zone=[ZONE_NAME]<br>gcloud dns record-sets transaction add --name=&quot;[RECORD_NAME]&quot; --type=&quot;[RECORD_TYPE]&quot; --ttl=&quot;[TTL]&quot; &quot;[RECORD_DATA]&quot;<br>gcloud dns record-sets transaction execute --zone=[ZONE_NAME]<br><br>// List DNS Records<br>gcloud dns record-sets list --zone=[ZONE_NAME]<br><br>// Delete a Managed Zone<br>gcloud dns managed-zones delete [ZONE_NAME]<br><br>// Update DNS Record Set<br>gcloud dns record-sets transaction start --zone=[ZONE_NAME]<br>gcloud dns record-sets transaction remove --name=&quot;[RECORD_NAME]&quot; --type=&quot;[RECORD_TYPE]&quot; &quot;[OLD_RECORD_DATA]&quot;<br>gcloud dns record-sets transaction add --name=&quot;[RECORD_NAME]&quot; --type=&quot;[RECORD_TYPE]&quot; --ttl=&quot;[TTL]&quot; &quot;[NEW_RECORD_DATA]&quot;<br>gcloud dns record-sets transaction execute --zone=[ZONE_NAME]</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud NAT</em></strong></blockquote><p>Cloud NAT (Network Address Translation) is a service that allows your private instances to make outbound connections to the internet while keeping the source IP addresses hidden.</p><p>Below are few essential commands to work on Cloud NAT:</p><pre>// Create a Cloud NAT Configuration<br>gcloud compute routers nats create [NAT_NAME] --router=[ROUTER_NAME] --nat-all-subnet-ip-ranges --auto-allocate-nat-external-ips<br><br>// List Cloud NAT Configurations<br>gcloud compute routers nats list --router=[ROUTER_NAME]<br><br>// Describe a Cloud NAT Configuration<br>gcloud compute routers nats describe [NAT_NAME] --router=[ROUTER_NAME]<br><br>// Update Cloud NAT Configuration<br>gcloud compute routers nats update [NAT_NAME] --router=[ROUTER_NAME] --enable-logging<br><br>// Delete a Cloud NAT Configuration<br>gcloud compute routers nats delete [NAT_NAME] --router=[ROUTER_NAME]<br></pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Logging</em></strong></blockquote><p>Cloud Logging is a service that allows you to store, search, analyze, and monitor your logs on Google Cloud Platform. It provides a centralized platform for managing logs from various services and applications.</p><p>Below are few essential commands to work on Cloud Logging:</p><pre>// List Log Entries<br>gcloud logging read &quot;resource.type=global&quot;<br><br>// Filter Log Entries<br>gcloud logging read &quot;resource.type=global&quot; --filter=&quot;[FILTER_EXPRESSION]&quot;<br><br>// View Logs for a Specific Resource<br>gcloud logging read &quot;resource.type=[RESOURCE_TYPE] AND resource.labels.[KEY]=[VALUE]&quot;<br><br>// Create a Logs Export Sink<br>gcloud logging sinks create [SINK_NAME] storage.googleapis.com/[BUCKET_NAME] --log-filter=&quot;[FILTER_EXPRESSION]&quot;<br><br>// List Logs Export Sinks<br>gcloud logging sinks list<br><br>// View Sink Details<br>gcloud logging sinks describe [SINK_NAME]<br><br>// Delete a Logs Export Sink<br>gcloud logging sinks delete [SINK_NAME]<br><br>// You can also view logs through the Google Cloud Console</pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Monitoring</em></strong></blockquote><p>Cloud Monitoring is a service that allows you to collect, analyze, and act on telemetry data from your Google Cloud environment. It provides insights into the performance, uptime, and overall health of your applications and infrastructure.</p><p>Below are few essential commands to work on Cloud Monitoring:</p><pre>// Create a Uptime Check<br>gcloud monitoring uptime-checks create [UPTIME_CHECK_NAME] --display-name=&quot;[DISPLAY_NAME]&quot; --http-check=&quot;[URL]&quot; --interval=&quot;[INTERVAL]&quot; --timeout=&quot;[TIMEOUT]&quot;<br><br>// List Uptime Checks<br>gcloud monitoring uptime-checks list<br><br>// Create a Metric<br>gcloud monitoring metrics create [METRIC_TYPE] --description=&quot;[DESCRIPTION]&quot; --display-name=&quot;[DISPLAY_NAME]&quot; --labels=&quot;[LABELS]&quot;<br><br>// List Metrics<br>gcloud monitoring metrics list<br><br>// Create a Dashboard<br>gcloud monitoring dashboards create --config-from-file=[DASHBOARD_CONFIG_FILE]<br><br>// List Dashboards<br>gcloud monitoring dashboards list<br><br>// View Metrics Explorer<br>//You can also use the Metrics Explorer in the Google Cloud Console to explore and visualize metrics.<br><br>// Create an Alert Policy<br>gcloud monitoring alert-policies create [ALERT_POLICY_NAME] --conditions=&quot;[CONDITIONS]&quot; --notification-channels=&quot;[NOTIFICATION_CHANNELS]&quot;<br><br>// List Alert Policies<br>gcloud monitoring alert-policies list<br></pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Profiler</em></strong></blockquote><p>Cloud Profiler is a service that helps you analyze the performance of your applications by collecting and analyzing performance data. Profiler allows you to identify and fix performance bottlenecks in your code.</p><p>Below are few essential commands to work on Cloud Profiler:</p><pre>// Enable Profiler API<br>gcloud services enable cloudprofiler.googleapis.com<br><br>// Start Profiling for an Application<br>gcloud beta profiler profiles create --project=[PROJECT_ID] --service=[SERVICE_ID] --version=[VERSION_ID]<br><br>// List Profiling Profileso<br>gcloud beta profiler profiles list --project=[PROJECT_ID] --service=[SERVICE_ID] --version=[VERSION_ID]<br><br>// Describe a Profiling Profile<br>gcloud beta profiler profiles describe [PROFILE_ID] --project=[PROJECT_ID] --service=[SERVICE_ID] --version=[VERSION_ID]<br><br>// Download a Profiling Profile<br>gcloud beta profiler profiles get [PROFILE_ID] --project=[PROJECT_ID] --service=[SERVICE_ID] --version=[VERSION_ID] --output-file=[OUTPUT_FILE]<br><br>// Delete a Profiling Profile<br>gcloud beta profiler profiles delete [PROFILE_ID] --project=[PROJECT_ID] --service=[SERVICE_ID] --version=[VERSION_ID]<br></pre><p><a href="#4573"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Error Reporting</em></strong></blockquote><p>Cloud Error Reporting is a service that helps you track, analyze, and respond to errors in your applications. It provides insights into the errors occurring in your applications, allowing you to identify and fix issues quickly.</p><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Google Secret Manager</em></strong></blockquote><p>Google Secret Manager is a service that allows you to securely store and manage sensitive information such as API keys, passwords, and certificates. It provides a central and secure way to access and distribute secrets to your applications.</p><p>Below are few essential commands to work on Google Secret Manager:</p><pre>// Enable Secret Manager API<br>gcloud services enable secretmanager.googleapis.com<br><br>// Create a Secret<br>gcloud secrets create [SECRET_NAME] --replication-policy=[REPLICATION_POLICY]<br><br>// Add a Secret Version<br>gcloud secrets versions add [SECRET_NAME] --data &quot;[SECRET_DATA]&quot;<br><br>//List Secrets<br>gcloud secrets list<br><br>// Access Secret Version<br>gcloud secrets versions access [VERSION_NAME] --secret=[SECRET_NAME]<br><br>// Delete a Secret<br>gcloud secrets delete [SECRET_NAME]<br><br>// List Secret Versions<br>gcloud secrets versions list --secret=[SECRET_NAME]<br><br>// Grant Access to a Secret<br>gcloud secrets add-iam-policy-binding [SECRET_NAME] --member=&quot;[MEMBER]&quot; --role=&quot;[ROLE]&quot;<br></pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Cloud Identity and Access Management</em></strong></blockquote><p>Cloud Identity and Access Management (IAM) is a service that allows you to manage access control for Google Cloud resources. It enables you to grant specific permissions to users, groups, and service accounts, allowing you to control who can access and perform actions on your resources. Below are few useful commands to work with Google Cloud IAM:</p><pre>// List IAM Policies for a Resource<br>gcloud projects get-iam-policy [PROJECT_ID]<br><br>// Grant Role to a User or Service Account<br>gcloud projects add-iam-policy-binding [PROJECT_ID] --member=&quot;[MEMBER]&quot; --role=&quot;[ROLE]&quot;<br><br>// Revoke Role from a User or Service Account<br>gcloud projects remove-iam-policy-binding [PROJECT_ID] --member=&quot;[MEMBER]&quot; --role=&quot;[ROLE]&quot;<br><br>// Set IAM Policy for a Resource<br>gcloud projects set-iam-policy [PROJECT_ID] [POLICY_FILE]<br><br>// Check IAM Permissions<br>gcloud iam service-accounts check-permissions [SERVICE_ACCOUNT_EMAIL] --permissions=&quot;[PERMISSIONS_LIST]&quot;<br><br>// Create a Service Account<br>gcloud iam service-accounts create [ACCOUNT_ID] --display-name=&quot;[DISPLAY_NAME]&quot;<br><br>// Add Key to a Service Account<br>gcloud iam service-accounts keys create [KEY_FILE] --iam-account=[SERVICE_ACCOUNT_EMAIL]<br><br>// List Members with a Specific Role<br>gcloud projects get-iam-policy [PROJECT_ID] --flatten=&quot;bindings[].members&quot; --format=&quot;table(bindings.role,bindings.members)&quot;</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Service Accounts</em></strong></blockquote><p>Service accounts are used to authenticate and authorize applications and virtual machines (VMs) on Google Cloud Platform (GCP). They provide a way to interact with GCP services securely. Here are some essential commands related to Service accounts using the `gcloud` command-line tool:</p><pre>// Create a Service Account<br>gcloud iam service-accounts create [ACCOUNT_NAME] --display-name &quot;[DISPLAY_NAME]&quot;<br><br>// List Service Accounts<br>gcloud iam service-accounts list<br><br>// Create a Service Account Key<br>gcloud iam service-accounts keys create [KEY_FILE_PATH] --iam-account [ACCOUNT_NAME]@[PROJECT_ID].iam.gserviceaccount.com<br><br>// Grant Roles to a Service Account<br>gcloud projects add-iam-policy-binding [PROJECT_ID] --member=&quot;serviceAccount:[ACCOUNT_NAME]@[PROJECT_ID].iam.gserviceaccount.com&quot; --role=&quot;[ROLE]&quot;<br><br>// View Service Account Permissions<br>gcloud iam service-accounts get-iam-policy [ACCOUNT_NAME]@[PROJECT_ID].iam.gserviceaccount.com<br><br>// Delete a Service Account Key<br>gcloud iam service-accounts keys delete [KEY_FILE_PATH]<br><br>// Delete a Service Account<br>gcloud iam service-accounts delete [ACCOUNT_NAME]@[PROJECT_ID].iam.gserviceaccount.com</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Auto ML</em></strong></blockquote><p>AutoML is a suite of machine learning products that enables users to build custom machine learning models with minimal expertise in the field. It automates the process of training and deploying models for tasks such as image classification, text sentiment analysis, and more.</p><p>Below are few useful commands to work with AutoML:</p><pre>// To create a dataset<br>gcloud ai-platform datasets create DATASET_NAME --location=LOCATION<br><br>// To import data into a dataset<br>gcloud ai-platform datasets import DATA_ITEM_SET --dataset=DATASET_NAME --location=LOCATION<br><br>// To create a model<br>gcloud ai-platform models create MODEL_NAME --location=LOCATION<br><br>// To train a model<br>gcloud ai-platform jobs submit training JOB_NAME --module-name=MODULE_NAME --package-path=PACKAGE_PATH --staging-bucket=STAGING_BUCKET --region=REGION<br><br>// To deploy a model<br>gcloud ai-platform versions create VERSION_NAME --model=MODEL_NAME --origin=MODEL_URI --runtime-version=RUNTIME_VERSION --python-version=PYTHON_VERSION --region=REGION<br><br>// To make a prediction<br>gcloud ai-platform predict --model=MODEL_NAME --json-instances=INPUT_JSON_FILE</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Translation AI</em></strong></blockquote><p>Translation AI refers to the artificial intelligence-powered translation services provided by Google Cloud. It uses machine learning models to understand and translate text between different languages, offering improved accuracy and contextual understanding compared to traditional rule-based translation systems.</p><p>Below are few useful commands to work with Translation AI:</p><pre>// Translate Text with Auto-detection<br>gcloud translate text &quot;Hello, world!&quot;<br><br>// Translate Text to a Specific Language<br>gcloud translate text &quot;Hello, world!&quot; --target-language=es<br><br>// Translate a File<br>gcloud translate documents batch-translate \<br>   --source-language=en --target-language=fr \<br>   --input-path=input.txt --output-path=output.txt<br><br>// Translate Text Using Glossary<br>gcloud translate text &quot;Hello, world!&quot; --target-language=es --glossary-file=glossary.csv</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Natural Language AI</em></strong></blockquote><p>Natural Language API is a service that allows developers to analyze and extract information from text using machine learning. It provides capabilities such as sentiment analysis, entity recognition, syntax analysis, and more.</p><p>Below are few useful commands to work with Natural Language AI:</p><pre>// Analyze Sentiment of a Text File<br>gcloud ml language analyze-sentiment --content-file=text.txt<br><br>// Analyze Entities in a Text File<br>gcloud ml language analyze-entities --content-file=text.txt<br><br>// Analyze Syntax of a Text File<br>gcloud ml language analyze-syntax --content-file=text.txt<br><br>// Classify Content Categories<br>gcloud ml language classify-text --content=&quot;John is a good man.&quot;</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Video AI</em></strong></blockquote><p>Video AI is a set of tools and services provided by Google Cloud Platform for analyzing and extracting insights from videos. It includes features like video annotation, shot detection, object tracking, and more.</p><p>Below are few useful commands to work with Video AI:</p><pre><br>// Upload a Video to Google Cloud Storage:**<br>gsutil cp [LOCAL_FILE_PATH] gs://[YOUR_BUCKET_NAME]/<br><br>// Analyze a Video Using Video Intelligence API:**<br>gcloud video intelligence detect-labels gs://[YOUR_BUCKET_NAME]/[VIDEO_FILE_NAME]<br><br>// Transcribe Speech in a Video:**<br>gcloud video intelligence recognize-speech gs://[YOUR_BUCKET_NAME]/[VIDEO_FILE_NAME]<br><br>// Detect Shot Changes in a Video:**<br>gcloud video intelligence detect-shots gs://[YOUR_BUCKET_NAME]/[VIDEO_FILE_NAME]<br><br>// Analyze Explicit Content in a Video:**<br>gcloud video intelligence detect-explicit-content gs://[YOUR_BUCKET_NAME]/[VIDEO_FILE_NAME]<br><br>// Analyze Text in a Video:**<br>gcloud video intelligence text-detection gs://[YOUR_BUCKET_NAME]/[VIDEO_FILE_NAME]<br><br></pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Vision AI</em></strong></blockquote><p>Vision AI is a cloud-based service provided by Google Cloud Platform that enables developers to integrate machine learning capabilities for image analysis into their applications. It allows tasks such as image classification, object detection, and facial recognition.</p><p>Below are few useful commands to work with Vision AI:</p><pre>// Enable Video AI API<br>gcloud services enable videointelligence.googleapis.com<br><br>// Analyze Video<br>gcloud ai video detect-labels gs://your-bucket/test-video.mp4<br><br>// Object Tracking<br>gcloud ai video detect-object-tracking gs://your-bucket/test-video.mp4<br><br>// Shot Change Detection<br>gcloud ai video detect-shot-change gs://your-bucket/test-video.mp4<br><br>// Text Detection<br>gcloud ai video detect-text gs://your-bucket/test-video.mp4</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Document AI</em></strong></blockquote><p>Document AI is a set of tools and services designed to analyze and extract valuable information from documents. It includes features such as document text extraction, entity recognition, and document classification.</p><p>Below are few useful commands to work with Document AI:</p><pre>// Enable Document AI API<br>gcloud services enable documentai.googleapis.com<br><br>// Process a Document<br>gcloud beta documentai process-documents --input-gcs-source=gs://your-bucket/your-document.pdf \<br>     --output-gcs-destination=gs://your-output-bucket/<br><br>// Analyze Document Text<br>gcloud beta documentai documents analyze-text --gcs-source=gs://your-bucket/your-document.pdf<br><br>// Entity Extraction<br>gcloud beta documentai documents analyze-entities --gcs-source=gs://your-bucket/your-document.pdf<br><br>// Document Classification<br>gcloud beta documentai documents classify-text --gcs-source=gs://your-bucket/your-document.pdf</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Speech-to-Text</em></strong></blockquote><p>Speech-to-Text is a service that converts spoken language into written text. It’s part of the Google Cloud Platform and can be used for various applications, including transcription services, voice command recognition, and more.</p><p>Below are few useful commands to work with Speech-to-Text:</p><pre>// Enable Speech-to-Text API<br>gcloud services enable speech.googleapis.com<br><br>// Transcribe Audio File<br>gcloud ai speech recognize-long-running --async --language-code=en-US --sample-rate=44100 --encoding=LINEAR16 --uri=gs://your-bucket/your-audio-file.wav<br><br>// Check Transcription Status<br>gcloud ai speech operations wait OPERATION_NAME<br><br>//Transcribe Streaming Audio (Real-time)<br>gcloud ai speech recognize-streaming --language-code=en-US --sample-rate=44100 --encoding=LINEAR16 --audio-file=your-local-audio-file.wav</pre><p><a href="#be58"><em>Back to Top</em></a></p><blockquote><strong><em>Text-to-Speech</em></strong></blockquote><p>Text-to-Speech is a service that converts text into spoken words. It’s a part of Google Cloud’s AI and machine learning offerings, allowing developers to integrate natural-sounding speech synthesis into their applications.</p><p>Below are few useful commands to work with Text-to-Speech:</p><pre>// Enable the Text-to-Speech API<br>gcloud services enable texttospeech.googleapis.com<br><br>// Create a service account with required permissions to access Text-to-Speech API<br>gcloud iam service-accounts create SERVICE_ACCOUNT_NAME --display-name &quot;My Service Account for Text-to-Speech permission&quot;<br><br>// Granting Permissions to the Service Account<br>gcloud projects add-iam-policy-binding PROJECT_ID --member=&quot;serviceAccount:SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com&quot; --role=&quot;roles/texttospeech.admin&quot;<br><br>// Create a key file for your service account and download it<br>gcloud iam service-accounts keys create SA_KEY_FILE_PATH.json --iam-account=YOUR_SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com<br><br>// Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to your service account key file<br>export GOOGLE_APPLICATION_CREDENTIALS=&quot;KEY_FILE_PATH.json&quot;<br><br>// Use the gcloud text-to-speech command to synthesize speech from text<br>gcloud text-to-speech voices list<br>gcloud text-to-speech voices describe VOICE_NAME<br>gcloud text-to-speech voices synthesize &quot;Hello world, this is a sample text.&quot; --voice=VOICE_NAME --output-file=my-output.mp3<br><br>// List the available voices for speech synthesis<br>gcloud text-to-speech voices list</pre><p><a href="#306e"><em>Back to Top</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=687dcd909cf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>