aws-amplify / aws-amplify/amplify-cli

--cwd option for Yarn Workspaces compatibility

Open
#7,122 0 comments 0 reactions 0 assignees View on GitHub
feature-request p4 platform
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

>**Note**: If your feature-request is regarding the AWS Amplify Console service, please log it in the
[AWS Amplify Console repository](https://github.com/aws-amplify/amplify-console/issues)

**Is your feature request related to a problem? Please describe.**
I want to call the Amplify CLI from a location that doesn't contain the `amplify/` directory, i.e. in project root `/`, where the Amplify config for the project might be in `workspaces/amplify`.

**Describe the solution you'd like**
I'd like Amplify CLI to mimic `yarn --cwd [dir]` option, which would resolve the problem above with `amplify --cwd workspaces/ [command]`.

**Describe alternatives you've considered**
Moving everything into the root directory of the project, but that's less organized and versatile than the functionality I'm requesting.

**Additional context**
https://github.com/aws-amplify/amplify-console/issues/1750#issuecomment-821728324

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.