Feature Lifecycle

These commands create a feature, fetch it from the forge, put it into your product and take it out again. On the way a feature is cached, declared, installed, migrated and active, as Working with features shows.

Command What it does
feature:install Clones, declares, configures and starts a feature in one step
feature:create Scaffolds a new feature
feature:clone Clones a released feature into the cache
feature:fork Forks a feature on the forge and clones it
feature:add Adds an editable feature to the selected product
feature:remove Removes an editable feature from the selected product
feature:attach Pins a released version in the selected product
feature:detach Removes a pinned feature from the selected product
feature:unlock Turns a pinned feature into an editable one
feature:delete Deletes a pinned snapshot from the cache
feature:discard Deletes the editable copy, keeping the snapshots
feature:clean Removes the scaffold a feature does not use

Features for one environment

splent feature:add splent-io/splent_feature_fake_users --dev
splent feature:attach splent-io/splent_feature_monitoring v1.0.0 --prod

--dev writes the feature to features_dev and --prod to features_prod, instead of features. A feature in features_dev loads only when SPLENT_ENV=dev, and one in features_prod only when SPLENT_ENV=prod.


Table of contents


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es