λ phase
Securely manage application secrets and environment variables with Phase.
@@@
@@@@@@@@@@
@@@@@@@@@@@@@@@@
P@@@@@&@@@?&@@&@@@@@P
P@@@@# @&@ @P@@@
&@@@# *@& #@@@&
&@@@5 &@? 5@@@&
Y@@@# ^@@ #@@@J
#@@@7 B@5 7@@@#
#@@@? .@@. ?@@@#
@@@@& 5@G &@@@7
#@@@B @@^ #@@@B
B@@@@ .@# 7@@@@B
@@@@@@ &.@ P@@@@@7
@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@
@@@@@@@@
@@@
options:
-h, --help show this help message and exit
--version, -v
show program's version number and exit
Commands:
auth 💻 Authenticate with Phase
init 🔗 Link your project with your Phase app
run 🚀 Run and inject secrets to your app
secrets 🗝️ Manage your secrets
secrets list 📇 List all the secrets
secrets get 🔍 Get a specific secret by key
secrets create 💳 Create a new secret
secrets update 📝 Update an existing secret
secrets delete 🗑️ Delete a secret
secrets import 📩 Import secrets from a .env file
secrets export 🥡 Export secrets in a dotenv format
users 👥 Manage users and accounts
users whoami 🙋 See details of the current user
users logout 🏃 Logout from phase-cli
users keyring 🔐 Display information about the Phase keyring
docs 📖 Open the Phase CLI Docs in your browser
console 🖥️ Open the Phase Console in your browser
update 🆙 Update the Phase CLI to the latest version
- Inject secrets to your application during runtime without any code changes
- Import your existing .env files and encrypt them
- Sync encrypted secrets with Phase cloud
- Multiple environments eg. dev, testing, staging, production
You can install Phase-CLI using curl:
curl -fsSL https://get.phase.dev | bash
Create an app in the Phase Console and copy appID and pss
phase auth
Link the phase cli to your project
phase init
Import and encrypt existing secrets and environment variables
phase secrets import .env
phase secrets list --show
phase run // your run command
Example:
phase run yarn dev
phase run go run
phase run npm start
pip3 install virtualenv
virtualenv phase-cli
source phase-cli/bin/activate
pip3 install -r requirements.txt
export PYTHONPATH="$PWD"
python3 phase_cli/main.py