4 Commits

Author SHA1 Message Date
dawid 68b2ec93cb Update README.md 2022-02-14 22:09:13 +01:00
dawid f52de3c602 Update README.md 2022-02-14 22:08:40 +01:00
dawid ca02aa1da6 Update README.md 2022-02-14 13:33:46 +01:00
dawid 88a86bfab1 Delete .DS_Store 2022-02-07 14:06:38 +01:00
2 changed files with 6 additions and 6 deletions
Vendored
BIN
View File
Binary file not shown.
+5 -5
View File
@@ -1,9 +1,9 @@
## What's this?
`getenv` will fetch GCE metadata attributes and print them as K=V pairs ready to be `exported` as environment variables.
`getenv` will fetch Google Cloud (Compute Engine) metadata attributes and print them as K=V pairs ready to be `exported` as environment variables.
Example:
```bash
./getenv
getenv
MY_VARIABLE=SOMEVALUE
```
@@ -11,11 +11,11 @@ MY_VARIABLE=SOMEVALUE
Export all metadata attributes as ENV variables for current shell session and store them in /etc/environment for future sessions:
```bash
export $(./getenv)
./getenv 1>> /etc/environment
export $(getenv)
getenv 1>> /etc/environment
```
or
```bash
./getenv 1>> /etc/environment
getenv 1>> /etc/environment
source /etc/environment
```