The easiest way to scrap .env files and store your API keys securely on Pangea.
Video Walkthrough on Getting Started
brew install pangeacyber/cli/pangea
using curl
source <(curl -L https://github.com/pangeacyber/pangea-cli/releases/latest/download/download-and-install.sh)
or using wget
bash <(wget -qO- https://github.com/pangeacyber/pangea-cli/releases/latest/download/download-and-install.sh)
Using winget
, run:
winget install pangeacyber.pangea
pangea login
Note: Follow the prompt and paste your Pangea vault token
pangea create
pangea select
pangea migrate -f .env
pangea run -- <APP_COMMAND>
# Example - pangea run -- npm run dev
Step 1: Install the CLI in your Dockerfile
. Here's an example for a Node app
FROM node:lts-bullseye
# Install Pangea CLI
RUN curl -L -o /bin/pangea "https://github.com/pangeacyber/pangea-cli/releases/latest/download/pangea-$(uname -s)-$(uname -m)"
WORKDIR /app
COPY . .
RUN npm install
ENTRYPOINT ["pangea", "run", "-c"]
# APP Command
CMD ["npm", "run", "dev"]
Now run your docker container by passing in the PANGEA_TOKEN and PANGEA_DEFAULT_FOLDER.
docker run \
-e PANGEA_TOKEN=pts... \
-e PANGEA_DOMAIN=aws.us.pangea.cloud \
-e PANGEA_DEFAULT_FOLDER=/secrets/... \
<IMAGE_NAME>
If completion is not working on MacOS using zsh
, you could try adding this next lines to your ~/.zshrc
file
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
and then restart the terminal running:
exec $SHELL