Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add command to launchDevly to update the project environment and context #433

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

cdelst
Copy link
Contributor

@cdelst cdelst commented Sep 14, 2024

update the specified project and its flag configuration with the LaunchDarkly Service

Usage:
  ldcli dev-server update-project [flags]

Required flags:
      --project string   The project key

Optional flags:
      --context string   Stringified JSON representation of your context object ex. {"user": { "email": "test@gmail.com", "username": "foo", "key": "bar"}}
      --source string    environment to copy flag values from

Global flags:
  -h, --help                  Get help about any command
      --access-token string     LaunchDarkly access token with write-level access
      --analytics-opt-out       Opt out of analytics tracking
      --base-uri string         LaunchDarkly base URI (default "https://app.launchdarkly.com")
      --dev-stream-uri string   Streaming service endpoint that the dev server uses to obtain authoritative flag data. This may be a LaunchDarkly or Relay Proxy endpoint (default "https://stream.launchdarkly.com")
  -o, --output string           Command response output format in either JSON or plain text (default "plaintext")
      --port string             Port for the dev server to run on (default "8765")
$ go run . dev-server update-project --context '{"kind": "user", "key": "dev-environment"}' --source staging                

Context updated successfully to:
{
  "key": "dev-environment",
  "kind": "user"
}
Source environment updated successfully to 'staging'

Add command to launchDevly to update the project
@cdelst cdelst force-pushed the cdelst/sc-255155/add-cli-support-for-editing-a-project-2 branch from fd88964 to a73385c Compare September 14, 2024 00:27
@cdelst cdelst merged commit 1415e4a into main Sep 16, 2024
10 checks passed
@cdelst cdelst deleted the cdelst/sc-255155/add-cli-support-for-editing-a-project-2 branch September 16, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants