/ flydocs sync
Sync project configuration and artifacts with the FlyDocs server.
Synopsis
flydocs sync
Synchronizes your local project configuration and artifacts with the server.
Unlike flydocs update, sync does not wipe and replace managed
files -- it pulls incremental changes and merges them with your local state.
Options
This command has no command-specific flags. It resolves the API key automatically from the standard credential resolution order (environment variable, project credentials, global credentials).
What It Does
- Resolves credentials from the environment, project, or global store
- Pulls configuration from the server using the v2 config endpoint
- Syncs artifacts including skills, hooks, and commands
- Preserves local-only fields such as
activeContexts,activeProjects, andrepoSlug
Sync is called internally by several other commands, including
flydocs update and flydocs init. You can also
run it directly when you want to pull the latest server state without
triggering a full update cycle.
Examples
Sync the current project:
flydocs sync Sync with an API key override via environment variable:
FLYDOCS_API_KEY=fdk_abc123 flydocs sync Related Commands
flydocs update: Full update that wipes and replaces managed artifactsflydocs init: Initial setup that includes sync