rdrgtec
rdrgtec

Reputation: 640

The Amplify CLI can NOT find command: pull

I have just installed amplify cli through the command:

npm install @aws-amplify/cli

It mentions it has installed version 4.2.0.

Following the directions of the document below, I tried to run an "Amplify Pull" command to rearrange my files based on the contents on the cloud:

https://aws-amplify.github.io/docs/cli-toolchain/quickstart

However it tells me that The Amplify CLI can NOT find command: pull

Is it correct? Which command should I run instead of this one?

Upvotes: 0

Views: 3458

Answers (2)

D3r3NB
D3r3NB

Reputation: 1

It seems like changing the F (capital) to f (lowercase) solved my issue:

amplify remove Function

The Amplify CLI can NOT find command: remove Function

Scanning for plugins...

amplify remove function

No resources added for this category

p.s (Function is the name of the category)

Upvotes: 0

Eric
Eric

Reputation: 2087

Can you confirm you ran npm install -g @aws-amplify/cli (note the -g flag)? Otherwise, you may have an older global amplify, while your local project has the newer amplify.

  1. which amplify should return something like /usr/local/bin/amplify
  2. amplify --version should return 4.2.0

Upvotes: 1

Related Questions