/ flydocs sync

Sync project configuration and artifacts with the FlyDocs server.

Synopsis

terminal
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

  1. Resolves credentials from the environment, project, or global store
  2. Pulls configuration from the server using the v2 config endpoint
  3. Syncs artifacts including skills, hooks, and commands
  4. Preserves local-only fields such as activeContexts, activeProjects, and repoSlug

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:

terminal
flydocs sync

Sync with an API key override via environment variable:

terminal
FLYDOCS_API_KEY=fdk_abc123 flydocs sync

Related Commands