aws-amplify / aws-amplify/amplify-cli

amplify update api -h yields "command not found" error

Open
#12,661 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue p4 platform windows
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

n/a

### If applicable, what version of Node.js are you using?

n/a

### Amplify CLI Version

12.0.0

### What operating system are you using?

Windows

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

None

### Describe the bug

Running the command `amplify update api -h` returns the error message `🛑 Command not found`.
Running the command `amplify update -h` says the previous command should work:

```
Use "amplify update -h" to see subcommand-specific help
```

### Expected behavior

Command should not produce an error.

### Reproduction steps

See above.

### Project Identifier

n/a

### Log output

```
# Put your logs below this line
n/a

```

### Additional information

_No response_

### Before submitting, please confirm:

- [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.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue on Windows with Amplify CLI 12.0.0 by running `amplify update api -h` and compare it with `amplify update -h`. Trace how the CLI dispatches the update help command, then verify that the category-specific command displays help instead of `Command not found`.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.