Skip to content
Framework

Packages

push_all()

Send everything that syncs to the project on Framework Cloud.

One call pushes the project's package list (from pyproject.toml), its locally edited skills, and its data registry. Cloud previews each part first (as a dry run), and the changes are listed together, grouped by part (Packages, Skills, Data registry), with what each push affects: new setups, zips, and Update on GitHub use the package list and data registry, and a skill's new version is used wherever it is attached. Then asks "Push these changes?" once. framework-py and the unpinned workflow tool packages every project gets are not sent.

Packages and data entries only on Cloud stay there unless remove=True. When a part changed on Cloud since this project last pulled it (the revisions in .framework/setup.lock.json and .framework/data.lock.json, and each skill's in .framework/skills.lock.json), that part is refused with "Pull first"; force=True replaces Cloud's newer changes. Edited skills need cloud_login(); packages and the data registry go with the project token. Only data definitions are sent, never data files or hashes.

Usage

push_all(
    project_path: str | Path = '.',
    remove: bool = False,
    force: 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.

remove bool False

Remove packages and data entries from Cloud that this project does not have.

force bool False

Push even when a part changed on Cloud since the last pull.

confirm bool | None None

True pushes without asking; False cancels. None asks in a console.

dry_run bool False

List the changes and send nothing.

Value

A dict: packages and data_registry (each with revision and Cloud's changes: added, changed, removed, and kept), skills (each skill's name, status, and path), applied (the parts pushed), failed (a reason for each part that failed), dry_run, and message.

Details

When a part cannot be pushed, the others still proceed, and the error names which parts were pushed and which were skipped. A push resolves the project again from its blueprint's latest version.

Raises

  • CloudError: Without a project token, offline, or when the server has no setup endpoint (nothing changes then), and when a part could not be pushed.
  • FrameworkError: Without a console and without confirm=True or dry_run=True.

Search guides and reference for R, Python, Stata, the CLI, and Framework Cloud.