https://raw.githubusercontent.com/chrisputnam9/pcucli/master/dist/pcucli
f87a99f0a6ec681362f989c6cefa9bb3
-
Make sure you have PHP, or install it if not
-
Run this code in a download folder or temporary location:
curl https://raw.githubusercontent.com/chrisputnam9/pcucli/master/dist/pcucli > pcucli chmod +x pcucli sudo ./pcucli install -
Test success by running in a new terminal session:
pcucli version
The script will periodically check for updates autmoatically and inform you when an update is available.
If an update is available, you can run the following to install the update:
sudo pcucli update
pcucli <method> (argument1) (argument2) ... [options]
----------------------------------------------------------------------------------------------------------------------
| METHOD | INFO |
----------------------------------------------------------------------------------------------------------------------
| backup | Backup a file or files to the configured backup folder |
| clear | Clear the screen |
| eval_file | Evaluate a php script file, which will have access to all internal methods via '$this' |
| exit | Exit the command prompt |
| get | GET data from the ClickUp API. Refer to https://clickup.com/api/ |
| help | Shows help/usage information. |
| install | Install a packaged PHP console tool |
| post | POST data to the ClickUp API. Refer to https://clickup.com/api/ |
| prompt | Show interactive prompt |
| update | Update an installed PHP console tool |
| version | Output version information |
----------------------------------------------------------------------------------------------------------------------
To get more help for a specific method: pcucli help <method>
----------------------------------------------------------------------------------------------------------------------
| OPTION | TYPE | INFO |
----------------------------------------------------------------------------------------------------------------------
| --allow-root | (boolean) | OK to run as root without warning |
| --api-cache | (boolean) | Whether to cache results |
| --ssl-check | (boolean) | Whether to check SSL certificates with curl |
| --stamp-lines | (boolean) | Stamp / prefix output lines with the date and time |
| --verbose | (boolean) | Enable verbose output |
----------------------------------------------------------------------------------------------------------------------
Use no- to set boolean option to false - eg. --no-stamp-lines