Skip to content

This is a project meant to help with everyday work with terminus using command line only.

License

Notifications You must be signed in to change notification settings

bopdesign/terminus-scripts

Repository files navigation

Terminus Scripts

This is a project for the Pantheon clients, who want to utilize it's command line interface, Terminus. The scripts are meant to ease the everyday work with Terminus, so you don't have to remember all the commands and parameters.

Requirements

This project uses shell aliases to call scripts as commands, however it's not required. So you can call a script using the syntax:

$ sh terminus-scripts/[script-name].sh command options

If you have not worked with a shell files before, I would recommend reading The Bash Shell Startup Files, a post that explains what you need to know. Most crucial files to setup would be - /etc/profile, ~/.bash_profile and ~/.bashrc.

Quickstart

1. Enter a folder to clone the repository to:

$ cd my-working-folder/
$ git clone https://github.com/bopdesign/terminus-scripts.git

2. While you're working on your project, run:

$ sh path-to-scripts/terminus-scripts/connection-set.sh sftp -s yoursite -e dev

This will set yoursite connection of dev environment to sftp mode (excludes Test and Live)

If you have an alias called mode, which runs the connection-set.sh script, you can alternatively type this:

$ mode sftp -s yoursite -e dev

Contents

This is the list of currently available script files. Each script contains documentation on how to use it, which can be accessed by calling a script with the standard flag -h or --help

  • multidev-create.sh - creates a multidev environment
  • connection-set.sh - sets Git or SFTP connection mode on a development environment (excludes Test and Live)
  • env-clone-content.sh - clones from one environment to the other on a specified site
  • env-clear-cache.sh - clears cache on an environment

About

This is a project meant to help with everyday work with terminus using command line only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages