CLI for Shopware Account

Overview

MIT License

Shopware CLI

A cli which contains handy helpful commands for daily Shopware tasks

Features

  • Manage your Shopware account extensions in the CLI
  • Build and validate Shopware extensions

All commands

shopware account login
shopware account logout
shopware account company list
shopware account company use [companyId]
shopware account producer
shopware account producer info
shopware account producer extension create [name] [generation]
shopware account producer extension delete [name]
shopware account producer extension list
shopware extension validate [folder or zip path]
shopware extension prepare [folder]
shopware extension zip [folder]

Installation

There are many options to install shopware-cli. The binary file itself can be found in the latest GitHub release. The releases contain also packages for Debian, Red Hat and Alpine.

For Homebrew use brew install FriendsOfShopware/tap/shopware-cli.

Develop Locally

Clone the project

  git clone https://github.com/FriendsOfShopware/shopware-cli.git

Go to the project directory

  cd shopware-cli

Run the cli

    go run . account login

Contributing

Contributions are always welcome!

Issues
  • WIP: CI: add go tests

    WIP: CI: add go tests

    Go test works. @shyim For coverage reporting the secret dsn needs to be set in the gh actions env: https://github.com/marketplace/actions/deepsource-test-coverage-action#:~:text=GitHub%20Action%20that%20enables%20you,repository%20for%20reporting%20to%20work.

    opened by Christian-Rades 2
  • PrepareFolderForZipping filter option

    PrepareFolderForZipping filter option

    Please describe the feature you would like to see implemented.

    Please add possibility to specify composer packages to be filtered out as well. Additionally, to filterShopwareRequires.

    So, we can use preparation without any plugin-dependency to be installed into plugins vendor.

    opened by tinect 1
  • docker

    docker

    PHP Version

    No response

    Shopware Version

    No response

    Actual behaviour

    docker run --rm -v ${PWD}:/app ghcr.io/friendsofshopware/shopware-cli extension prepare /app

    results in Error: level=fatal msg="prepare zip: PrepareFolderForZipping: exec: \"composer\": executable file not found in $PATH"

    Expected behaviour

    should work

    Steps to Reproduce?

    call command in plugin

    opened by tinect 1
  • account login with saved old password

    account login with saved old password

    PHP Version

    No response

    Shopware Version

    No response

    Actual behaviour

    When having logged in with a old password and want to call login again, the cli detects saved password. also it detects the password is wrong.

    Expected behaviour

    The cli should call relogging when saved password is wrong. Additionally: remove shopware-api-client-token.json, too on every login.

    Steps to Reproduce?

    • call shopware-cli account login.
    • change password of account
    • call shopware-cli account login again
    opened by tinect 1
  • Completion scripts show shopware-cli instead of shopware

    Completion scripts show shopware-cli instead of shopware

    PHP Version

    No response

    Shopware Version

    No response

    Actual behaviour

    the completion script for bash (I assume others too) are based on command shopware-cli, but it should be shopware

    Expected behaviour

    print and use correct command. Use shopware-cli [command] or shopware [command] all over.

    Steps to Reproduce?

    install bash completion script and seeing not having auto-completion

    opened by tinect 1
  • Add possibility to specify shopwareRoot

    Add possibility to specify shopwareRoot

    Please describe the feature you would like to see implemented.

    https://github.com/FriendsOfShopware/shopware-cli/blob/1db68609d0fbbf47f3e4f5aa56447623306d73d2/cmd/extension/extension_build.go#L36 https://github.com/FriendsOfShopware/shopware-cli/blob/1db68609d0fbbf47f3e4f5aa56447623306d73d2/cmd/extension/extension_zip.go#L131

    getenv?🤔

    opened by tinect 0
  • fix: add more defaultNotAllowedPaths for zip command

    fix: add more defaultNotAllowedPaths for zip command

    We are using a shared node_modules folder without splitting into administration and storefront - sounds legit, doesn't it? Additionally, the folder var can just contain stuff you may not want :-) for example cs_fixer-cache.

    opened by tinect 0
  • MySQL dump without config

    MySQL dump without config

    PHP Version

    No response

    Shopware Version

    No response

    Actual behaviour

    MySQL Dump should work without a config

    Expected behaviour

    just works

    Steps to Reproduce?

    opened by shyim 0
  • Extension Manager for Project

    Extension Manager for Project

    Please describe the feature you would like to see implemented.

    • [x] Install
    • [x] Uninstall
    • [x] Activate
    • [x] Deactivate
    • [x] Update
    • [x] Upload extension
    • [x] Delete extension
    opened by shyim 0
  • docker php-version

    docker php-version

    Please describe the feature you would like to see implemented.

    Minimum PHP version of shopware is 7.4. Running "extension prepare" on plugin uses PHP 8.0, which can result in errors while components are installed which are incompatible.

    Should we set config.platform.php in composer.json to 7.4?

    opened by tinect 0
  • Prepare does not install relevant packages - store plugin broken

    Prepare does not install relevant packages - store plugin broken

    PHP Version

    No response

    Shopware-Cli Version

    0.1.28

    Actual behaviour

    image

    Expected behaviour

    image

    Steps to Reproduce?

    Plugin https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage Run composer install Compare with shopware-cli extension prepare

    when using shopware-cli prepare: image

    opened by tinect 3
  • Config Sync

    Config Sync

    Please describe the feature you would like to see implemented.

    • [x] System Config
    • [x] Theme Config
    • [x] Mail Template
    • [x] Entity Sync
    • [ ] Custom Field Sets
    • [ ] Flow Builder
    • [ ] Rules
    • [ ] CMS
    opened by shyim 0
Releases(0.1.28)
Owner
Friends of Shopware
Friends of Shopware
A simple CLI app to update dynamic DNS settings for your CloudFlare account

Cloudflare Dynamic DNS Updater (Go) written by Darren Rambaud Why? A simple CLI app to update dynamic DNS settings for your CloudFlare account. Useful

Darren Rambaud 0 Nov 28, 2021
Azure-nuke - The CLI tool to delete all resources in an Azure Account

azure-nuke This repository would contain the CLI tool to delete all resources in

Hrittik Roy 3 Jun 8, 2022
Command-line utility to grab Github gists from your own account.

gistfetch Command-line utility to grab Github gists from your own account. How do I use this? Add an API token with permissions to read Gists Fetch th

null 1 Dec 14, 2021
Elegant CLI wrapper for kubeseal CLI

Overview This is a wrapper CLI ofkubeseal CLI, specifically the raw mode. If you just need to encrypt your secret on RAW mode, this CLI will be the ea

Elm 4 Jan 8, 2022
CLI to run a docker image with R. CLI built using cobra library in go.

BlueBeak Installation Guide Task 1: Building the CLI The directory structure looks like Fastest process: 1)cd into bbtools 2)cd into bbtools/bin 3)I h

Aniruddha Chattopadhyay 0 Dec 20, 2021
A wrapper of aliyun-cli subcommand alidns, run aliyun-cli in Declarative mode.

aliyun-dns A wrapper of aliyun-cli subcommand alidns, run aliyun-cli in Declarative mode. Installation Install aliyun-cli. Usage $ aliyun-dns -h A wra

许嘉华 0 Dec 21, 2021
Symfony-cli - The Symfony CLI tool For Golang

Symfony CLI Install To install Symfony CLI, please download the appropriate vers

Symfony CLI 330 Jun 20, 2022
Go-file-downloader-ftctl - A file downloader cli built using golang. Makes use of cobra for building the cli and go concurrent feature to download files.

ftctl This is a file downloader cli written in Golang which uses the concurrent feature of go to download files. The cli is built using cobra. How to

Dipto Chakrabarty 2 Jan 2, 2022
Cli-algorithm - A cli program with A&DS in go!

cli-algorithm Objectives The objective of this cli is to implement 4 basic algorithms to sort arrays been Merge Sort Insertion Sort Bubble Sort Quick

Leonardo Brombilla Antunes 0 Jan 2, 2022
Nebulant-cli - Nebulant's CLI

Nebulant CLI Website: https://nebulant.io Documentation: https://nebulant.io/docs.html The Nebulant CLI tool is a single binary that can be used as a

Develatio 2 Jan 11, 2022
News-parser-cli - Simple CLI which allows you to receive news depending on the parameters passed to it

news-parser-cli Simple CLI which allows you to receive news depending on the par

Maxym 0 Jan 4, 2022
Go-api-cli - Small CLI to fetch data from an API sync and async

Async API Cli CLI to fetch data on "todos" from a given API in a number of ways.

Pete Robinson 0 Jan 13, 2022
Syno-cli - Synology unofficial API CLI and library

Synology CLI Unofficial wrapper over Synology API in Go. Focus on administrative

Aleksandr Baryshnikov 11 Jun 16, 2022
Nebula Diagnosis CLI Tool is an information diagnosis cli tool for the nebula service and the node to which the service belongs.

Nebula Diagnosis CLI Tool is an information diagnosis cli tool for the nebula service and the node to which the service belongs.

Katz 1 Jan 12, 2022
bcrypt-cli is the CLI tool for hashing passwords with bcrypt.

bcrypt-cli bcrypt-cli is the CLI tool for hashing passwords with bcrypt. Install go install github.com/ryicoh/bcrypt-cli Usage It can be used like bas

Ryuichiroh Ikeuchi 0 Jan 27, 2022
Gobby-cli - CLI application to debug gobby applications

go(bby) Interactive debugging tool for gobby applications Usage Coming soon™ Ins

Qwiri 0 Feb 8, 2022
GTDF-CLI - The official CLI tool to operate with Getting Things Done Framework

This is the official CLI tool to operate with Getting Things Done Framework. How

akrck02 1 Feb 14, 2022
CLI - A package for building command line app with go

Command line interface Screenshot Key features Lightweight and easy to use. Defines flag by tag, e.g. flag name(short or/and long), description, defau

王仕晋 655 Jun 18, 2022