---
title: "Push Command | skene Docs | Skene"
description: "The push command uploads your Skene bundle plus the latest Supabase trigger migration to Skene Cloud."
url: https://www.skene.ai/resources/docs/skene/guides/push
doc_version: "305ac807374b"
last_updated: 2026-10-30
---

The `push` command uploads your Skene bundle (files under the configured output directory) plus the latest Supabase trigger migration to Skene Cloud.

`push` does not generate anything. It uploads existing bundle files, including `journey.yaml`. Engine metadata and trigger migrations are included when present.

## Prerequisites

Before running `push`, you need:

- **Existing bundle files** under the configured `output_dir`, typically `skene-context/`. A journey-only bundle is supported.
- **Optional engine and trigger artifacts.** If present, `engine.yaml` supplies manifest metadata and the latest eligible migration under `supabase/migrations/` joins the upload.

**Configuration:** `output_dir` comes from `.skene.config`, `SKENE_OUTPUT_DIR`, or sticky detection (see [configuration](https://www.skene.ai/resources/docs/skene/guides/configuration)). Sticky bundle layout is resolved against the **`PATH` you pass to `push`**, not only your current shell directory.

**Auth:** `skene login` or `SKENE_UPSTREAM_API_KEY` for upstream API calls.

## Basic usage

From the project root:

```bash
uvx skene push
```

Target another directory:

```bash
uvx skene push /path/to/project
```

With an explicit upstream (otherwise uses config / default Skene Cloud):

```bash
uvx skene push --upstream https://skene.ai/workspace/my-app
```

## Flag reference

| Flag              | Short | Description                                                                                   |
| ----------------- | ----- | --------------------------------------------------------------------------------------------- |
| `PATH`            |       | Project root (default: `.`). Used for artifact paths and sticky `output_dir` resolution.      |
| `--upstream TEXT` | `-u`  | Workspace URL (e.g. `https://skene.ai/workspace/my-app`). Can also live in `.skene.config`.   |
| `--quiet`         | `-q`  | Suppress non-error output.                                                                    |
| `--debug`         |       | Diagnostic messages and LLM debug logging path.                                               |

## How it works

1. **Collect:** Reads the resolved bundle directory. Engine metadata is optional; missing or unreadable metadata does not by itself block the upload.
2. **Payload:** Builds a manifest and a `files` list: **all files** under the bundle directory (`output_dir`), plus the latest trigger SQL, each as `{ "path", "content" }` relative to the project root. Missing optional files (for example `feature-registry.json`) are simply omitted from the upload.
3. **API:** `POST` to Skene Cloud `/api/v1/push` with `{ "manifest", "files" }`. Success responses include `artifact_count`, `updated_paths`, and `push_id` where applicable.

## Publishing a journey from the TUI

A normal CLI analysis writes the journey locally. In [current source revision 8eb7942](https://github.com/SkeneTechnologies/skene/tree/8eb7942f569a4f99387e5c05b086c7babc8ce3d3), a linked TUI run using the Skene provider can publish automatically when its workspace has no journey yet. Other providers and workspaces that already have a journey skip this first-publication path. Explicit `skene push` remains available to upload the existing bundle.

## Upstream authentication

```bash
uvx skene login --upstream https://skene.ai/workspace/my-app
```

Upstream URL resolution: `--upstream` → `upstream` in `.skene.config` → default hosted API when unset.

## Next steps

- [Login](https://www.skene.ai/resources/docs/skene/guides/login): Authenticate with Skene Cloud
- [Status](https://www.skene.ai/resources/docs/skene/guides/status): Validate engine vs migrations
- [Configuration](https://www.skene.ai/resources/docs/skene/guides/configuration): `output_dir` and sticky bundles
- [CLI Reference](https://www.skene.ai/resources/docs/skene/reference/cli): All commands

## Sitemap

- [Markdown sitemap](https://www.skene.ai/sitemap.md): every page on this site, with its markdown counterpart.
- [Index for language models](https://www.skene.ai/llms.txt): the same set as a link-dense index.
- [Full corpus](https://www.skene.ai/llms-full.txt): reference content concatenated as plain text.
