This is a plugin that helps to visualize the different components within a Spin application.
The latest stable release of the blueprint plugin can be installed like so:
spin plugins update
spin plugin install blueprint
The canary release of the command trigger plugin represents the most recent commits on main
and may not be stable, with some features still in progress.
spin plugins install --url https://github.com/fermyon/blueprint-plugin/releases/download/canary/blueprint.json
Alternatively, use the spin pluginify
plugin to install from a fresh build. This will use the pluginify manifest (spin-pluginify.toml
) to package the plugin and proceed to install it:
spin plugins install pluginify
go build -o blueprint main.go
spin pluginify --install
This plugin will read a spin.toml
file within the same directory--or whatever path specified in the --file
flag--and output tables detailing the Spin application as a whole, as well as individual components.
spin blueprint --help
If in your terminal you are in the same directory as a spin.toml file:
spin blueprint show
If your spin.toml file is somewhere else:
spin blueprint show --file path/to/spin.toml
If in your terminal you are in the same directory as a spin.toml file:
spin blueprint show component-name
If your spin.toml file is somewhere else:
spin blueprint show --file path/to/spin.toml component-name
You can pass environment variables directly:
SPIN_VARIABLE_FOO=bar spin blueprint show --file path/to/spin.toml
Or read a .env
file:
spin blueprint --env path/to/file.env show component-name