HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fabric — An open-source framework for augmenting humans using AI. Provides a modular framework for solving sp

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandsourceframeworkaugmentingcliopenfabricfor

Problem

How to use the fabric command: 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>.

Solution

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 < {{path/to/input_file}} {{[-p|--pattern]}} {{pattern_name}}


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}}"

Code Snippets

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 < {{path/to/input_file}} {{[-p|--pattern]}} {{pattern_name}}

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}}

Context

tldr-pages: common/fabric

Revisions (0)

No revisions yet.