Azure Service Fabric CLI

11.2.1 · active · verified Thu Apr 16

sfctl is the Azure Service Fabric command-line interface, a powerful utility for interacting with and managing Service Fabric clusters, applications, and services. It provides a comprehensive set of commands for development, deployment, and operational tasks. The library maintains an active release cadence, with updates often aligning with new Service Fabric runtime versions to ensure compatibility and leverage new features. The current version is 11.2.1.

Common errors

Warnings

Install

Quickstart

After installation, use `sfctl -h` to see available commands. The first step is typically to connect to a Service Fabric cluster using `sfctl cluster select`. For secure clusters, you'll need to provide certificate paths (PEM or cert/key pair) and potentially use `--no-verify` for self-signed certificates, though this is not recommended for production environments.

# Install sfctl (if not already installed)
pip install sfctl

# Display help for sfctl commands
sfctl -h

# Connect to a Service Fabric cluster (example for a local cluster)
# Replace with your cluster endpoint and certificate details for secure/remote clusters
sfctl cluster select --endpoint http://localhost:19080

# Check the health of the connected cluster
sfctl cluster health

# List all applications in the cluster
sfctl application list

view raw JSON →