Repository navigation
docs: explain GitOps resource adoption - #1451
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
Contributor
Devin Review🟢 Devin Review found nothing to fix · View findings |
Contributor
|
🌿 Preview your docs: https://vapi-preview-01a1ff23-f93e-765c-ac42-8877dcfac2fa.docs.buildwithfern.com |
steven-diaz-vapi
requested review from
a team and
peter-vapi
and removed request for
a team
November 23, 2026 21:11
peter-vapi
approved these changes
Nov 24, 2026
peter-vapi
left a comment
Contributor
There was a problem hiding this comment.
Nothing blocking, just a couple suggestions to increase clarity
|
|
||
| ## Adopt an existing resource | ||
|
|
||
| Use adoption to link a local file to a resource that already exists on the platform, such as one created in the dashboard or one whose local file you renamed or moved. The local file must exist and not already have a UUID mapping. |
Contributor
There was a problem hiding this comment.
Might be nice to draw the analog to terraform import for people to quickly understand what this means
Comment on lines
+130
to
+141
| Preview the mapping with `--dry-run`; it looks up candidates without saving the mapping or changing platform resources: | ||
|
|
||
| ```bash | ||
| npm run push -- my-org --dry-run --adopt support/intake | ||
| ``` | ||
|
|
||
| To deploy using a specific existing resource, use its UUID: | ||
|
|
||
| ```bash | ||
| npm run apply -- my-org --adopt support/intake=12345678-1234-1234-1234-123456789abc | ||
| ``` | ||
|
|
Contributor
There was a problem hiding this comment.
A worked example would be useful to show which situation this might apply to and the before/after state
Contributor
Author
Merge activity
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Documents the
--adoptflag shipped in VapiAI/gitops#104.fern/config-as-code.mdx: new "Adopt an existing resource" section covering when to adopt (dashboard-created resources, renamed or moved files),--adopt <resourceId>[=<uuid>]onpush/apply, the resource ID format, matching without a UUID,--dry-runpreviews, and--dry-run --jsonoutput for automation.src/adopt.ts,src/link-preflight.tsandsrc/push.tson gitopsmain.metadata.gitops.folderPath). Nothing in the dashboard reads that field yet.Testing Steps
npx --yes fern-api check: 0 errorsImplemented in session Update docs for recent product changes
Review with Devin · Open in Devin Desktop