1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 05:15:24 +02:00
tldr/pages/common/fabric.md

1.1 KiB

fabric

An open-source framework for augmenting humans using AI. Provides a modular framework for solving specific problems using a crowdsourced set of AI prompts. More information: https://github.com/danielmiessler/fabric#usage.

  • Run the setup to configure fabric:

fabric {{[-S|--setup]}}

  • List all available patterns:

fabric {{[-l|--listpatterns]}}

  • Run a pattern with input from a file:

fabric {{[-p|--pattern]}} {{pattern_name}} < {{path/to/input_file}}

  • Run a pattern on a YouTube video URL:

fabric {{[-y|--youtube]}} "{{https://www.youtube.com/watch?v=video_id}}" {{[-p|--pattern]}} {{pattern_name}}

  • Chain patterns together by piping output from one to another:

fabric {{[-p|--pattern]}} {{pattern1}} | fabric {{[-p|--pattern]}} {{pattern2}}

  • Run a custom user-defined pattern:

fabric {{[-p|--pattern]}} {{custom_pattern_name}}

  • Run a pattern and save the output to a file:

fabric {{[-p|--pattern]}} {{pattern_name}} {{[-o|--output]}} {{path/to/output_file}}

  • Run a pattern with the specified variables:

fabric {{[-p|--pattern]}} {{pattern_name}} {{[-v|--variable]}} "{{variable_name}}:{{value}}"