Skip to main content

Securely manage your secrets and environment variables with Phase.

Project description

Phase-CLI

Securely manage and sync environment variables with Phase.

         :@tX88%%:
        ;X;%;@%8X@;
      ;Xt%;S8:;;t%S
      ;SXStS@.;t8@:;.
    ;@:t;S8  ;@.%.;8:
    :X:S%88    S.88t:.
  :X:%%88     :S:t.t8t
.@8X888@88888888X8.%8X8888888X8.S88:
                ;t;X8;      ;XS:%X;
                :@:8@X.     XXS%S8
                 8XX:@8S  .X%88X;
                  .@:XX88:8Xt8:
                     :%88@S8:

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 to your Phase app
    run                 🚀 Run and inject secrets to your app
    secrets             🗝️ Manage your secrets
    logout              🏃 Logout from phase-cli
    console             🖥️ Open the Phase Console in your browser
    update              🔄 Update the Phase CLI to the latest version
    keyring             🔐 Display information about the Phase keyring

Features

  • 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

Installation

You can install Phase-CLI using curl:

curl -fsSL https://get.phase.dev | bash

Usage

Login

Create an app in the Phase Console and copy appID and pss

phase auth

Initialize

Link the phase cli to your project

phase init

Import .env

Import and encrypt existing secrets and environment variables

phase secrets import .env

List / view secrets

phase secrets list --show

Run and inject secrets

phase run // your run command

Example:

phase run yarn dev
phase run go run
phase run npm start

Development:

cd /root of this git repo

export PYTHONPATH="$PWD"

./phase_cli/main.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phase-cli-0.0.0.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phase_cli-0.0.0-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file phase-cli-0.0.0.tar.gz.

File metadata

  • Download URL: phase-cli-0.0.0.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/6.8.0 pkginfo/1.7.0 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.11.5

File hashes

Hashes for phase-cli-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f1a4a63947f00935a5d715e20c32c84925c8a32478f2e2f0ac1c2f140517963b
MD5 8160318964772a5fcc9508440e605a0e
BLAKE2b-256 0ab0296d33cb8b8ad2486cd43bc260f0a3dfd927322d2da620ef28b94c663ae1

See more details on using hashes here.

File details

Details for the file phase_cli-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: phase_cli-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/6.8.0 pkginfo/1.7.0 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.11.5

File hashes

Hashes for phase_cli-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2ca6e10a2e5309221e0f655aa1e2fffeaf9aed2359c2f376c1982c4e1d95b7d
MD5 ceb3aa8734f5b001a604abedf10dea0f
BLAKE2b-256 ed7a32e89ad453e262868c5cd30ae22b15ea16475bb5b58b6653c61a8f1a54fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page