repo:init
Initialize or adopt the selected local repository at a directory; this command does not choose a hosted default workspace or fork.
Reference for flywheel repo:init.
Initialize or adopt only the selected local .flywheel repository without changing surrounding project files. This command does not choose a hosted default workspace or fork. If the directory's parent is a symbolic link, such as /tmp on macOS, the command refuses with repository_target_parent_symlink and creates nothing; run it again with the real path it suggests, such as /private/tmp/example.
Command Group
Local Repository
Summary
Initialize or adopt the selected local repository at a directory; this command does not choose a hosted default workspace or fork.
Usage
flywheel repo:init [FLAGS] [directory]Arguments
| Argument | Required | Choices | Description |
|---|---|---|---|
[directory] | No | Target repository directory. |
Required flags
None.
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--personal | Use the configured personal repository. | |||
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Use a configured CLI profile for this invocation. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Skip confirmation prompts for destructive operations. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Initialize the current existing project directory; Flywheel stores graph history only in .flywheel.
flywheel repo:initCreate a missing project directory or initialize an existing supported directory.
flywheel repo:init <directory>Request stable JSON output for automation.
flywheel repo:init --format=jsonInitialize or adopt the default personal repository and save its path in the user TOML config.
flywheel repo:init --personal