Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.35 KB

File metadata and controls

54 lines (37 loc) · 1.35 KB

Installation

Prerequisites

  • Go 1.25+ (only required if building from source)
  • kubectl — required for deploying output to clusters and for crane validate with live cluster mode; not required for crane apply (kustomize is embedded)
  • Docker (optional) — for container-based workflows

Install from Release

Download a prebuilt binary from the releases page:

# Download the latest release (adjust OS/arch as needed)
curl -L https://github.com/konveyor/crane/releases/latest/download/crane-linux-amd64 -o crane
chmod +x crane
sudo mv crane /usr/local/bin/

Build from Source

git clone https://github.com/konveyor/crane.git
cd crane
go build -o crane main.go
sudo mv crane /usr/local/bin/

Verify Installation

crane version

You should see the Crane version output.

Quick Test

Verify Crane works with an accessible cluster:

# Export resources from a namespace
crane export -n default --export-dir /tmp/crane-test

# Check exported resources
ls /tmp/crane-test/resources/default/

If you see YAML files for resources in the default namespace, Crane is working correctly.

Next Steps