pull_all()
Bring everything that syncs up to date with the project on Framework Cloud.
One call pulls the project's packages, its skills, and its data registry. Each part is read with the project token, and the changes are listed together, grouped by part (Packages, Skills, Data registry). Then asks "Apply these changes?" once.
Packages: new ones are added to pyproject.toml and installed (uv, else pip). Local
packages are never removed. Skills: missing ones are added and unedited ones updated, as
pull_skills() does. Data registry: new entries are written into the settings' data
section, as pull_data_registry() does; data files never move. Local edits win
everywhere: a package or entry whose local settings differ, and a locally edited skill,
are kept unless overwrite=True (edited skills are backed up first).
Usage
pull_all(
project_path: str | Path = '.',
overwrite: bool = False,
confirm: bool | None = None,
dry_run: bool = False,
) -> dict[str, Any]
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| project_path | str | Path | '.' |
The project's root directory. Default: the current directory. |
| overwrite | bool | False |
Use Cloud's settings for differing packages and data entries, and replace locally edited skills. |
| confirm | bool | None | None |
True applies without asking; False cancels. None asks in a console. |
| dry_run | bool | False |
List the changes and write nothing. |
Value
A dict: packages (revision, and added, changed, differ_kept,
and kept_local, as names), skills (the pull_skills() result: the plan,
or what was applied), data_registry (revision, and added, changed,
differ_kept, and kept_local), applied (the parts applied), failed
(a reason for each part that wasn't), dry_run, and message.
Details
The revisions pulled are kept in .framework/setup.lock.json (packages) and
.framework/data.lock.json (data registry) for push_all(). When a part cannot be
read or applied, the others still proceed, and the error names which parts were applied
and which were skipped.
Raises
CloudError: Without a project token, offline, or when the server has no setup endpoint (nothing changes then), and when a part couldn't be applied.FrameworkError: Without a console and withoutconfirm=Trueordry_run=True.