Dockerized Fabric CLI for running Al-powered Patterns and workflows in any environment.
479
fabric-cli provides a lightweight Dockerized version of the Fabric framework, enabling seamless use of AI-powered Patterns directly from the command line. It packages the Fabric tool into a portable container, making setup consistent across environments without manual installation. With fabric-cli, users can run prompts, process text, scrape content, and integrate AI workflows quickly in any Docker-supported system. Ideal for developers, writers, and researchers who want a ready-to-use, containerized Fabric experience.
Usage examples:
docker run --rm -it vaibhavgawali/fabric-cli:v2_fv1.4.320 --help
docker run --rm -it -v C:\Temp\.fabric-config:/root/.config/fabric --name fabricvg vaibhavgawali/fabric-cli:v2_fv1.4.320 -y "https://www.youtube.com/watch?v=wPEyyigh10g&t=240s" --stream --pattern summarize
Steps:
/root/.config/fabric when running the containerdocker run --rm -it -v C:\Temp\.fabric-config:/root/.config/fabric --name fabricvg vaibhavgawali/fabric-cli:v2_fv1.4.320 --setupdocker run --rm -it -v C:\Temp\.fabric-config:/root/.config/fabric --name fabricvg vaibhavgawali/fabric-cli:v2_fv1.4.320 -y "https://www.youtube.com/watch?v=wPEyyigh10g&t=240s" --stream --pattern summarizeFabric stores its configuration in ~/.config/fabric/.env. Mount this path to keep your settings on the host.
mkdir -p $HOME/.fabric-config
docker run --rm -it -v $HOME/.fabric-config:/root/.config/fabric vaibhavgawali/fabric-cli:v2_fv1.4.320 --setup
Subsequent runs can reuse the same directory:
docker run --rm -it -v $HOME/.fabric-config:/root/.config/fabric vaibhavgawali/fabric-cli:v2_fv1.4.320 -p your-pattern
Expose port 8080 to use Fabric's REST API:
docker run --rm -it -p 8080:8080 -v $HOME/.fabric-config:/root/.config/fabric vaibhavgawali/fabric-cli:v2_fv1.4.320 --serve
The API will be available at http://localhost:8080.
Fabric project GitHub repo: https://github.com/danielmiessler/Fabric
fabric-cli dockerfile GitHub repo: https://github.com/vaibhav-gawali/AI-Docker-CLI
Content type
Image
Digest
sha256:d60dd9688…
Size
348.4 MB
Last updated
11 months ago
docker pull vaibhavgawali/fabric-cli