flowpipe mod

Flowpipe mod management.

Mods provide an easy way to share Flowpipe pipelines. Find mods using the public registry at hub.flowpipe.io.

Usage

Sub-Commands

CommandDescription
initInitialize the current directory with a mod.fp file
installInstall one or more mods and their dependencies
listList currently installed mods
uninstallUninstall a mod and its dependencies
updateUpdate one or more mods and their dependencies

Flags

FlagDescription
--dry-runShow which mods would be installed/updated/uninstalled without modifying them (default false).
--forceInstall mods even if plugin/cli version requirements are not met (cannot be used with --dry-run).
--pruneRemove unused dependencies after installation is complete (default true).
--pull stringSpecify an update strategy: full, latest, development, minimal (default latest)

Update Strategy

It is also possible to have more granular control of the update behavior - e.g. when to check for new commits. The --pull argument can be used to specify the update strategy when running powerpipe update or powerpipe install:

StrategyDescription
fullCheck branches and tags for both latest and accuracy
latestUpdate everything to latest, but only branches (not tags) are commit checked
developmentUpdate branches and broken constraints to latest, leave satisfied constraints unchanged
minimalOnly update broken constraints. Do not check branches for new commits

Git URLs & Private Repos

Flowpipe uses git to install and update mods. When you run flowpipe mod install or flowpipe mod update, Flowpipe will first try using https and if that does not work it will try ssh. If your SSH keys are configured properly for git, you should be able to pull from private repos that you have access to, as well as public ones.

When publishing mods, you should usually only depend on public mods (hosted in public repos) so that users of your mod don't encounter permissions issues.

Examples

List installed mods:

Install a mod and add the require statement to your mod.fp:

Install an exact version of a mod and update the require statement to your mod.fp. This may upgrade or downgrade the mod if it is already installed:

Install a version of a mod using a semver constraint and update the require statement to your mod.fp. This may upgrade or downgrade the mod if it is already installed:

Install a mod from a GitHub tag:

Install a mod from a GitHub branch:

Install a mod from a local directory:

Install all mods specified in the mod.fp and their dependencies:

Preview what flowpipe mod install will do, without actually installing anything:

Update a mod to the latest version allowed by its current constraint:

Update all mods specified in the mod.fp and their dependencies to the latest versions that meet their constraints, and install any that are missing:

Uninstall a mod:

Preview uninstalling a mod, but don't uninstall it: