Quickstart
Install the enclava CLI, log in with your Enclava account, and deploy either a template or your own container image.
- Install the CLI: from a release artifact or from source.
- Log in: approve the CLI session in your browser.
- Deploy: a ready-made template or your own signed image.
- Check it's running:
enclava statusconfirms the app passed its checks.
Prerequisites
- An Enclava account and organization — request access if you don't have one.
- The
enclavaCLI (see below). - For the SSH template, an SSH public key such as
~/.ssh/id_ed25519.pub.
Install the CLI
macOS and Linux (including WSL):
curl -fsSL https://raw.githubusercontent.com/enclava-labs/cap/main/scripts/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/enclava-labs/cap/main/scripts/install.ps1 | iex
The script picks the right binary for your platform, checks it against the signed
SHA256SUMS.txt from the release (and verifies the Sigstore signature when cosign
is installed), and installs it to ~/.enclava/bin (%USERPROFILE%\.enclava\bin on
Windows). If that directory is not on your PATH, the script prints the line to add
to your shell profile. Set ENCLAVA_VERSION=vX.Y.Z to install a specific release,
or ENCLAVA_INSTALL_DIR to change the destination.
To build from source instead (any platform with Rust 1.85 or newer; on Debian or
Ubuntu including WSL you also need pkg-config and libssl-dev):
cargo install --git https://github.com/enclava-labs/cap --locked enclava-cli
Release artifacts are the right install for real deployments: they embed the trust
profiles the CLI uses to verify platform releases. A from-source build embeds the
repository's development fixture profiles instead, so platform-verifying commands
fail against the hosted service with no trusted profile for API origin — from-
source builds are for developing against a development platform.
Log in
enclava login
enclava whoami
login opens your browser so you can approve the CLI session in the Enclava console. After approval, the CLI stores its credentials locally. whoami shows your account and active organization.
Choose a deploy path
Deploy a template when one already matches what you need:
enclava template list
enclava template deploy debian-ssh-frp --name shell \
--ssh-public-key-file ~/.ssh/id_ed25519.pub
enclava template ssh-command --name shell --wait
Deploy your own container image when you need to run your own code:
enclava init
enclava create --signer-subject <cosign-subject>
enclava deploy --image <registry>/<image>@sha256:<digest>
enclava status
Your own image must be pinned by digest and signed by the identity you register with --signer-subject. Templates handle that for you. Deploy your own image walks through the full flow.
Check the deploy
For the SSH template, get the SSH command and check the app status:
enclava template ssh-command --name shell --wait
enclava status --app shell
For your own image, check the rollout and read the logs:
enclava status
enclava logs
If your app uses password-protected storage, the first deploy claims ownership and later restarts need an unlock with enclava unlock --app <name> — until then the app is down and clients see TLS connection errors. See Storage, unlock and recovery.