
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@cliffpyles/blueprints-cli
Advanced tools
(work in progress. USE AT OWN RISK. api, features, and conventions are likely to change)
(docs not complete)
blueprints-cli is a tool for generating files (i.e. blueprint instances) based on templates (i.e. blueprints). One common usage for this tool is generating files for development environments (ex. components, applications, containers, configurations, etc.)
The goal of the project is the automation of file creation, with simplicity, flexibility, and extensibility in mind.
npm install -g @cliffpyles/blueprints-cli
or
yarn global add @cliffpyles/blueprints-cli
1) Create a blueprint
bp new -g ExampleBlueprint
2) Configure the blueprint
Place files you want to reuse in ~/.blueprints/ExampleBlueprint/files/
3) Use the blueprint
Go to the desired folder and run bp generate ExampleBlueprint MyInstance
generate|g [options] <blueprint> <blueprintInstance>
Generate files with a blueprint
list|ls [namespace]
List all available blueprints
new [options] <blueprint>
Create a blueprint
import <globalBlueprint> [localBlueprint]
Create a project blueprint based on a global blueprint
init [projectPath]
Initialize a local blueprints project
remove|rm [options] <blueprint>
Remove a blueprint
help [command]
display help for command
blueprint-cli uses the concept of global and local blueprints. To modify your global blueprints go to ~/.blueprints
. To modify your project blueprints go to your/project/path/.blueprints
. A blueprint is by definition a directory that is a descendant of a .blueprints
directory. You can use a blueprint to generate a blueprint instance.
You can use a blueprint to create a blueprint instance. This creation is referred to as generating a blueprint instance.
You can think of generating a blueprint instance, as copying and pasting a directory, followed by some optional file and directory modifications. The directory you copy is the blueprint, the directory created when you paste is the blueprint instance.
You generate a blueprint instance by running: bp generate <blueprintName> <blueprintInstanceName>
When generating blueprint instances, the tool will look for the blueprint in your current directory first, and then it will look in every parent directory, until it reaches your home directory. It will use the first blueprint it finds, unless you expicitly tell it to use the global blueprint (the blueprint in the home directory).
├── blueprint.json
├── files/
├── hooks.js
A file placed at the root of a blueprint. The contents of the this file allow for further configuration of a blueprint.
description
- A description of the blueprint. Used to describe what the blueprint is when you run bp list
data
- Default data values that will be used when generating a blueprint instance. The data can be used to rename files and directories, or to replace file contents. These values can be overwritten by specifying the values when the generate
command is run.
A directory containing the files and directories that will be copied during blueprint instance generation.
A node module that exports various functions that are executed during blueprint instance generation.
FAQs
A tool for generating predefined files and directories
The npm package @cliffpyles/blueprints-cli receives a total of 0 weekly downloads. As such, @cliffpyles/blueprints-cli popularity was classified as not popular.
We found that @cliffpyles/blueprints-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.