ggedde / spry-cli
Command Line Interface for spry
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:cli
Requires
- php: >=5.5.0
- dev-master
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0.x-dev
- 1.0.0
- 0.9.29
- 0.9.28
- 0.9.27
- 0.9.26
- 0.9.25
- 0.9.24
- 0.9.23
- 0.9.22
- 0.9.21
- 0.9.20
- 0.9.19
- 0.9.18
- 0.9.17
- 0.9.16
- 0.9.15
- 0.9.14
- 0.9.13
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
This package is auto-updated.
Last update: 2025-03-26 11:08:58 UTC
README
Command Line Interface for Spry
Installation
composer global require ggedde/spry-cli
You also need to make sure you have the global composer bin available in your ~/.bash_profile or ~/.bashrc depending on what OS your using.
Edit one of those files and check to see if this exists. If not then add it to the bottome of the file.
export PATH="$PATH:$HOME/.composer/vendor/bin"
You may have to close and reopen your terminal or you can run
source ~/.bash_profile
or
source ~/.bashrc
Create a project
spry new [project_name]
cd [project_name]
To Start the Test server run
spry up
Then open another termal and run a test
spry test
List of Commands and arguments:
clear [object]
[object] - Object name. Currently only supports 'logs'.
- logs - clears both API and PHP log files. Does not remove archived logs.
Examples:
spry clear logs
component | c [component]
Generate a new Component and add it to your component directory.
[component] - Name of component to create. Name will be parsed into psr-4 format.
Examples:
spry component sales_reps
spry component SalesReps
hash | h [value]
Hash a value that processes it using the salt in the configuration.
[value] - Value to be hashed. Wrap with quotes when including spaces.
Examples:
spry hash "something to hash 123"
help | -h | --help
Display Information about Spry-cli.
Examples:
spry help
init | i [public_folder]
Initiate a Spry Setup and Configuration with a default project setup.
[public_folder] - (optional) - creates a folder of that name and adds a index.php pointer file
Examples:
spry init
spry init public_html
logs | l [type] [--options]
Display Contents of log files by type.
[type] - Type of logs to display. Corresponds to your configuration logs.
- php - Checks the php log file configured as $config->log_php_file.
- api - Checks the api log file configured as $config->log_api_file.
Options:
- --lines - Default 100. Number of lines to display.
- --trace - Only applies to 'type=php'. Shows Trace in logs.
Examples:
spry logs api
spry logs php --lines 10 --trace
migrate | m [--options]
Migrate the Database Schema.
Options:
- --dryrun | -d - Only check for what will be migrated and report back. No actions will be taken.
- --force | -f - (Destructive) Delete Fields, Tables and other data that does not match the new Scheme.
Examples:
spry migrate
spry migrate --dryrun
spry migrate --force
new | n [project]
Create a new project/directory and initiate it.
[project] - Name of project/directory to create and initialize.
Examples:
spry new project_name
test | t [test] [--options]
Run a Test or all Tests if a Test name is not specified.
[test] - (optional) - Name of a Test in configuration or json test data. Leave out to run all tests in configuration.
Options:
- --verbose - List out full details of the Test(s).
- --repeat - Repeat the test(s) a number of times.
Examples:
spry test
spry test --verbose
spry test connection --verbose --repeat 4
spry test '{"route":"/example/add", "params":{"name":"test"}, "expect":{"response_code": 2000}}'
version | v | -v | --version
Display the Version of the Spry Instalation.
Examples:
spry version
up | u
Start the built in PHP Spry Server.
Examples:
spry up