Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pronamic/pronamic-cli
Pronamic CLI is the command-line interface for Pronamic.
https://github.com/pronamic/pronamic-cli
bash cli composer console gcloud google pronamic symfony wordpress wordpress-development wp-cli
Last synced: 3 months ago
JSON representation
Pronamic CLI is the command-line interface for Pronamic.
- Host: GitHub
- URL: https://github.com/pronamic/pronamic-cli
- Owner: pronamic
- Created: 2023-04-11T11:58:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-01T07:10:14.000Z (3 months ago)
- Last Synced: 2024-10-10T04:02:09.530Z (3 months ago)
- Topics: bash, cli, composer, console, gcloud, google, pronamic, symfony, wordpress, wordpress-development, wp-cli
- Language: PHP
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Pronamic CLI
Pronamic CLI is the command-line interface for Pronamic.## Table of contents
- [Commands](#commands)
- [Examples](#examples)
- [Alternatives](#alternatives)
- [Links](#links)## Commands
### `changelog`
Show the changelong entry of a specific version from `CHANGELOG.md`.
```sh
vendor/bin/pronamic changelog 1.0.0
```## Examples
```sh
vendor/bin/pronamic deploy easycruit https://gitlab.com/pronamic-plugins/easycruit.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-client https://github.com/pronamic/wp-pronamic-client.git --to-s3 --to-wp-org -vvv
vendor/bin/pronamic deploy pronamic-events https://github.com/pronamic/wp-pronamic-events.git --to-s3 --to-wp-org -vvv
vendor/bin/pronamic deploy pronamic-ideal https://github.com/pronamic/wp-pronamic-ideal.git --to-s3 --to-wp-org -vvv
vendor/bin/pronamic deploy pronamic-ideal https://github.com/pronamic/wp-pronamic-ideal.git --branch=develop --to-s3 -vvv
vendor/bin/pronamic deploy woocommerce-bulk-product-variations https://gitlab.com/pronamic-plugins/woocommerce-bulk-product-variations.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-adyen https://github.com/wp-pay-gateways/adyen.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-adyen https://github.com/wp-pay-gateways/adyen.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-contact-form-7 https://github.com/pronamic/wp-pronamic-pay-contact-form-7.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-contact-form-7 https://github.com/pronamic/wp-pronamic-pay-contact-form-7.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-digiwallet https://github.com/pronamic/wp-pronamic-pay-digiwallet.git --branch=main --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-fundraising https://github.com/pronamic/wp-pronamic-pay-fundraising.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-paypal https://github.com/pronamic/wp-pronamic-pay-paypal.git --to-s3 -vvv
vendor/bin/pronamic deploy pronamic-pay-payvision https://github.com/pronamic/wp-pronamic-pay-payvision.git --branch=main --to-s3 -vvv
```## Alternatives
Here is a list of alternatives that we found. However, none of these satisfied our requirements.
*If you know other similar projects, feel free to edit this section!*
- [GitHub Actions for WordPress!](https://github.com/10up/actions-wordpress) by [10up](https://github.com/10up)
- [WordPress Plugin Directory Deployment Script](https://github.com/GaryJones/wordpress-plugin-svn-deploy) by [Gary Jones](https://github.com/GaryJones)
- [WordPress Plugin SVN Deploy](https://github.com/nk-o/action-wordpress-plugin-deploy) by [Nikita](https://github.com/nk-o)
- [sudar/wp-plugin-in-github](https://github.com/sudar/wp-plugin-in-github) by [Sudar Muthu](https://github.com/sudar)## Git checkout
https://www.git-scm.com/docs/git-clone
```sh
git clone https://github.com/pronamic/wp-pronamic-ideal.git git/pronamic-ideal
```## Update
```sh
cd svn/pronamic-idealsvn update
cd ../../
``````sh
cd git/pronamic-idealgit pull
cd ../../
```## Checkout
```sh
cd git/pronamic-idealgit checkout tags/5.4.1
composer install --no-dev --prefer-dist
cd ../../
```## Build
```sh
rm -r build/pronamic-idealmkdir build/pronamic-ideal
rsync --recursive --delete --exclude-from=exclude.txt ./git/pronamic-ideal/ ./build/pronamic-ideal/
```## Create ZIP
```sh
mkdir zip/pronamic-idealzip -r ./zip/pronamic-ideal/pronamic-ideal.5.4.1.zip ./build/pronamic-ideal/*
```## Create tar.gz
```sh
mkdir tar/pronamic-idealtar -zcvf ./tar/pronamic-ideal/pronamic-ideal.5.4.1.tar.gz ./build/pronamic-ideal/*
```## Requirements
```sh
# GNU tools on Mac.
# https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/# GNU `cat`
brew install coreutils# GNU `xargs`:
# https://superuser.com/questions/467176/replacement-for-xargs-d-in-osx
brew install findutils --with-default-names# GNU `grep`:
# https://apple.stackexchange.com/questions/193288/how-to-install-and-use-gnu-grep-in-osx
brew install grep --with-default-names# AWS Command Line Interface
# https://aws.amazon.com/cli/
brew install awscli
```## Links
- https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
- https://superuser.com/questions/467176/replacement-for-xargs-d-in-osx
- https://apple.stackexchange.com/questions/193288/how-to-install-and-use-gnu-grep-in-osx
- https://github.com/stephenharris/grunt-wp-deploy
- https://github.com/GaryJones/wordpress-plugin-svn-deploy
- https://github.com/sudar/wp-plugin-in-github
- https://stackoverflow.com/questions/16991428/bash-how-to-put-each-line-within-quotation
- https://coderwall.com/p/tjekrq/subversion-shallow-checkout
- https://stackoverflow.com/questions/4709912/how-to-make-grep-only-match-if-the-entire-line-matches
- https://superuser.com/questions/294850/check-if-a-file-is-already-committed-to-svn
- https://askubuntu.com/questions/29370/how-to-check-if-a-command-succeeded
- https://linux.die.net/man/1/zip
- https://symfony.com/doc/current/components/process.html
- https://symfony.com/doc/current/components/console/helpers/processhelper.html
- https://symfonycasts.com/blog/fun-with-symfonys-console
- https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html