Code Monkey home page Code Monkey logo

wf2's Introduction

wf2 Build Status

Install

wf2 is distributed as a single binary with everything packaged inside - this means you do not need PHP or Composer installed on your machine.

  1. Download the latest version from the releases page

  2. Make the file executable: (assuming it downloaded to the Downloads folder)

    chmod +x ~/Downloads/wf2

  3. Move the executable from your Downloads folder to /opt

    sudo mv ~/Downloads/wf2 /opt

    • If "opt" does not exist run the command below

      sudo mkdir /opt

    • Then make sure the permissions are correct on the folder

      sudo chown -R $(whoami) /opt

  4. Add this to the bottom of your zshrc or bash_profile:

    export PATH="$PATH:/opt"

  5. Use the following command to refresh any already open terminals

    source ~/.zshrc

  6. Or for bash users

    source ~/.bash_profile

  7. Type the following command to check all is installed OK:

    wf2

  8. You should see the same output as below (in features):

Features (assuming you are using M2 recipe)

wf2 0.14.0

USAGE:
    wf2 [FLAGS] [OPTIONS] [SUBCOMMAND]

FLAGS:
        --debug      Route all PHP requests to the container with XDEBUG
        --dryrun     Output descriptions of the sequence of tasks, without actually executing them
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v               Sets the level of verbosity

OPTIONS:
        --config <config>    path to a wf2.yml config file
        --cwd <cwd>          Sets the CWD for all docker commands
        --php <php>          path to a wf2.yml config file [possible values: 7.1, 7.2, 7.3]

SUBCOMMANDS:
    up               Bring up containers
    stop             Take down containers & retain data
    down             Take down containers & delete everything
    pull             Pull files or folders from the main container to the host
    push             Push files or folders into the main container
    doctor           Try to fix common issues with a recipe
    eject            Dump all files into the local directory for manual running
    update-images    Update images used in the current recipe
    db-dump          Dump the current database to dump.sql
    db-import        Import a DB file
    exec             Execute commands in the main container
    help             Prints this message or the help of the given subcommand(s)

PASS THRU COMMANDS:
    composer    [M2] Run composer commands with the correct user
    npm         [M2] Run npm commands
    dc          [M2] Run docker-compose commands
    node        [M2] Run commands in the node container
    m           [M2] Execute ./bin/magento commands inside the PHP container

wf2's People

Contributors

shakyshane avatar mikeymike avatar jflanaganuk avatar aydinhassan avatar thehashton avatar loxzibit avatar

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.