/ flydocs scan
AI-generate project context files from your codebase.
Synopsis
flydocs scan [flags]
Triggers a server-side AI analysis of your repository to generate project
context files. The scan produces a project.md with your
project's scope, stack, and conventions, and a service.json
describing the service topology. Both files are written to
flydocs/context/.
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--repo | string | -- | Full repository name (owner/repo). Auto-detects from the git remote if omitted. |
--force | boolean | false | Overwrite existing context files. Without this flag, existing files are preserved. |
What It Does
- Detects the repository from the git remote origin, or uses the
--repoflag - Sends the scan request to the FlyDocs relay API for server-side AI analysis
- Generates project.md containing the project's description, tech stack, coding standards, and architectural decisions
- Generates service.json describing the service topology, dependencies, and cross-repo relationships
- Writes output to
flydocs/context/in your project directory
The generated context is what FlyDocs uses to give AI coding tools awareness of your project. You can edit these files after generation -- they are yours to maintain. On cloud tier, the portal is the source of truth and local copies are refreshed on sync.
Examples
Scan the current repository:
flydocs scan Scan with an explicit repository name:
flydocs scan --repo myorg/my-project Force-overwrite existing context files:
flydocs scan --force Related Commands
flydocs init: Use--scanto run a scan as part of initializationflydocs sync: Pull context updates from the cloud portal