Skip to content

Commit

Permalink
[eas-cli] Use deploy as top level hosting command (#2824)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kadikraman authored Jan 17, 2025
1 parent b447194 commit 2c1c9b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is the log of notable changes to EAS CLI and related packages.

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


- Make variable naming more explicit, remove deprecated runtimeFingerprintSource uses. ([#2816](https://github.com/expo/eas-cli/pull/2816) by [@wschurman](https://github.com/wschurman))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ interface RawDeployAliasFlags {
}

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

static override flags = {
prod: Flags.boolean({
Expand Down Expand Up @@ -70,7 +70,7 @@ export default class WorkerAlias extends EasCommand {
enableJsonOutput();
}

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

const {
getDynamicPrivateProjectConfigAsync,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ interface DeployInProgressParams {
}

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

static override flags = {
prod: Flags.boolean({
Expand Down

0 comments on commit 2c1c9b9

Please sign in to comment.