@rivetkit/cli 0.0.0-06-09-refactor-rivetkit-split-workflow-context-into-workflowcontext-workflowstepcontext.e0c9540 → 0.0.0-byoc-upload.62b4807

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +10 -5
package/README.md CHANGED
@@ -9,3 +9,37 @@ npx @rivetkit/cli dev --provider supabase -- --env-file .env.local
9
9
  npx @rivetkit/cli deploy --token cloud_api_xxxxx
10
10
  npx @rivetkit/cli setup-ci
11
11
  ```
12
+
13
+ ## Upload a BYOC worker build
14
+
15
+ Use the presigned PUT URL provided for the build. No CLI login, Cloud API token,
16
+ registry credentials, or cluster access is needed.
17
+
18
+ ```sh
19
+ npx @rivetkit/cli byoc workers builds upload-presigned \
20
+ --presigned-build-url '<url>' \
21
+ --dockerfile ./Dockerfile --context .
22
+ ```
23
+
24
+ Choose exactly one input:
25
+
26
+ - `--dockerfile <path>` builds for `linux/amd64`. `--context` defaults to `.`.
27
+ - `--image <tag-or-id>` exports an existing local Linux/AMD64 Docker image.
28
+ - `--archive <path>` uploads an existing gzip-compressed `docker save` archive.
29
+ This mode does not need Docker.
30
+
31
+ Uploads require `curl`; image/build inputs also require a running Docker daemon.
32
+ All inputs are validated before upload: one Linux/AMD64 image, matching layer
33
+ checksums, at most 5 GiB compressed and 32 GiB uncompressed. OCI-only archives and
34
+ `docker export` output are not supported. Existing archives are uploaded unchanged.
35
+
36
+ Quote the URL and keep it private; it grants temporary upload access. Any signed
37
+ size/header requirements must match the generated archive. Redirects are rejected,
38
+ transient upload failures get bounded retries with identical bytes, and expired or
39
+ rejected URLs fail clearly. Temporary archive files are removed on completion,
40
+ failure, or a handled Ctrl-C. Docker build cache and local images are retained.
41
+
42
+ Progress goes to stderr. On success, stdout contains JSON with `uploaded`,
43
+ `architecture`, `imageId`, `sha256`, `sizeBytes`, and `uncompressedSizeBytes`.
44
+ This command only uploads the archive. The API/UI handles build finalization;
45
+ upload success does not mean the worker was finalized or deployed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/cli",
3
- "version": "0.0.0-06-09-refactor-rivetkit-split-workflow-context-into-workflowcontext-workflowstepcontext.e0c9540",
3
+ "version": "0.0.0-byoc-upload.62b4807",
4
4
  "description": "Rivet Cloud CLI",
5
5
  "license": "LicenseRef-RivetEnterprise",
6
6
  "main": "index.js",
@@ -17,10 +17,15 @@
17
17
  "package.json",
18
18
  "README.md"
19
19
  ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/rivet-dev/actors.git",
23
+ "directory": "rivetkit-typescript/packages/cli"
24
+ },
20
25
  "optionalDependencies": {
21
- "@rivetkit/cli-darwin-arm64": "0.0.0-06-09-refactor-rivetkit-split-workflow-context-into-workflowcontext-workflowstepcontext.e0c9540",
22
- "@rivetkit/cli-darwin-x64": "0.0.0-06-09-refactor-rivetkit-split-workflow-context-into-workflowcontext-workflowstepcontext.e0c9540",
23
- "@rivetkit/cli-linux-arm64-musl": "0.0.0-06-09-refactor-rivetkit-split-workflow-context-into-workflowcontext-workflowstepcontext.e0c9540",
24
- "@rivetkit/cli-linux-x64-musl": "0.0.0-06-09-refactor-rivetkit-split-workflow-context-into-workflowcontext-workflowstepcontext.e0c9540"
26
+ "@rivetkit/cli-darwin-arm64": "0.0.0-byoc-upload.62b4807",
27
+ "@rivetkit/cli-darwin-x64": "0.0.0-byoc-upload.62b4807",
28
+ "@rivetkit/cli-linux-arm64-musl": "0.0.0-byoc-upload.62b4807",
29
+ "@rivetkit/cli-linux-x64-musl": "0.0.0-byoc-upload.62b4807"
25
30
  }
26
31
  }