Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions flash/apps/deploy-apps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ flash deploy
uv run flash deploy
```

<Note>
The Flash CLI manages endpoint and app lifecycle operations: `deploy`, `undeploy`, `update`, and creating or deleting apps and environments. If you call these methods directly from the SDK, Flash raises a `FlashUsageError` that names the equivalent `flash` command. Routing lifecycle changes through the CLI keeps the build and manifest pipeline aligned with Flash's local state tracking. Direct SDK calls bypass that orchestration and can leave deployments in an inconsistent state.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #346 (feat(sdk): make endpoint/app lifecycle operations CLI-only) adds a cli_only() decorator in core/cli_context.py and applies it to ServerlessResource.{deploy,undeploy,update}, NetworkVolume.deploy, and FlashApp create/delete/environment methods. The decorator raises FlashUsageError naming the equivalent flash command when called outside the CLI, because direct SDK calls bypass the build/manifest pipeline and local state tracking. This Note documents that behavior.

Source: runpod/flash#346

</Note>

This command performs the following steps:

1. **Build**: Packages your code, dependencies, and manifest.
Expand Down
4 changes: 4 additions & 0 deletions release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ description: "New features, fixes, and improvements for the Runpod platform."

<Accordion title="June 2026">

<h4><Badge color="red">Breaking</Badge> Lifecycle operations are now CLI-only</h4>

Flash SDK methods for endpoint and app lifecycle operations—deploy, undeploy, update, and creating or deleting apps and environments—now raise a `FlashUsageError` that points to the equivalent `flash` command. Run these operations through the [Flash CLI](/flash/cli/overview) instead, which keeps the build and manifest pipeline and local state tracking consistent.

<h4><Badge color="green">New Release</Badge> High-Performance Network Volumes now available</h4>

You can now attach high-performance network volumes to [Pods, Serverless endpoints, and Instant Clusters](/storage/network-volumes) for significantly faster model load times. Look for the purple diamond icon to identify compatible datacenters.
Expand Down
Loading