Skip to content

Commit d9ed45f

Browse files
committed
PR changes
1 parent 946865c commit d9ed45f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

apps/deploy.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Once you deploy an app on Kernel, you can schedule its actions on a job or run t
1313

1414
Use our CLI from the root directory of your project:
1515
```bash
16-
# entrypoint_file_name should be where you've defined your Kernel app
1716
kernel deploy <entrypoint_file_name>
1817
```
1918

@@ -40,8 +39,8 @@ kernel deploy github \
4039
```
4140

4241
#### Notes
43-
44-
- The CLI automatically downloads and extracts the GitHub source, prunes large dependency folders (like `node_modules`), and uploads your app for deployment.
42+
- **`--path` vs `--entrypoint`:** Use `--path` to specify a subdirectory within the repo (useful for monorepos), and `--entrypoint` for the path to your app's entry file relative to that directory (or repo root if no `--path` is specified).
43+
- The CLI automatically downloads and extracts the GitHub source code and uploads your app for deployment.
4544
- For private repositories, provide a `--github-token` or set the `GITHUB_TOKEN` environment variable.
4645

4746
## Environment variables
@@ -60,15 +59,15 @@ kernel deploy my_app.py --env MY_ENV_VAR=my_value # Can add multiple env vars de
6059

6160
## Deployment notes
6261

63-
- **The entrypoint file and dependency manifest (`package.json` for JS/TS, `pyproject.toml` for Python) must both be in the root directory of your project.**
62+
- **The dependency manifest (`package.json` for JS/TS, `pyproject.toml` for Python) must be present in the root directory of your project.**
6463
- View deployment logs using: `kernel deploy logs <deployment_id> --follow`
6564
- Kernel assumes the root directory contains at least this file structure:
6665

6766
<CodeGroup>
6867
```bash Typescript/Javascript
6968
project-root/
7069
├─ .gitignore # Exclude dependency folders like node_modules
71-
├─ my_app.ts # Entrypoint file
70+
├─ my_app.ts # Entrypoint file (can be located in a subdirectory, e.g. src/my_app.ts)
7271
├─ package.json
7372
├─ tsconfig.json # If using TypeScript
7473
└─ bun.lock | package-lock.json | pnpm-lock.yaml # One of these lockfiles

quickstart.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ kernel deploy main.py # --env ANTHROPIC_API_KEY=XXX if Browser Use or Computer U
7171

7272
</CodeGroup>
7373

74-
**Advanced:** You can also [deploy directly from GitHub](/apps/deploy#from-github) without downloading code locally.
75-
7674
## 5. Invoke the app
7775

7876
<CodeGroup>

0 commit comments

Comments
 (0)