Getting Started
dyrector add
Install a block or component from the registry into this project
Usage
Command usage
dyrector add [OPTIONS] [NAME]
Arguments
| Argument | Description |
|---|---|
| NAME | Registry item name or tag. Single items install directly (e.g. shader-wipe). If the name matches a tag instead, all blocks with that tag are installed (e.g. html-in-canvas, captions). Give several names to install each of them in one call. Not needed with --template. |
Options
| Option | Description |
|---|---|
| --template=<template> | Install a template from your template library into this project instead (dyrector template list) |
| --dir=<dir> | Project directory (defaults to the current working directory) |
| --clipboard | Copy the include snippet to the clipboard (use --no-clipboard to skip) (Default: true) |
| --no-clipboard | |
| --json | Print a machine-readable summary (written files + snippet) to stdout |
| --vars=<vars> | JSON of variable values to bake into the printed snippet, as copied from a catalog page; or a JSON file path, or - for stdin |
| --force | Overwrite files you have edited since installing them (they are kept by default) |
Verbatim output of dyrector add --help
Install a block or component from the registry into this project (dyrector add v0.9.87)
USAGE dyrector add [OPTIONS] [NAME]
ARGUMENTS
NAME Registry item name or tag. Single items install directly (e.g. shader-wipe). If the name matches a tag instead, all blocks with that tag are installed (e.g. html-in-canvas, captions). Give several names to install each of them in one call. Not needed with --template.
OPTIONS
--template=<template> Install a template from your template library into this project instead (dyrector template list)
--dir=<dir> Project directory (defaults to the current working directory)
--clipboard Copy the include snippet to the clipboard (use --no-clipboard to skip) (Default: true)
--no-clipboard
--json Print a machine-readable summary (written files + snippet) to stdout
--vars=<vars> JSON of variable values to bake into the printed snippet, as copied from a catalog page; or a JSON file path, or - for stdin
--force Overwrite files you have edited since installing them (they are kept by default)