edgeone 1.0.17 → 1.0.19

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 CHANGED
@@ -146,12 +146,13 @@ This section provides guidance on integrating EdgeOne CLI into your CI/CD pipeli
146
146
  The deploy command allows you to deploy a folder or ZIP package directly to EdgeOne Pages from your CI/CD pipeline without using Git-based deployment.
147
147
 
148
148
  ```plaintext
149
- edgeone pages deploy <directoryOrZip> -t <token>
149
+ edgeone pages deploy <directoryOrZip> -n <projectName> -t <token>
150
150
  ```
151
151
 
152
152
  #### Parameters
153
153
 
154
154
  - `<directoryOrZip>`: Path of folder or ZIP package to deploy (required)
155
+ - `-n, --name`: Project name for deployment (creates new or updates existing project) (required)
155
156
  - `-t, --token`: API Token for CI/CD pipelines (required)
156
157
  - `-e, --env`: Environment to deploy to, choices: 'production' or 'preview' (default: 'production')
157
158
 
@@ -159,10 +160,10 @@ edgeone pages deploy <directoryOrZip> -t <token>
159
160
 
160
161
  ```plaintext
161
162
  # Basic CI deployment to production
162
- edgeone pages deploy ./dist -t $EDGEONE_API_TOKEN
163
+ edgeone pages deploy ./dist -n edgeone-pages-project -t $EDGEONE_API_TOKEN
163
164
 
164
165
  # CI deployment to preview environment
165
- edgeone pages deploy ./build.zip -e preview -t $EDGEONE_API_TOKEN
166
+ edgeone pages deploy ./build.zip -n edgeone-pages-project -e preview -t $EDGEONE_API_TOKEN
166
167
  ```
167
168
 
168
169
  #### Obtaining an API Token
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  var _a;
3
- "use strict";
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;