push_skills()
Send locally edited skills to Framework Cloud as new versions of your own skills.
Each skill tracked in .framework/skills.lock.json with a copy that differs from
the hash the last sync wrote there is pushed. A skill that changed on Cloud since then
is refused with "Pull first"; force=True pushes it anyway, as the latest version.
So is a skill retargeted with skills_move(), which has no version to push onto
yet. A built-in Framework skill is never changed: an edited one is saved as your own
skill, and the lock tracks it as that skill from then on. Folders the lock doesn't
track are listed with the skills_sync() call that adds one, or, when a tracked
copy's folder is gone, the skills_move() call that records a move. Needs
fw.cloud_login(). A skill whose copies in several assistant folders differ, or
with a tracked copy missing, fails with the skills_copy() call that makes them
agree; so does one whose files can't be read. The other skills are pushed.
Before pushing, a warning names what each new version affects, then asks to continue.
Without a console, pass confirm=True.
Usage
push_skills(
project_path: str | Path = '.',
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. |
| force | bool | False |
Push skills that 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 |
Report what would be pushed and send nothing. |
Value
A dict: dry_run, skills (each with name, status, paths,
reason, hint, reason_code, hint_key, and hint_args; status is
pushed, current (Cloud already has it), refused, untracked, missing, cancelled, or
failed), steps, counts
by status, and message (the summary line).
Raises
CloudError: When not signed in to Framework Cloud.FrameworkError: Without a console and withoutconfirm=True.