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 blueprintThe 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.jsonAlternatively, 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 --installThis 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 --helpIf in your terminal you are in the same directory as a spin.toml file:
spin blueprint showIf your spin.toml file is somewhere else:
spin blueprint show --file path/to/spin.tomlIf in your terminal you are in the same directory as a spin.toml file:
spin blueprint show component-nameIf your spin.toml file is somewhere else:
spin blueprint show --file path/to/spin.toml component-nameYou can pass environment variables directly:
SPIN_VARIABLE_FOO=bar spin blueprint show --file path/to/spin.tomlOr read a .env file:
spin blueprint --env path/to/file.env show component-name