aws-amplify / aws-amplify/amplify-cli

Consolidate `amplify init --app` workflow

Open
#8,611 1 comment 0 reactions 0 assignees View on GitHub
feature-request p3 platform-init
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### Is this feature request related to a new or existing Amplify category?

_No response_

### Is this related to another service?

_No response_

### Describe the feature you'd like to request

When initializing a new Amplify project from an [existing project on GitHub](https://github.com/josefaidt/8414), we experience a workflow that is different from initializing a fresh project. Namely:

- local env created with name `sampledev`, whereas `amplify init -y` creates the `dev` environment
- Amplify CLI attempts to run `start` command after clone and initialization, which in a Next.js project (as an example) this command will fail without an existing build

### Describe the solution you'd like

- Amplify CLI creates default env "dev" as experienced with `amplify init -y`, or prompt for env name
- Amplify CLI does not run npm command `start` after clone and initialization
- Do not install project dependencies after clone, or allow developer to choose npm client (in this instance the Next.js project uses `pnpm` to manage dependencies but Amplify CLI installed using `yarn`, which creates an additional lockfile)

### Describe alternatives you've considered

Cloning and initializing manually

### Additional context

_No response_

### Is this something that you'd be interested in working on?

- [ ] 👋 I may be able to implement this feature request
- [ ] ⚠️ This feature might incur a breaking change

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.