2024-11-24 05:50:31 -08:00
|
|
|
# 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.
|
2025-06-12 14:28:24 +03:00
|
|
|
> More information: <https://github.com/danielmiessler/fabric#usage>.
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Run the setup to configure fabric:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-S|--setup]}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- List all available patterns:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-l|--listpatterns]}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Run a pattern with input from a file:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-p|--pattern]}} {{pattern_name}} < {{path/to/input_file}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Run a pattern on a YouTube video URL:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-y|--youtube]}} "{{https://www.youtube.com/watch?v=video_id}}" {{[-p|--pattern]}} {{pattern_name}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Chain patterns together by piping output from one to another:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-p|--pattern]}} {{pattern1}} | fabric {{[-p|--pattern]}} {{pattern2}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Run a custom user-defined pattern:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-p|--pattern]}} {{custom_pattern_name}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Run a pattern and save the output to a file:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-p|--pattern]}} {{pattern_name}} {{[-o|--output]}} {{path/to/output_file}}`
|
2024-11-24 05:50:31 -08:00
|
|
|
|
|
|
|
- Run a pattern with the specified variables:
|
|
|
|
|
2025-06-12 14:28:24 +03:00
|
|
|
`fabric {{[-p|--pattern]}} {{pattern_name}} {{[-v|--variable]}} "{{variable_name}}:{{value}}"`
|