@sebastienrousseau/dotfiles 0.2.462 β 0.2.463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/Makefile +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +1 -1
- package/dist/filesizes.txt +114 -92
- package/dist/lib/aliases/archives/README.md +84 -0
- package/dist/lib/aliases/archives/archives.aliases.sh +63 -19
- package/dist/lib/aliases/cd/README.md +46 -0
- package/dist/lib/aliases/cd/cd.aliases.sh +42 -0
- package/dist/lib/aliases/chmod/README.md +70 -0
- package/dist/lib/aliases/chmod/chmod.aliases.sh +73 -0
- package/dist/lib/aliases/clear/README.md +38 -0
- package/dist/lib/aliases/clear/clear.aliases.sh +36 -19
- package/dist/lib/aliases/configuration/README.md +46 -0
- package/dist/lib/aliases/configuration/configuration.aliases.sh +39 -8
- package/dist/lib/aliases/default/README.md +62 -0
- package/dist/lib/aliases/default/default.aliases.sh +59 -35
- package/dist/lib/aliases/dig/README.md +50 -0
- package/dist/lib/aliases/dig/dig.aliases.sh +37 -10
- package/dist/lib/aliases/du/README.md +35 -0
- package/dist/lib/aliases/du/du.aliases.sh +37 -0
- package/dist/lib/aliases/editor/README.md +47 -0
- package/dist/lib/aliases/editor/editor.aliases.sh +36 -3
- package/dist/lib/aliases/find/README.md +29 -0
- package/dist/lib/aliases/find/find.aliases.sh +29 -19
- package/dist/lib/aliases/gcloud/README.md +148 -0
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +142 -120
- package/dist/lib/aliases/git/git.aliases.sh +128 -522
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +116 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +288 -1028
- package/dist/lib/aliases/interactive/interactive.aliases.sh +2 -2
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +9 -47
- package/dist/lib/aliases/list/list.aliases.sh +30 -28
- package/dist/lib/aliases/make/make.aliases.sh +2 -2
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
- package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
- package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
- package/dist/lib/aliases/rsync/rsync.aliases.sh +6 -4
- package/dist/lib/aliases/rust/rust.aliases.sh +4 -4
- package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
- package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
- package/dist/lib/aliases/update/update.aliases.sh +7 -7
- package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
- package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
- package/dist/lib/aliases.sh +6 -3
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +2 -2
- package/dist/lib/configurations/default/constants.sh +3 -3
- package/dist/lib/configurations/default/editor.sh +2 -2
- package/dist/lib/configurations/default/prompt.sh +2 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +2 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/tmux/vi +5 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +4 -3
- package/dist/lib/configurations.sh +6 -3
- package/dist/lib/functions/cdls.sh +2 -2
- package/dist/lib/functions/changediskpwd.tmp +3 -3
- package/dist/lib/functions/code.tmp +3 -3
- package/dist/lib/functions/countdown.tmp +2 -2
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -3
- package/dist/lib/functions/encode64.sh +2 -2
- package/dist/lib/functions/environment.sh +2 -2
- package/dist/lib/functions/extract.sh +2 -2
- package/dist/lib/functions/genpwd.sh +2 -2
- package/dist/lib/functions/goto.sh +2 -2
- package/dist/lib/functions/hidehiddenfiles.sh +2 -2
- package/dist/lib/functions/history-all.tmp +2 -2
- package/dist/lib/functions/hostinfo.sh +2 -2
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +2 -2
- package/dist/lib/functions/keygen.sh +2 -2
- package/dist/lib/functions/last.sh +2 -2
- package/dist/lib/functions/logout.sh +2 -2
- package/dist/lib/functions/lowercase.sh +2 -2
- package/dist/lib/functions/macos.sh +2 -2
- package/dist/lib/functions/matrix.sh +5 -5
- package/dist/lib/functions/mcd.tmp +2 -2
- package/dist/lib/functions/mount_read_only.sh +2 -2
- package/dist/lib/functions/myproc.sh +2 -2
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/print.tmp +2 -2
- package/dist/lib/functions/ql.sh +2 -2
- package/dist/lib/functions/rd.sh +2 -2
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +2 -2
- package/dist/lib/functions/rm.tmp +2 -2
- package/dist/lib/functions/rps.tmp +2 -2
- package/dist/lib/functions/showhiddenfiles.sh +2 -2
- package/dist/lib/functions/size.sh +2 -2
- package/dist/lib/functions/stopwatch.sh +2 -2
- package/dist/lib/functions/trash.tmp +2 -2
- package/dist/lib/functions/tree.tmp +2 -2
- package/dist/lib/functions/uppercase.sh +2 -2
- package/dist/lib/functions/uuidgen.tmp +1 -1
- package/dist/lib/functions/view-source.sh +2 -2
- package/dist/lib/functions/vscode.sh +2 -2
- package/dist/lib/functions/whoisport.sh +2 -2
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +6 -3
- package/dist/lib/history.sh +24 -21
- package/dist/lib/paths/ant/ant.paths.sh +4 -4
- package/dist/lib/paths/default/default.paths.sh +2 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
- package/dist/lib/paths/java/java.paths.sh +5 -4
- package/dist/lib/paths/maven/maven.paths.sh +6 -5
- package/dist/lib/paths/node/node.paths.sh +2 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/lib/paths/python/python.paths.sh +21 -16
- package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +4 -4
- package/dist/lib/paths.sh +6 -3
- package/dist/scripts/backup.sh +2 -2
- package/dist/scripts/banner.sh +2 -2
- package/dist/scripts/build.sh +2 -2
- package/dist/scripts/clean.sh +2 -2
- package/dist/scripts/compile.sh +2 -2
- package/dist/scripts/copy.sh +2 -2
- package/dist/scripts/dotfiles.sh +2 -2
- package/dist/scripts/download.sh +2 -2
- package/dist/scripts/help.sh +2 -2
- package/dist/scripts/ssh.sh +2 -2
- package/dist/scripts/unpack.sh +2 -2
- package/package.json +7 -7
- package/dist/lib/aliases/diskusage/diskusage.aliases.sh +0 -16
- package/dist/lib/aliases/gnu/gnucoreutls-aliases.sh +0 -111
- package/dist/lib/aliases/navigation/navigation.aliases.sh +0 -23
- package/dist/lib/aliases/permission/permission.aliases.sh +0 -28
|
@@ -1,124 +1,146 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
2
|
+
# Author: Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
+
# Description: Sets Google Cloud Aliases
|
|
5
5
|
# License: MIT
|
|
6
|
+
# Script: gcloud.aliases.sh
|
|
7
|
+
# Version: 0.2.463
|
|
8
|
+
# Website: https://dotfiles.io
|
|
9
|
+
|
|
10
|
+
if command -v 'gcloud' >/dev/null; then
|
|
11
|
+
|
|
12
|
+
# Authenticate and authorize
|
|
13
|
+
alias gcaasa='gcloud auth activate-service-account' # gcaasa: Like gcloud auth login but with service account credentials.
|
|
14
|
+
alias gcacd='gcloud auth configure-docker' # gcacd: Configure Docker to use gcloud as a credential helper.
|
|
15
|
+
alias gcal='gcloud auth list' # gcal: List the accounts you are logged in with.
|
|
16
|
+
alias gcapat='gcloud auth print-access-token' # gcapat: Print the access token for the current active account.
|
|
17
|
+
alias gcar='gcloud auth revoke' # gcar: Revoke credentials for the current active account.
|
|
18
|
+
|
|
19
|
+
# App Engine
|
|
20
|
+
alias gcapb='gcloud app browse' # gcapb: Open the App Engine app in your default browser.
|
|
21
|
+
alias gcapc='gcloud app create' # gcapc: Create a new App Engine app.
|
|
22
|
+
alias gcapd='gcloud app deploy' # gcapd: Deploy an App Engine app.
|
|
23
|
+
alias gcapl='gcloud app logs read' # gcapl: Read the logs for an App Engine app.
|
|
24
|
+
alias gcapv='gcloud app versions list' # gcapv: List the versions of an App Engine app.
|
|
25
|
+
|
|
26
|
+
# Cloud SDK configuration and management
|
|
27
|
+
alias gccca='gcloud config configurations activate' # gccca: Switch to an existing named configuration.
|
|
28
|
+
alias gcccc='gcloud config configurations create' # gcccc: Create a new named configuration.
|
|
29
|
+
alias gcccl='gcloud config configurations list' # gcccl: Display a list of all available configurations.
|
|
30
|
+
alias gccl='gcloud config list' # gccl:Display all the properties for the current configuration.
|
|
31
|
+
alias gccgv='gcloud config get-value' # gccgv: Fetch value of a Cloud SDK property.
|
|
32
|
+
alias gccs='gcloud config set' # gccs: Define a property (like compute/zone) for the current configuration.
|
|
33
|
+
alias gccsp='gcloud config set project' # gccsp: Set a default Google Cloud project to work on.
|
|
34
|
+
alias gccu='gcloud components update' # gccu: Update your Cloud SDK to the latest version.
|
|
35
|
+
alias gci='gcloud init' # gci: Initialize, authorize, and configure the gcloud tool.
|
|
36
|
+
alias gcinf='gcloud info' # gcinf: Display current gcloud tool environment details.
|
|
37
|
+
alias gciov='gcloud io verify-email' # gciov: Verify your email address for Google Cloud.
|
|
38
|
+
|
|
39
|
+
# Container
|
|
40
|
+
alias gcccc='gcloud container clusters create' # gcccc: Create a cluster to run GKE containers.
|
|
41
|
+
alias gcccg='gcloud container clusters get-credentials' # gcccg: Update kubeconfig to get kubectl to use a GKE cluster.
|
|
42
|
+
alias gcccl='gcloud container clusters list' # gcccl: List clusters for running GKE containers.
|
|
43
|
+
alias gccil='gcloud container images list-tags' # gccil: List tag and digest metadata for a container image.
|
|
44
|
+
alias gcd='gcloud container' # gcd: A convenience command group for all container-related commands.
|
|
45
|
+
|
|
46
|
+
# IAM
|
|
47
|
+
alias gciamk='gcloud iam service-accounts keys list' # gciamk: List a service account's keys.
|
|
48
|
+
alias gciaml='gcloud iam list-grantable-roles' # gciaml: List IAM grantable roles for a resource.
|
|
49
|
+
alias gciamp='gcloud iam service-accounts add-iam-policy-binding' # gciamp: Add an IAM policy binding to a service account.
|
|
50
|
+
alias gciamr='gcloud iam roles create' # gciamr: Create a custom role for a project or org
|
|
51
|
+
alias gciamd='gcloud iam roles delete' # gciamd: Delete a custom role for a project or org.
|
|
52
|
+
alias gciampd='gcloud iam service-accounts remove-iam-policy-binding' # gciampd: Remove an IAM policy binding from a service account.
|
|
53
|
+
alias gciamro='gcloud iam roles describe' # gciamro: Describe a custom role for a project or org.
|
|
54
|
+
alias gciamsp='gcloud iam service-accounts set-iam-policy' # gciamsp: Replace the IAM policy of a service account.
|
|
55
|
+
alias gciamu='gcloud iam roles undelete' # gciamu: Undelete a custom role for a project or org.
|
|
56
|
+
alias gciamup='gcloud iam service-accounts update' # gciamup: Update a service account.
|
|
57
|
+
alias gcimp='gcloud organizations list' # gcimp: List available Cloud Identity domains.
|
|
58
|
+
alias gcimpe='gcloud organizations add-iam-policy-binding' # gcimpe: Add an IAM policy binding to a Cloud Identity domain.
|
|
59
|
+
alias gcimpr='gcloud organizations remove-iam-policy-binding' # gcimpr: Remove an IAM policy binding from a Cloud Identity domain.
|
|
60
|
+
alias gcsac='gcloud auth application-default login' # gcsac: Obtain an access token for the Google Cloud APIs.
|
|
61
|
+
|
|
62
|
+
# Compute
|
|
63
|
+
alias gcc='gcloud compute' # gcc: A convenience command group for all compute-related commands.
|
|
64
|
+
alias gcpa='gcloud projects add-iam-policy-binding' # gcpa: Add an IAM policy binding to a specified project.
|
|
65
|
+
alias gcpc='gcloud compute copy-files' # gcpc: Copy files.
|
|
66
|
+
alias gcpd='gcloud projects describe' # gcpd: Display metadata for a project (including its ID).
|
|
67
|
+
alias gcpdown='gcloud compute instances stop' # gcpdown: Stop instance.
|
|
68
|
+
alias gcpds='gcloud compute disks snapshot' # gcpds: Create snapshot of persistent disks.
|
|
69
|
+
alias gcpid='gcloud compute instances describe' # gcpid: Display a VM instance's details.
|
|
70
|
+
alias gcpil='gcloud compute instances list' # gcpil: List all VM instances in a project.
|
|
71
|
+
alias gcprm='gcloud compute instances delete' # gcprm: Delete instance.
|
|
72
|
+
alias gcpsk='gcloud compute snapshots delete' # gcpsk: Delete a snapshot.
|
|
73
|
+
alias gcpssh='gcloud compute ssh' # gcpssh: Connect to a VM instance by using SSH.
|
|
74
|
+
alias gcpup='gcloud compute instances start' # gcpup: Start instance.
|
|
75
|
+
alias gcpzl='gcloud compute zones list' # gcpzl:List Compute Engine zones.
|
|
76
|
+
|
|
77
|
+
# Deployment Manager
|
|
78
|
+
alias gcdm='gcloud deployment-manager' # gcdm: A convenience command group for all deployment-manager-related commands.
|
|
79
|
+
alias gcdma='gcloud deployment-manager deployments create' # gcdma: Create a new deployment.
|
|
80
|
+
alias gcdmd='gcloud deployment-manager deployments delete' # gcdmd: Delete a deployment.
|
|
81
|
+
alias gcdmg='gcloud deployment-manager deployments describe' # gcdmg: Describe a deployment.
|
|
82
|
+
alias gcdml='gcloud deployment-manager deployments list' # gcdml: List all deployments.
|
|
83
|
+
alias gcdmu='gcloud deployment-manager deployments update' # gcdmu: Update a deployment.
|
|
84
|
+
|
|
85
|
+
# DNS
|
|
86
|
+
alias gcdns='gcloud dns' # gcdns: A convenience command group for all dns-related commands.
|
|
87
|
+
alias gcdnsz='gcloud dns managed-zones' # gcdnsz: List managed DNS zones.
|
|
88
|
+
alias gcdnsc='gcloud dns record-sets changes' # gcdnsc: List or apply DNS record sets changes.
|
|
89
|
+
alias gcdnsd='gcloud dns managed-zones delete' # gcdnsd: Delete a managed DNS zone.
|
|
90
|
+
alias gcdnsi='gcloud dns managed-zones create' # gcdnsi: Create a new managed DNS zone.
|
|
91
|
+
alias gcdnsk='gcloud dns dns-keys' # gcdnsk: List and manage DNSSEC keys for a zone.
|
|
92
|
+
alias gcdnsl='gcloud dns record-sets list' # gcdnsl: List record sets in a managed zone.
|
|
93
|
+
alias gcdnsr='gcloud dns record-sets transaction start' # gcdnsr: Start a transaction to add, update, or remove record sets.
|
|
94
|
+
alias gcdnss='gcloud dns record-sets transaction execute' # gcdnss: Execute a transaction to add, update, or remove record sets.
|
|
95
|
+
alias gcdnst='gcloud dns record-sets transaction abort' # gcdnst: Abort a transaction to add, update, or remove record sets.
|
|
96
|
+
|
|
97
|
+
# Functions
|
|
98
|
+
alias gcf='gcloud functions' # gcf: A convenience command group for all functions-related commands.
|
|
99
|
+
|
|
100
|
+
# Cloud Build
|
|
101
|
+
|
|
102
|
+
alias gcb='gcloud builds' # gcb: A convenience command group for all Cloud Build-related commands.
|
|
103
|
+
alias gcbh='gcloud builds list' # gcbh: List all builds in a project.
|
|
104
|
+
alias gcbb='gcloud builds submit' # gcbb: Submit a build to Cloud Build.
|
|
105
|
+
|
|
106
|
+
# Cloud Run
|
|
107
|
+
|
|
108
|
+
alias gcr='gcloud run' # gcr: A convenience command group for all Cloud Run-related commands.
|
|
109
|
+
alias gcrd='gcloud run deploy' # gcrd: Deploy a container to Cloud Run.
|
|
110
|
+
alias gcrs='gcloud run services' # gcrs: List, describe, and manage services on Cloud Run.
|
|
111
|
+
alias gcru='gcloud run update' # gcru: Update an existing Cloud Run service.
|
|
112
|
+
alias gcrf='gcloud run logs' # gcrf: Display logs for a Cloud Run service.
|
|
113
|
+
|
|
114
|
+
# Cloud Storage
|
|
115
|
+
|
|
116
|
+
alias gcs='gsutil' # gcs: A convenience command group for all Cloud Storage-related commands.
|
|
117
|
+
alias gcsc='gsutil cp' # gcsc: Copy files and objects to/from Cloud Storage.
|
|
118
|
+
alias gcscp='gsutil -m cp' # gcscp: Copy files and objects to/from Cloud Storage using parallel processing.
|
|
119
|
+
alias gcsd='gsutil du' # gcsd: Display the total size of a bucket or object.
|
|
120
|
+
alias gcsl='gsutil ls' # gcsl:List contents of a bucket or folder.
|
|
121
|
+
alias gcspm='gsutil setmeta' # gcspm: Set metadata for objects in Cloud Storage.
|
|
122
|
+
|
|
123
|
+
# BigQuery
|
|
124
|
+
|
|
125
|
+
alias gcbq='bq' # gcbq: A convenience command group for all BigQuery-related commands.
|
|
126
|
+
alias gcbql='bq ls' # gcbql: List all datasets in a project.
|
|
127
|
+
alias gcbqs='bq show' # gcbqs: Show details about a specific dataset or table.
|
|
128
|
+
alias gcbqd='bq rm' # gcbqd: Delete a dataset or table.
|
|
129
|
+
alias gcbqc='bq query' # gcbqc: Run a BigQuery SQL query.
|
|
130
|
+
|
|
131
|
+
# Cloud SQL
|
|
132
|
+
|
|
133
|
+
alias gcsql='gcloud sql' # gcsql: A convenience command group for all Cloud SQL-related commands.
|
|
134
|
+
alias gcsqlc='gcloud sql connect' # gcsqlc: Connect to a Cloud SQL instance.
|
|
135
|
+
alias gcsqlc='gcloud sql instances create' # gcsqlc: Create a new Cloud SQL instance.
|
|
136
|
+
alias gcsqlr='gcloud sql instances describe' # gcsqlr: Describe a Cloud SQL instance.
|
|
137
|
+
alias gcsqlu='gcloud sql users set-password' # gcsqlu: Update the password for a Cloud SQL user.
|
|
138
|
+
|
|
139
|
+
# Pub/Sub
|
|
140
|
+
|
|
141
|
+
alias gcps='gcloud pubsub' # gcps: A convenience command group for all Pub/Sub-related commands.
|
|
142
|
+
alias gcpsp='gcloud pubsub topics' # gcpsp: List, create, and manage Pub/Sub topics.
|
|
143
|
+
alias gcpss='gcloud pubsub subscriptions' # gcpss: List, create, and manage Pub/Sub subscriptions.
|
|
144
|
+
alias gcpsp='gcloud pubsub publish' # gcpsp: Publish a message to a Pub/Sub topic.
|
|
6
145
|
|
|
7
|
-
# π
Άπ
²π
»π
Ύππ
³ π
°π
»π
Έπ
°ππ
΄π - Google Cloud aliases.
|
|
8
|
-
if command -v gcloud &>/dev/null; then
|
|
9
|
-
# Sections:
|
|
10
|
-
#
|
|
11
|
-
# 1.0 Google Cloud Aliases.
|
|
12
|
-
# 1.1 Aliases to get going with the gcloud command-line tool.
|
|
13
|
-
# 1.2 Aliases to make the Cloud SDK your own; personalize your configuration with properties.
|
|
14
|
-
# 1.3 Aliases to grant and revoke authorization to Cloud SDK.
|
|
15
|
-
# 1.4 Aliases to configuring Cloud Identity & Access Management (IAM) preferences and service accounts.
|
|
16
|
-
# 1.5 Aliases to manage project access policies.
|
|
17
|
-
# 1.6 Aliases to manage containerized applications on Kubernetes.
|
|
18
|
-
# 1.7 Aliases to create, run, and manage VMs on Google infrastructure.
|
|
19
|
-
# 1.8 Aliases to build highly scalable applications on a fully managed serverless platform.
|
|
20
|
-
# 1.9 Aliases to commands that might come in handy.
|
|
21
|
-
#
|
|
22
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
23
|
-
# Copyright (c) 2015-2022. All rights reserved
|
|
24
|
-
# Licensed under the MIT license
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
## ----------------------------------------------------------------------------
|
|
28
|
-
## 1.0 Google Cloud Aliases.
|
|
29
|
-
## ----------------------------------------------------------------------------
|
|
30
|
-
|
|
31
|
-
## ----------------------------------------------------------------------------
|
|
32
|
-
## 1.1 Aliases to get going with the gcloud command-line tool.
|
|
33
|
-
## ----------------------------------------------------------------------------
|
|
34
|
-
|
|
35
|
-
alias gcci='gcloud components install' # Install specific components.
|
|
36
|
-
alias gccsp='gcloud config set project' # Set a default Google Cloud project to work on.
|
|
37
|
-
alias gccu='gcloud components update' # Update your Cloud SDK to the latest version.
|
|
38
|
-
alias gci='gcloud init' # Initialize, authorize, and configure the gcloud tool.
|
|
39
|
-
alias gcinf='gcloud info' # Display current gcloud tool environment details.
|
|
40
|
-
alias gcv='gcloud version' # Display version and installed components.
|
|
41
|
-
|
|
42
|
-
## ----------------------------------------------------------------------------
|
|
43
|
-
## 1.2 Aliases to make the Cloud SDK your own; personalize your configuration with properties.
|
|
44
|
-
## ----------------------------------------------------------------------------
|
|
45
|
-
|
|
46
|
-
alias gccca='gcloud config configurations activate' # Switch to an existing named configuration.
|
|
47
|
-
alias gcccc='gcloud config configurations create' # Create a new named configuration.
|
|
48
|
-
alias gcccl='gcloud config configurations list' # Display a list of all available configurations.
|
|
49
|
-
alias gccgv='gcloud config get-value' # Fetch value of a Cloud SDK property.
|
|
50
|
-
alias gccl='gcloud config list' # Display all the properties for the current configuration.
|
|
51
|
-
alias gccs='gcloud config set' # Define a property (like compute/zone) for the current configuration.
|
|
52
|
-
|
|
53
|
-
## ----------------------------------------------------------------------------
|
|
54
|
-
## 1.3 Aliases to grant and revoke authorization to Cloud SDK.
|
|
55
|
-
## ----------------------------------------------------------------------------
|
|
56
|
-
|
|
57
|
-
alias gcaasa='gcloud auth activate-service-account' # Like gcloud auth login but with service account credentials.
|
|
58
|
-
alias gcacd='gcloud auth configure-docker' # Register the gcloud tool as a Docker credential helper.
|
|
59
|
-
alias gcal='gcloud auth list' # List all credentialed accounts.
|
|
60
|
-
alias gcal='gcloud auth login' # Authorize Google Cloud access for the gcloud tool with Google user credentials and set current account as active.
|
|
61
|
-
alias gcapat='gcloud auth print-access-token' # Display the current account's access token.
|
|
62
|
-
alias gcar='gcloud auth revoke' # Remove access credentials for an account.
|
|
63
|
-
|
|
64
|
-
## ----------------------------------------------------------------------------
|
|
65
|
-
## 1.4 Aliases to configuring Cloud Identity & Access Management (IAM) preferences and service accounts.
|
|
66
|
-
## ----------------------------------------------------------------------------
|
|
67
|
-
|
|
68
|
-
alias gciamk='gcloud iam service-accounts keys list' # List a service account's keys.
|
|
69
|
-
alias gciaml='gcloud iam list-grantable-roles' # List IAM grantable roles for a resource.
|
|
70
|
-
alias gciamp='gcloud iam service-accounts add-iam-policy-binding' # Add an IAM policy binding to a service account.
|
|
71
|
-
alias gciamr='gcloud iam roles create' # Create a custom role for a project or org.
|
|
72
|
-
alias gciams='gcloud iam service-accounts set-iam-policy' # Replace existing IAM policy binding.
|
|
73
|
-
alias gciamv='gcloud iam service-accounts create' # Create a service account for a project.
|
|
74
|
-
|
|
75
|
-
## ----------------------------------------------------------------------------
|
|
76
|
-
## 1.5 Aliases to manage project access policies.
|
|
77
|
-
## ----------------------------------------------------------------------------
|
|
78
|
-
|
|
79
|
-
alias gcpa='gcloud projects add-iam-policy-binding' # Add an IAM policy binding to a specified project.
|
|
80
|
-
alias gcpd='gcloud projects describe' # Display metadata for a project (including its ID).
|
|
81
|
-
|
|
82
|
-
## ----------------------------------------------------------------------------
|
|
83
|
-
## 1.6 Aliases to manage containerized applications on Kubernetes.
|
|
84
|
-
## ----------------------------------------------------------------------------
|
|
85
|
-
|
|
86
|
-
alias gcccc='gcloud container clusters create' # Create a cluster to run GKE containers.
|
|
87
|
-
alias gcccg='gcloud container clusters get-credentials' # Update kubeconfig to get kubectl to use a GKE cluster.
|
|
88
|
-
alias gcccl='gcloud container clusters list' # List clusters for running GKE containers.
|
|
89
|
-
alias gccil='gcloud container images list-tags' # List tag and digest metadata for a container image.
|
|
90
|
-
|
|
91
|
-
## ----------------------------------------------------------------------------
|
|
92
|
-
## 1.7 Aliases to create, run, and manage VMs on Google infrastructure.
|
|
93
|
-
## ----------------------------------------------------------------------------
|
|
94
|
-
|
|
95
|
-
alias gcpc='gcloud compute copy-files' # Copy files
|
|
96
|
-
alias gcpdown='gcloud compute instances stop' # Stop instance
|
|
97
|
-
alias gcpds='gcloud compute disks snapshot' # Create snapshot of persistent disks.
|
|
98
|
-
alias gcpid='gcloud compute instances describe' # Display a VM instance's details.
|
|
99
|
-
alias gcpil='gcloud compute instances list' # List all VM instances in a project.
|
|
100
|
-
alias gcprm='gcloud compute instances delete' # Delete instance
|
|
101
|
-
alias gcpsk='gcloud compute snapshots delete' # Delete a snapshot.
|
|
102
|
-
alias gcpssh='gcloud compute ssh' # Connect to a VM instance by using SSH.
|
|
103
|
-
alias gcpup='gcloud compute instances start' # Start instance.
|
|
104
|
-
alias gcpzl='gcloud compute zones list' # List Compute Engine zones.
|
|
105
|
-
|
|
106
|
-
## ----------------------------------------------------------------------------
|
|
107
|
-
## 1.8 Aliases to build highly scalable applications on a fully managed serverless platform.
|
|
108
|
-
## ----------------------------------------------------------------------------
|
|
109
|
-
|
|
110
|
-
alias gcapb='gcloud app browse' # Open the current app in a web browser.
|
|
111
|
-
alias gcapc='gcloud app create' # Create an App Engine app within your current project.
|
|
112
|
-
alias gcapd='gcloud app deploy' # Deploy your app's code and configuration to the App Engine server.
|
|
113
|
-
alias gcapl='gcloud app logs read' # Display the latest App Engine app logs.
|
|
114
|
-
alias gcapv='gcloud app versions list' # List all versions of all services deployed to the App Engine server.
|
|
115
|
-
|
|
116
|
-
## ----------------------------------------------------------------------------
|
|
117
|
-
## 1.9 Aliases to commands that might come in handy.
|
|
118
|
-
## ----------------------------------------------------------------------------
|
|
119
|
-
|
|
120
|
-
alias gckmsd='gcloud kms decrypt' # Decrypt ciphertext (to a plaintext file) using a Cloud Key Management Service (Cloud KMS) key.
|
|
121
|
-
alias gclll='gcloud logging logs list' # List your project's logs.
|
|
122
|
-
alias gcsqlb='gcloud sql backups describe' # Display info about a Cloud SQL instance backup.
|
|
123
|
-
alias gcsqle='gcloud sql export sql' # Export data from a Cloud SQL instance to a SQL file.
|
|
124
146
|
fi
|