#โ - Equivalent of "amplify pull" for Gen 2?
10 messages ยท Page 1 of 1 (latest)
hmmm, is it possible to just pull the backend and backend alone, especially if you want to use it with a separate frontend?
are you looking to stand up another instance of your backend for another frontend or simply share the backend with another frontend?
trying to share it
just tried to do amplify pull anyways with my profile and the app ID and it says the Amplify AppID isn't found
oh! in that case you can do ampx generate outputs --app-id <app-id> --branch <branch-name>
Hmmmm I ran npm create amplify@latest (I'm using Swift on the project I'm trying to pull it to) then npx ampx generate outputs --app-id <app-id> --branch <branch-name> (obviously not exactly but imagine I actually put in the app ID and branch name) and I get error:
InvalidClientTokenId: The security token included in the request is invalid. InvalidClientTokenId: The security token included in the request is invalid.
are you logged in? you mentioned profiles, so did you add --profile <your-profile> to the end of your npx ampx generate command?
ahh you don't need the amplify/ directory in this case. You can use npx to run the tooling from the npm registry to generate the outputs from another, existing app
โ - Equivalent of "amplify pull" for Gen 2?