aws-amplify / aws-amplify/amplify-cli
vague error when running `amplify status` after fresh clone of project (before init/pull)
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/dev/CONTRIBUTING.md#bug-reports).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
### How did you install the Amplify CLI?
pnpm
### If applicable, what version of Node.js are you using?
18
### Amplify CLI Version
10.2.1
### What operating system are you using?
mac
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
### Amplify Categories
Not applicable
### Amplify Commands
Not applicable
### Describe the bug
Amplify CLI returns a vague error when attempting to run `amplify status` after a fresh git clone of an Amplify project
```
Name: Error : Message: File at path: '/Users/josef/path/to/myamplifyproject/amplify/backend/amplify-meta.json' does not exist
```
The error format is also worth mentioning:
```
Name: Error : Message: File at path: ...
```
### Expected behavior
A helpful error message is returned with proper guidance
```
This project does not appear to be initialized. Have you ran `amplify init`?
https://docs.amplify.aws/cli/start/workflows/#amplify-init
```
or
```
File at path: '/Users/josef/path/to/myamplifyproject/amplify/backend/amplify-meta.json' does not exist
Has this project been initialized? Run `amplify init` to get started
https://docs.amplify.aws/cli/start/workflows/#amplify-init
```
### Reproduction steps
1. create an Amplify project
2. push to git
3. in another directory, clone repository
4. run `amplify status`
### GraphQL schema(s)
```graphql
# Put schemas below this line
```
### Project Identifier
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.