reactioncommerce / reaction-cli

A command line tool for working with Reaction Commerce.
33 stars 20 forks source link

reaction apps delete #31

Closed aaronjudd closed 6 years ago

aaronjudd commented 7 years ago

unable to delete apps from the command line.

reaction apps delete --name 2224

Gives..

App deployment not found

Where the app does exist.

While reaction apps delete --app foray-2 --name foray-2 did seem to delete.

maybe ID would be helpful here as well.

jshimko commented 7 years ago

I can't seem to reproduce this. My steps:

create

$ reaction apps create --name my-test --image reactioncommerce/reaction:latest

Created new app: my-test
URL: https://asxj7f5ahfrh889l.getreaction.io

Done!

list

$ reaction apps list

Apps List

┌───────────────────┬─────────┬──────────────────────────────────┬─────────────────────────────────────────┬─────────┬────────────┐
│ App ID            │ Name    │ Image                            │ Default URL                             │ Domains │ Created By │
├───────────────────┼─────────┼──────────────────────────────────┼─────────────────────────────────────────┼─────────┼────────────┤
│ cPtMSqAbSt6GHdq7C │ my-test │ reactioncommerce/reaction:latest │ https://asxj7f5ahfrh889l.getreaction.io │         │ jeremy     │
└───────────────────┴─────────┴──────────────────────────────────┴─────────────────────────────────────────┴─────────┴────────────┘

delete

$ reaction apps delete --name my-test

App 'my-test' successfully deleted.

Is it possible you were using the development server on one of those commands and hadn't exported the LAUNCHDOCK_GRAPHQL_ENDPOINT in a new terminal window? (that one gets me regularly)