buildx-cli 1.8.16 → 1.8.17
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.
- package/README.md +53 -0
- package/dist/README.md +53 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -527,6 +527,59 @@ Key options:
|
|
|
527
527
|
npx buildx-cli function:diff --project-id hello-world --target-dir ./.sandbox/buildx-cli
|
|
528
528
|
```
|
|
529
529
|
|
|
530
|
+
#### `function:revisions <function-name>`
|
|
531
|
+
Lists function revisions and shows which revision is `live` plus alias mapping.
|
|
532
|
+
|
|
533
|
+
Key options:
|
|
534
|
+
- `-p, --project-id <id>`
|
|
535
|
+
- `-u, --api-url <url>`
|
|
536
|
+
- `--json`
|
|
537
|
+
|
|
538
|
+
```bash
|
|
539
|
+
npx buildx-cli function:revisions process-order --project-id hello-world
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
#### `function:publish <function-name> <revision>`
|
|
543
|
+
Publishes a revision to live (or custom alias).
|
|
544
|
+
|
|
545
|
+
Key options:
|
|
546
|
+
- `-p, --project-id <id>`
|
|
547
|
+
- `-u, --api-url <url>`
|
|
548
|
+
- `--alias <alias>` (default: `live`)
|
|
549
|
+
|
|
550
|
+
```bash
|
|
551
|
+
npx buildx-cli function:publish process-order r12 --project-id hello-world
|
|
552
|
+
npx buildx-cli function:publish process-order 12 --project-id hello-world --alias stable
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
#### `function:alias:set <function-name> <alias> <revision>`
|
|
556
|
+
Sets alias pointer directly to a revision.
|
|
557
|
+
|
|
558
|
+
Key options:
|
|
559
|
+
- `-p, --project-id <id>`
|
|
560
|
+
- `-u, --api-url <url>`
|
|
561
|
+
|
|
562
|
+
```bash
|
|
563
|
+
npx buildx-cli function:alias:set process-order canary r15 --project-id hello-world
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
#### `function:invoke <function-name>`
|
|
567
|
+
Invokes function with optional `revision` or `alias`.
|
|
568
|
+
|
|
569
|
+
Key options:
|
|
570
|
+
- `-p, --project-id <id>`
|
|
571
|
+
- `-u, --api-url <url>`
|
|
572
|
+
- `-X, --method <method>`
|
|
573
|
+
- `--revision <revision>`
|
|
574
|
+
- `--alias <alias>`
|
|
575
|
+
- `--data <json>`
|
|
576
|
+
- `--data-file <path>`
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
npx buildx-cli function:invoke process-order --project-id hello-world --alias live --data '{"order_id":"A001"}'
|
|
580
|
+
npx buildx-cli function:invoke process-order --project-id hello-world --revision r12 --data-file ./payload.json
|
|
581
|
+
```
|
|
582
|
+
|
|
530
583
|
### Configuration Commands
|
|
531
584
|
|
|
532
585
|
#### `config:setup`
|
package/dist/README.md
CHANGED
|
@@ -527,6 +527,59 @@ Key options:
|
|
|
527
527
|
npx buildx-cli function:diff --project-id hello-world --target-dir ./.sandbox/buildx-cli
|
|
528
528
|
```
|
|
529
529
|
|
|
530
|
+
#### `function:revisions <function-name>`
|
|
531
|
+
Lists function revisions and shows which revision is `live` plus alias mapping.
|
|
532
|
+
|
|
533
|
+
Key options:
|
|
534
|
+
- `-p, --project-id <id>`
|
|
535
|
+
- `-u, --api-url <url>`
|
|
536
|
+
- `--json`
|
|
537
|
+
|
|
538
|
+
```bash
|
|
539
|
+
npx buildx-cli function:revisions process-order --project-id hello-world
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
#### `function:publish <function-name> <revision>`
|
|
543
|
+
Publishes a revision to live (or custom alias).
|
|
544
|
+
|
|
545
|
+
Key options:
|
|
546
|
+
- `-p, --project-id <id>`
|
|
547
|
+
- `-u, --api-url <url>`
|
|
548
|
+
- `--alias <alias>` (default: `live`)
|
|
549
|
+
|
|
550
|
+
```bash
|
|
551
|
+
npx buildx-cli function:publish process-order r12 --project-id hello-world
|
|
552
|
+
npx buildx-cli function:publish process-order 12 --project-id hello-world --alias stable
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
#### `function:alias:set <function-name> <alias> <revision>`
|
|
556
|
+
Sets alias pointer directly to a revision.
|
|
557
|
+
|
|
558
|
+
Key options:
|
|
559
|
+
- `-p, --project-id <id>`
|
|
560
|
+
- `-u, --api-url <url>`
|
|
561
|
+
|
|
562
|
+
```bash
|
|
563
|
+
npx buildx-cli function:alias:set process-order canary r15 --project-id hello-world
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
#### `function:invoke <function-name>`
|
|
567
|
+
Invokes function with optional `revision` or `alias`.
|
|
568
|
+
|
|
569
|
+
Key options:
|
|
570
|
+
- `-p, --project-id <id>`
|
|
571
|
+
- `-u, --api-url <url>`
|
|
572
|
+
- `-X, --method <method>`
|
|
573
|
+
- `--revision <revision>`
|
|
574
|
+
- `--alias <alias>`
|
|
575
|
+
- `--data <json>`
|
|
576
|
+
- `--data-file <path>`
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
npx buildx-cli function:invoke process-order --project-id hello-world --alias live --data '{"order_id":"A001"}'
|
|
580
|
+
npx buildx-cli function:invoke process-order --project-id hello-world --revision r12 --data-file ./payload.json
|
|
581
|
+
```
|
|
582
|
+
|
|
530
583
|
### Configuration Commands
|
|
531
584
|
|
|
532
585
|
#### `config:setup`
|