I use Ubuntu for work and my Mac for personal projects. However, I often find myself needing to share numerous environment files, tokens, and config files between my machines, which can be quite tedious. In the past, I used Google Drive, but it was not an ideal solution.
To address this problem, I created denv
, a command-line interface (CLI) tool that simplifies the process of uploading and downloading these config files.
make
mkdir C:\bin
go build -o denv.exe cmd\denv\main.go
mv denv.exe C:\bin\denv.exe
setx PATH "C:\bin;%PATH%"
# ensure it is right placed
where.exe denv.exe
# You will need to get in hands your AWS secret key, access key, and a S3 bucket name
denv --conf
# To upload a file
denv --up [filename] --name [nickname]
# To download a file
denv --name [nickname]
# or
denv --name [nickname] --out [filename]
# ex: denv --name mygitconfig --out .config
# To list all files
denv --list
# To delete a file
denv --del [nickname]
That is it! 👋🏻