Skip to content

Commit 2c1c9b9

Browse files
authored
[eas-cli] Use deploy as top level hosting command (#2824)
* Replace preview with help * Remove redundant alias * Update description * Rename top level command from worker -> deploy * Add changelog * End sentence with a . * Add worker:deploy as an alias to deploy
1 parent b447194 commit 2c1c9b9

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This is the log of notable changes to EAS CLI and related packages.
1414

1515
### 🧹 Chores
1616
- Fix logs typos in the `eas deploy` command. ([#2822](https://github.com/expo/eas-cli/pull/2822) by [@kadikraman](https://github.com/kadikraman))
17+
- Make `deploy` the top level command for hosting. ([#2824](https://github.com/expo/eas-cli/pull/2824) by [@kadikraman](https://github.com/kadikraman))
1718

1819

1920
- Make variable naming more explicit, remove deprecated runtimeFingerprintSource uses. ([#2816](https://github.com/expo/eas-cli/pull/2816) by [@wschurman](https://github.com/wschurman))

packages/eas-cli/src/commands/worker/alias.ts renamed to packages/eas-cli/src/commands/deploy/alias.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ interface RawDeployAliasFlags {
3333
}
3434

3535
export default class WorkerAlias extends EasCommand {
36-
static override description = 'Assign deployment aliases';
37-
static override aliases = ['deploy:alias', 'deploy:promote'];
38-
static override state = 'beta';
36+
static override description = 'Assign deployment aliases.';
37+
static override aliases = ['worker:alias', 'deploy:promote'];
38+
static override state = 'preview';
3939

4040
static override flags = {
4141
prod: Flags.boolean({
@@ -70,7 +70,7 @@ export default class WorkerAlias extends EasCommand {
7070
enableJsonOutput();
7171
}
7272

73-
Log.warn('EAS Hosting is still in beta and subject to changes.');
73+
Log.warn('EAS Hosting is still in preview and subject to changes.');
7474

7575
const {
7676
getDynamicPrivateProjectConfigAsync,

packages/eas-cli/src/commands/worker/deploy.ts renamed to packages/eas-cli/src/commands/deploy/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ interface DeployInProgressParams {
6565
}
6666

6767
export default class WorkerDeploy extends EasCommand {
68-
static override description = 'Deploy your Expo web build';
69-
static override aliases = ['deploy'];
68+
static override description = 'Deploy your Expo Router web build and API Routes.';
69+
static override aliases = ['worker:deploy'];
7070
static override usage = [chalk`deploy {dim [options]}`, `deploy --prod`];
71-
static override state = 'beta';
71+
static override state = 'preview';
7272

7373
static override flags = {
7474
prod: Flags.boolean({

0 commit comments

Comments
 (0)