UNPKG

13 kBMarkdownView Raw
1# eas-cli
2
3EAS command line tool
4
5[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6[![Version](https://img.shields.io/npm/v/eas-cli.svg)](https://npmjs.org/package/eas-cli)
7[![Downloads/week](https://img.shields.io/npm/dw/eas-cli.svg)](https://npmjs.org/package/eas-cli)
8[![License](https://img.shields.io/npm/l/eas-cli.svg)](https://github.com/expo/eas-cli/blob/main/package.json)
9
10* [Installation](#installation)
11* [Usage](#usage)
12* [Commands](#commands)
13
14# Installation
15
16```sh
17npm install -g eas-cli
18# or
19yarn global add eas-cli
20```
21
22# Usage
23
24```sh
25eas COMMAND
26# runs the command
27eas (-v|--version|version)
28# prints the version
29eas --help COMMAND
30# outputs help for specific command
31```
32
33# Commands
34
35<!-- commands -->
36* [`eas account:login`](#eas-accountlogin)
37* [`eas account:logout`](#eas-accountlogout)
38* [`eas account:view`](#eas-accountview)
39* [`eas analytics [STATUS]`](#eas-analytics-status)
40* [`eas build`](#eas-build)
41* [`eas build:cancel [BUILD_ID]`](#eas-buildcancel-build_id)
42* [`eas build:configure`](#eas-buildconfigure)
43* [`eas build:list`](#eas-buildlist)
44* [`eas build:view [BUILD_ID]`](#eas-buildview-build_id)
45* [`eas credentials`](#eas-credentials)
46* [`eas device:create`](#eas-devicecreate)
47* [`eas device:list`](#eas-devicelist)
48* [`eas device:view [UDID]`](#eas-deviceview-udid)
49* [`eas help [COMMAND]`](#eas-help-command)
50* [`eas secret:create`](#eas-secretcreate)
51* [`eas secret:delete`](#eas-secretdelete)
52* [`eas secret:list`](#eas-secretlist)
53* [`eas submit --platform=(android|ios)`](#eas-submit---platformandroidios)
54* [`eas webhook:create`](#eas-webhookcreate)
55* [`eas webhook:delete [ID]`](#eas-webhookdelete-id)
56* [`eas webhook:list`](#eas-webhooklist)
57* [`eas webhook:update`](#eas-webhookupdate)
58* [`eas webhook:view ID`](#eas-webhookview-id)
59
60## `eas account:login`
61
62log in with your Expo account
63
64```
65USAGE
66 $ eas account:login
67
68ALIASES
69 $ eas login
70```
71
72_See code: [build/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/account/login.ts)_
73
74## `eas account:logout`
75
76log out
77
78```
79USAGE
80 $ eas account:logout
81
82ALIASES
83 $ eas logout
84```
85
86_See code: [build/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/account/logout.ts)_
87
88## `eas account:view`
89
90show the username you are logged in as
91
92```
93USAGE
94 $ eas account:view
95
96ALIASES
97 $ eas whoami
98```
99
100_See code: [build/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/account/view.ts)_
101
102## `eas analytics [STATUS]`
103
104View or change analytics settings
105
106```
107USAGE
108 $ eas analytics [STATUS]
109```
110
111_See code: [build/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/analytics.ts)_
112
113## `eas build`
114
115Start a build
116
117```
118USAGE
119 $ eas build
120
121OPTIONS
122 -p, --platform=(android|ios|all)
123 --clear-cache Clear cache before the build
124 --local Run build locally [experimental]
125 --non-interactive Run command in --non-interactive mode
126 --profile=profile [default: release] Name of the build profile from eas.json
127 --skip-credentials-check Skip validation of build credentials
128 --skip-project-configuration Skip project configuration
129 --[no-]wait Wait for build(s) to complete
130```
131
132_See code: [build/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/build/index.ts)_
133
134## `eas build:cancel [BUILD_ID]`
135
136Cancel a build.
137
138```
139USAGE
140 $ eas build:cancel [BUILD_ID]
141```
142
143_See code: [build/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/build/cancel.ts)_
144
145## `eas build:configure`
146
147Configure the project to support EAS Build.
148
149```
150USAGE
151 $ eas build:configure
152
153OPTIONS
154 -p, --platform=(android|ios|all) Platform to configure
155 --allow-experimental Enable experimental configuration steps.
156```
157
158_See code: [build/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/build/configure.ts)_
159
160## `eas build:list`
161
162list all builds for your project
163
164```
165USAGE
166 $ eas build:list
167
168OPTIONS
169 --limit=limit
170 --platform=(all|android|ios)
171 --status=(in-queue|in-progress|errored|finished|canceled)
172```
173
174_See code: [build/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/build/list.ts)_
175
176## `eas build:view [BUILD_ID]`
177
178view a build for your project
179
180```
181USAGE
182 $ eas build:view [BUILD_ID]
183```
184
185_See code: [build/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/build/view.ts)_
186
187## `eas credentials`
188
189Manage your credentials
190
191```
192USAGE
193 $ eas credentials
194```
195
196_See code: [build/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/credentials.ts)_
197
198## `eas device:create`
199
200register new Apple Devices to use for internal distribution
201
202```
203USAGE
204 $ eas device:create
205```
206
207_See code: [build/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/device/create.ts)_
208
209## `eas device:list`
210
211list all registered devices for your account
212
213```
214USAGE
215 $ eas device:list
216
217OPTIONS
218 --apple-team-id=apple-team-id
219```
220
221_See code: [build/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/device/list.ts)_
222
223## `eas device:view [UDID]`
224
225view a device for your project
226
227```
228USAGE
229 $ eas device:view [UDID]
230```
231
232_See code: [build/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/device/view.ts)_
233
234## `eas help [COMMAND]`
235
236display help for eas
237
238```
239USAGE
240 $ eas help [COMMAND]
241
242ARGUMENTS
243 COMMAND command to show help for
244
245OPTIONS
246 --all see all commands in CLI
247```
248
249_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.0/src/commands/help.ts)_
250
251## `eas secret:create`
252
253Create an environment secret on the current project or owner account.
254
255```
256USAGE
257 $ eas secret:create
258
259OPTIONS
260 --name=name Name of the secret
261 --scope=(account|project) [default: project] Scope for the secret
262 --value=value Value of the secret
263```
264
265_See code: [build/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/secret/create.ts)_
266
267## `eas secret:delete`
268
269Delete an environment secret by ID.
270
271```
272USAGE
273 $ eas secret:delete
274
275OPTIONS
276 --id=id ID of the secret to delete
277
278DESCRIPTION
279 Unsure where to find the secret's ID? Run eas secrets:list
280```
281
282_See code: [build/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/secret/delete.ts)_
283
284## `eas secret:list`
285
286Lists environment secrets available for your current app
287
288```
289USAGE
290 $ eas secret:list
291```
292
293_See code: [build/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/secret/list.ts)_
294
295## `eas submit --platform=(android|ios)`
296
297Submits build artifact to app store
298
299```
300USAGE
301 $ eas submit --platform=(android|ios)
302
303OPTIONS
304 -p, --platform=(android|ios) For which platform you want to submit a build
305
306 Android specific options=android-package Android package name (default: expo.android.package
307 from app config)
308
309 iOS specific options=app-name The name of your app as it will appear on the App
310 Store (default: expo.name from app config)
311
312 iOS specific options=apple-id Your Apple ID username (you can also set
313 EXPO_APPLE_ID env variable)
314
315 iOS specific options=apple-team-id Your Apple Developer Team ID
316
317 iOS specific options=asc-app-id App Store Connect unique application Apple ID
318 number. Providing this param results in skipping
319 app creation step. Learn more:
320 https://expo.fyi/asc-app-id
321
322 iOS specific options=bundle-identifier Your iOS Bundle Identifier (default:
323 expo.ios.bundleIdentifier from app config)
324
325 iOS specific options=company-name The name of your company, needed only for the first
326 upload of any app to App Store
327
328 --id=id ID of the build to submit
329
330 Android specific options=key Path to the JSON key used to authenticate with
331 Google Play
332
333 iOS specific options=language [default: en-US] Primary language (e.g. English,
334 German, ...)
335
336 --latest Submit the latest build for specified platform
337
338 --path=path Path to the .apk/.aab file
339
340 Android specific options=(completed|draft|halted|inProgress) [default: completed] Release status (used when
341 uploading new APKs/AABs)
342
343 iOS specific options=sku An unique ID for your app that is not visible on
344 the App Store, will be generated unless provided
345
346 Android specific options=(production|beta|alpha|internal|rollout) [default: internal] The track of the application to
347 use
348
349 Android specific options=(apk|aab) Android archive type
350
351 --url=url App archive url
352
353 --verbose Always print logs from Submission Service
354
355ALIASES
356 $ eas build:submit
357
358EXAMPLES
359 $ eas submit --platform=ios
360 - Fully interactive iOS submission
361
362 $ eas submit --platform=android
363 - Fully interactive Android submission
364
365 $ eas submit -p android --latest --key=/path/to/google-services.json
366 - Minimal non-interactive Android submission, however it can ask you for other params if not specified
367
368 $ EXPO_APPLE_APP_SPECIFIC_PASSWORD=xxx eas submit -p ios --latest --apple-id=user@example.com --asc-app-id=1234567890,
369 - Minimal non-interactive iOS submission, assuming you already have an app in App Store Connect
370 and provide its App ID
371```
372
373_See code: [build/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/submit.ts)_
374
375## `eas webhook:create`
376
377Create a webhook on the current project.
378
379```
380USAGE
381 $ eas webhook:create
382
383OPTIONS
384 --event=(BUILD) [default: BUILD] Event type that triggers the webhook
385
386 --secret=secret Secret used to create a hash signature of the request payload, provided in the 'Expo-Signature'
387 header.
388
389 --url=url Webhook URL
390```
391
392_See code: [build/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/webhook/create.ts)_
393
394## `eas webhook:delete [ID]`
395
396Delete a webhook on the current project.
397
398```
399USAGE
400 $ eas webhook:delete [ID]
401
402ARGUMENTS
403 ID ID of the webhook to delete
404```
405
406_See code: [build/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/webhook/delete.ts)_
407
408## `eas webhook:list`
409
410List webhooks on the current project.
411
412```
413USAGE
414 $ eas webhook:list
415
416OPTIONS
417 --event=(BUILD) Event type that triggers the webhook
418```
419
420_See code: [build/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/webhook/list.ts)_
421
422## `eas webhook:update`
423
424Create a webhook on the current project.
425
426```
427USAGE
428 $ eas webhook:update
429
430OPTIONS
431 --event=(BUILD) [default: BUILD] Event type that triggers the webhook
432 --id=id (required) Webhook ID
433
434 --secret=secret Secret used to create a hash signature of the request payload, provided in the 'Expo-Signature'
435 header.
436
437 --url=url Webhook URL
438```
439
440_See code: [build/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/webhook/update.ts)_
441
442## `eas webhook:view ID`
443
444View a webhook on the current project.
445
446```
447USAGE
448 $ eas webhook:view ID
449
450ARGUMENTS
451 ID ID of the webhook to view
452```
453
454_See code: [build/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v0.17.0/build/commands/webhook/view.ts)_
455<!-- commandsstop -->