Your First Feature
This article serves as a guide on how to create and manage Features within DevCycle. This will outline how to create and manage within the DevCycle Dashboard, however, features may also be created via the DevCycle Management API.
If you are coming from another Feature Flagging or Feature Management tool, be sure to check out the DevCycle Feature Importer
Creating a Feature
On the DevCycle Dashboard, the "Feature Management" page can be accessed at any time via the button on the top bar. In this page there is a button to "Create new Feature". Additionally, there is a "+" button in the header bar. Both of these buttons can be used to begin the Feature creation process on the DevCycle Dashboard.
To create a Feature:
- Click either the "+" button or the "Create new Feature" button
- A screen for deciding your Feature Type will now appear:
Choose your feature type to begin the creation process. To read more about the feature types and their uses, read DevCycle Feature Types
After choosing a type, the information screen will appear:
Enter a descriptive Feature Name
Enter a unique feature key. This key is how the feature and is variables will be referenced in code. (A key will be automatically suggested based on the entered name.)
Enter a unique Initial Variable Key. Initial Variable Key allows you to define an initial variable key that can differ from the new feature key name. As you type in the Feature Name, the feature Key and the Initial Variable Key will mimic whatever input is entered in the Feature Name field formatted in kebab case.
Select the Initial Variable Type. Initial Variable Type allows you to select the type of variable for the initial variable created along with your feature (Boolean, JSON, String, or Number).
Optionally, you may choose to provide a detailed description of the feature.
You have now created a Feature within your project!
Targeting Across Environments
Note: When a feature is created within DevCycle, it is automatically created across all environments that are defined in your project. To read more on managing environments, read Managing Environments.
Within DevCycle, all targeting rules of each feature are specific to Environments. This allows you to provide different rules and access across every stage of the feature's deployment. All of an Environment's targeting can be managed directly within the Feature's page itself.
Once it is known how the feature should be managed and who it should target, you can now turn the feature on.