Magento administrative tool

March 9, 2019 ยท View on GitHub

Used to perform administrative tasks on Magento instances remotely.

Designed to work with different versions of Magento.

Actual commands reside on Magento instances. When a new instance (context) is added, the tool loads list of supported commands from the instance. Whenever a user calls a command in tool, the request to the instance is made.

The tool itself only provides following commands:

  • magento instance:add [name] [url] - register a new managed remote instance
  • magento instance:remove [name] - unregister a managed instance from the tool instance list
  • magento instance:list - list registered remote instances
  • magento instance:update - load a list of commands supported by the instance
  • magento context:set [name] - select the default instance to be used in commands

Magento instance endpoints

This tool only works with magento instances that support remote calls and metadata sharing.

Use https://gist.github.com/antonkril/405d5025038fbc0d333dcd59482e58f4 in root folder for metadata sharing.

Security

The prototype MUST NOT be used in production systems.

Evolution plan

  • Add authentication
  • Add install/deploy commands for standard environments (local, docker, vagrant, kubernetes)