Coder Social home page Coder Social logo

oxrun's Introduction

Oxrun

Build Status Coverage Status

Oxrun provides a cli toolset for the OXID eShop Community Edition.

Thanks to the netz98 magerun project which heavily inspired oxrun.

Installation

PHP 5.4 is required.

If you are using composer (which you probably are), just add "marcharding/oxrun": "dev-master" to your composer.json and run composer install.

You can then use oxrun by calling vendor/bin/oxrun or add vendor/bin to your $PATH to be able to just call oxrun.

You can also install oxrun by simply downloading the phar file

wget --no-check-certificate https://raw.githubusercontent.com/marcharding/oxrun/master/oxrun.phar

You can oxrun now via php oxrun.phar

Alternatively you can also make the phar itself executable and copy it to your /usr/local/bin/ directory for global usage.

chmod +x oxrun.phar
sudo mv oxrun.phar /usr/local/bin/oxrun

You can then run oxrun by just calling oxrun

Usage

To use oxrun just execute php oxrun.phar or oxrun (see above).

Execute oxrun inside your OXID eShop base directory (or subdirectory) if you want to interact with an existing shop. It will automatically try to find the oxid boostrap.php and load it.

Available commands

cache:clear

  • Description: Clears the cache
  • Usage: cache:clear

Options:

cms:update

  • Description: Updates a cms page
  • Usage: cms:update [--title[="..."]] [--content[="..."]] [--language="..."] [--active="..."] ident

Arguments:

ident:

  • Name: ident
  • Description: Content ident

Options:

title:

  • Name: --title
  • Is value required: no
  • Description: Content title

content:

  • Name: --content
  • Is value required: no
  • Description: Content body

language:

  • Name: --language
  • Is value required: yes
  • Description: Content language

active:

  • Name: --active
  • Is value required: yes
  • Description: Content active

config:get

  • Description: Gets a config value
  • Usage: config:get [--shopId[="..."]] [--moduleId[="..."]] variableName

Arguments:

variableName:

  • Name: variableName
  • Description: Variable name

Options:

shopId:

  • Name: --shopId
  • Is value required: no
  • Description:

moduleId:

  • Name: --moduleId
  • Is value required: no
  • Description:

config:set

  • Description: Sets a config value
  • Usage: config:set [--variableType="..."] [--shopId[="..."]] [--moduleId[="..."]] variableName variableValue

Arguments:

variableName:

  • Name: variableName
  • Description: Variable name

variableValue:

  • Name: variableValue
  • Description: Variable value

Options:

variableType:

  • Name: --variableType
  • Is value required: yes
  • Description: Variable type

shopId:

  • Name: --shopId
  • Is value required: no
  • Description:

moduleId:

  • Name: --moduleId
  • Is value required: no
  • Description:

config:shop:get

  • Description: Sets a shop config value
  • Usage: config:shop:get [--shopId[="..."]] variableName

Arguments:

variableName:

  • Name: variableName
  • Description: Variable name

Options:

shopId:

  • Name: --shopId
  • Is value required: no
  • Description: oxbaseshop
  • Default: 'oxbaseshop'

config:shop:set

  • Description: Sets a shop config value
  • Usage: config:shop:set [--shopId[="..."]] variableName variableValue

Arguments:

variableName:

  • Name: variableName
  • Description: Variable name

variableValue:

  • Name: variableValue
  • Description: Variable value

Options:

shopId:

  • Name: --shopId
  • Is value required: no
  • Description: oxbaseshop
  • Default: 'oxbaseshop'

db:dump

  • Description: Dumps the the current shop database
  • Usage: db:dump [--file="..."]

Dumps the the current shop database.

Requires php exec and MySQL CLI tools installed on your system.

Options:

file:

  • Name: --file
  • Is value required: yes
  • Description: Dump sql in to this file

db:import

  • Description: Import a sql file
  • Usage: db:import file

Imports an SQL file on the current shop database.

Requires php exec and MySQL CLI tools installed on your system.

Arguments:

file:

  • Name: file
  • Description: The sql file which is to be imported

Options:

db:query

  • Description: Executes a query
  • Usage: db:query [--raw] query

Executes an SQL query on the current shop database. Wrap your SQL in quotes.

If your query produces a result (e.g. a SELECT statement), the output will be returned via the table component. Add the raw option for raw output.

Requires php exec and MySQL CLI tools installed on your system.

Arguments:

query:

  • Name: query
  • Description: The query which is to be executed

Options:

raw:

  • Name: --raw
  • Accept value: no
  • Is value required: no
  • Description: Raw output
  • Default: false

install:shop

  • Description: Installs the shop
  • Usage: install:shop [--oxidVersion[="..."]] [--installationFolder[="..."]] [--dbHost="..."] [--dbUser="..."] [--dbPwd="..."] [--dbName="..."] [--dbPort[="..."]] [--installSampleData[="..."]] [--shopURL="..."] [--adminUser="..."] [--adminPassword="..."]

Options:

oxidVersion:

  • Name: --oxidVersion
  • Is value required: no
  • Description: Oxid version
  • Default: 'v4.9.5'

installationFolder:

  • Name: --installationFolder
  • Is value required: no
  • Description: Installation folder
  • Default: '/vagrant/web/oxrun'

dbHost:

  • Name: --dbHost
  • Is value required: yes
  • Description: Database host
  • Default: 'localhost'

dbUser:

  • Name: --dbUser
  • Is value required: yes
  • Description: Database user
  • Default: 'oxid'

dbPwd:

  • Name: --dbPwd
  • Is value required: yes
  • Description: Database password
  • Default: ''

dbName:

  • Name: --dbName
  • Is value required: yes
  • Description: Database name
  • Default: 'oxid'

dbPort:

  • Name: --dbPort
  • Is value required: no
  • Description: Database port
  • Default: 3306

installSampleData:

  • Name: --installSampleData
  • Is value required: no
  • Description: Install sample data
  • Default: true

shopURL:

  • Name: --shopURL
  • Is value required: yes
  • Description: Installation base url

adminUser:

  • Name: --adminUser
  • Is value required: yes
  • Description: Admin user email/login

adminPassword:

  • Name: --adminPassword
  • Is value required: yes
  • Description: Admin password

misc:generate:documentation

  • Description: Generate a raw command documentation of the available commands
  • Usage: misc:generate:documentation

Arguments:

command:

  • Name: command
  • Description: The command to execute

Options:

misc:phpstorm:metadata

  • Description: Generate a PhpStorm metadata file for autocompletion
  • Usage: misc:phpstorm:metadata

Options:

output-dir:

  • Name: --output-dir, -o
  • Accept value: yes
  • Is value required: yes
  • Description: Writes the metadata for PhpStorm to the specified directory.

module:activate

  • Description: Activates a module
  • Usage: module:activate module

Arguments:

module:

  • Name: module
  • Description: Module name

Options:

module:deactivate

  • Description: Deactivates a module
  • Usage: module:deactivate module

Arguments:

module:

  • Name: module
  • Description: Module name

Options:

module:fix

  • Description: Fixes a module
  • Usage: module:fix module

Arguments:

module:

  • Name: module
  • Description: Module name

Options:

module:generate

  • Description: Generates a module skeleton
  • Usage: module:generate module

Arguments:

module:

  • Name: module
  • Description: Module name

Options:

module:list

  • Description: Lists all modules
  • Usage: module:list

Options:

user:password

  • Description: Sets a new password
  • Usage: user:password username password

Arguments:

username:

  • Name: username
  • Description: Username

password:

  • Name: password
  • Description: New password

Options:

views:update

  • Description: Updates the views
  • Usage: views:update

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.