You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains the DevCycle CLI for managing feature flags from the command line, plus an MCP (Model Context Protocol) server that enables AI coding assistants to interact with DevCycle.
5
4
@@ -8,7 +7,7 @@ Major features include:
8
7
- Fully manage your Features, Variables, Variations and Targeting Rules from the command line
9
8
- Detect and list DevCycle Variable usages in your codebase
10
9
- Manage your Self-Targeting Overrides to quickly switch between Variable values
11
-
- Generate type definitions for type-safe usage of DevCycle (Typescript only)
10
+
- Generate type definitions for type-safe usage of DevCycle (TypeScript only)
12
11
- MCP (Model Context Protocol) server for AI-powered feature flag management with Cursor and Claude
13
12
14
13
The CLI can be customized in several ways using command-line args or by creating a [configuration file](#repo-configuration).
@@ -18,14 +17,15 @@ The CLI can be customized in several ways using command-line args or by creating
The DevCycle MCP (Model Context Protocol) server enables AI coding assistants like Cursor and Claude to manage feature flags directly from your development environment. DevCycle offers a hosted MCP server that requires no local installation.
27
27
28
-
### Quick Setup (No Installation Required)
28
+
####Quick Setup (No Installation Required)
29
29
30
30
1.**Configure your AI assistant to use the hosted MCP server:**
31
31
@@ -48,10 +48,7 @@ The DevCycle MCP (Model Context Protocol) server enables AI coding assistants li
@@ -63,11 +60,11 @@ Your AI assistant can now create, update, and manage feature flags on your behal
63
60
64
61
For local installation options, detailed configuration, available tools, and advanced usage, see the [complete MCP documentation](docs/mcp.md).
65
62
66
-
## CLI Documentation
63
+
### CLI Documentation
67
64
68
-
## Setup
65
+
### Setup
69
66
70
-
### Install the CLI
67
+
#### Install the CLI
71
68
72
69
Using NPM
73
70
@@ -82,13 +79,13 @@ $ brew tap devcyclehq/cli
82
79
$ brew install devcycle
83
80
```
84
81
85
-
## Authentication
82
+
###Authentication
86
83
87
84
Many of the CLI commands require DevCycle API authorization. There are several ways to provide these credentials.
88
85
89
-
### Using Access Tokens (preferred)
86
+
####Using Access Tokens (preferred)
90
87
91
-
#### Login Command
88
+
#####Login Command
92
89
93
90
By using the [`login sso` command](docs/login.md#dvc-login-sso), the CLI will retrieve and store an access token, which is valid for 24 hours.
94
91
@@ -100,13 +97,13 @@ To switch organizations once logged in, the [`organizations select` command](doc
100
97
101
98
If executing the CLI in a containerized environment, please ensure one of the following PORTs can be accessed via Port Forwarding: 2194 (default), 2195, 2196 or 8080. This will allow the authentication process to complete and set the access token appropriately.
102
99
103
-
#### Repo Init Command
100
+
#####Repo Init Command
104
101
105
102
The [`repo init` command](docs/repo.md#dvc-repo-init) behaves in the same way as `login sso`, but creates a [repo configuration file](#repo-configuration) and stores the project and organization choices there instead.
106
103
107
-
### Using Client Credentials
104
+
####Using Client Credentials
108
105
109
-
#### Client Credentials in Auth File
106
+
#####Client Credentials in Auth File
110
107
111
108
Use the [`dvc status` command](docs/status.md#dvc-status) to find the configuration file location for your platform. The credentials can be stored in the file pointed to by the Auth config path. Create the file if it does not exist, with the following contents.
112
109
@@ -122,15 +119,15 @@ The default location is based on the [oclif configDir](https://oclif.io/docs/con
122
119
123
120
If you intend to run the CLI using options that override config file locations, the [`dvc status` command](docs/status.md#dvc-status) command can be run with those options to confirm that the file locations are as expected.
124
121
125
-
### Project Selection
122
+
#### Project Selection
126
123
127
124
You also need to specify the default project ID for the CLI to use.
128
125
129
126
If there is a repo configuration file, the [`dvc diff`](docs/diff.md) and [`dvc usages`](docs/usages.md) commands will use the project defined there.
130
127
131
128
Otherwise, this is chosen during login or set using the [project select command](docs/projects.md#dvc-projects-select)
The Devcycle Github actions are configured with auth information through the `project-key`, `client-id` and `client-secret` configuration parameters. This is passed to the CLI via command line arguments.
150
+
The DevCycle GitHub actions are configured with auth information through the `project-key`, `client-id` and `client-secret` configuration parameters. This is passed to the CLI via command line arguments.
* [`dvc cleanup`](docs/cleanup.md) - Replace a DevCycle variable with a static value in the current version of your code. Currently only JavaScript is supported.
177
-
* [`dvc diff`](docs/diff.md) - Print a diff of DevCycle variable usage between two versions of your code.
178
-
* [`dvc environments`](docs/environments.md) - Create a new Environment for an existing Feature.
179
-
* [`dvc features`](docs/features.md) - Create, view, or modify Features with the Management API.
180
-
* [`dvc generate`](docs/generate.md) - Generate Devcycle related files.
181
-
* [`dvc help`](docs/help.md) - Display help for dvc.
182
-
* [`dvc identity`](docs/identity.md) - View or manage your DevCycle Identity.
183
-
* [`dvc keys`](docs/keys.md) - Retrieve SDK keys from the Management API.
184
-
* [`dvc login`](docs/login.md) - Log in to DevCycle.
185
-
* [`dvc logout`](docs/logout.md) - Discards any auth configuration that has been stored in the auth configuration file.
186
-
* [`dvc organizations`](docs/organizations.md) - List or switch organizations.
187
-
* [`dvc overrides`](docs/overrides.md) - Create, view, or modify Overrides for a Project with the Management API.
188
-
* [`dvc projects`](docs/projects.md) - Create, or view Projects with the Management API.
- [`dvc cleanup`](docs/cleanup.md) - Replace a DevCycle variable with a static value in the current version of your code. Currently only JavaScript is supported.
177
+
- [`dvc diff`](docs/diff.md) - Print a diff of DevCycle variable usage between two versions of your code.
178
+
- [`dvc environments`](docs/environments.md) - Create a new Environment for an existing Feature.
179
+
- [`dvc features`](docs/features.md) - Create, view, or modify Features with the Management API.
180
+
- [`dvc generate`](docs/generate.md) - Generate DevCycle related files.
181
+
- [`dvc help`](docs/help.md) - Display help for dvc.
182
+
- [`dvc identity`](docs/identity.md) - View or manage your DevCycle Identity.
183
+
- [`dvc keys`](docs/keys.md) - Retrieve SDK keys from the Management API.
184
+
- [`dvc login`](docs/login.md) - Log in to DevCycle.
185
+
- [`dvc logout`](docs/logout.md) - Discards any auth configuration that has been stored in the auth configuration file.
186
+
- [`dvc organizations`](docs/organizations.md) - List or switch organizations.
187
+
- [`dvc overrides`](docs/overrides.md) - Create, view, or modify Overrides for a Project with the Management API.
188
+
- [`dvc projects`](docs/projects.md) - Create, or view Projects with the Management API.
0 commit comments