Quick Presets and Custom Commands in ShellSage allow you to run common server tasks in one tap by inserting ready-made commands at the prompt for review before execution.
Understanding Quick Presets in ShellSage
In ShellSage, Quick Presets are a collection of ready-made commands organized into categories like System, Services, Docker, and Networking. These presets provide a convenient way to execute frequently used commands without having to type them each time. When you select a preset, it is inserted at the prompt, allowing you to review and modify it if necessary before execution.
For example, if you frequently need to check the status of your server's services, you can use a preset like systemctl status. This command will be inserted into the terminal, and you can modify it to include a specific service by appending the service name, such as systemctl status nginx.
One of the standout features of ShellSage is the blast-radius preview, which applies to any potentially destructive command. This feature ensures that you are aware of the implications of the command before you run it, reducing the risk of accidental damage to your system.
ShellSage's blast-radius preview gives you confidence to run commands without fear of unintended consequences.
How to Set Up and Use Custom Commands
Custom Commands in ShellSage allow you to save your own frequently used commands for quick access. To create a custom command, you simply type the command you wish to save, then save it as a custom command in the app. This feature is particularly useful for commands that are specific to your workflow or server environment.
For instance, let's say you often need to check the disk usage on your server. You can create a custom command df -h to quickly display the disk usage in a human-readable format. Once saved, this command can be run with a single tap from the Custom Commands menu.
Another powerful aspect of Custom Commands is the ability to pin your favorites as always-visible keys on the terminal key bar. This means that your most important commands are always just a tap away, enhancing your efficiency when working on your server from your phone.
What Makes ShellSage Different from Other Mobile SSH Clients?
Unlike most mobile SSH clients such as Termius and JuiceSSH, ShellSage offers a unique blend of features that simplify command execution. While other clients might require you to manually type out each command or lack safeguards for risky operations, ShellSage's Quick Presets and Custom Commands provide a more streamlined experience.
ShellSage's integration of AI through the Sage assistant further distinguishes it from competitors. Sage can explain command outputs and suggest fixes for any command errors, which is not commonly found in other SSH clients. This feature is particularly valuable for developers who may not be experts in every command they run.
Most SSH clients don't offer AI assistance or a blast-radius preview to prevent errors.
When Should You Use Quick Presets and Custom Commands?
Quick Presets and Custom Commands are best used when you have a set of tasks that you perform regularly on your server. By saving these tasks as presets or custom commands, you can greatly reduce the time it takes to perform them and minimize the risk of errors from manual entry.
For example, if you manage multiple servers and need to frequently update packages, a preset like sudo apt update && sudo apt upgrade can save time and ensure consistency across your systems. Similarly, if you need to restart a service often, such as a web server, a custom command sudo systemctl restart apache2 can be invaluable.
These features are particularly useful for sysadmins and SREs who are on the go, as they allow for efficient server management directly from a mobile device, with all the safeguards and conveniences that ShellSage offers.
Creating a Workflow with ShellSage
To create an efficient workflow using ShellSage, start by identifying the commands you use most frequently. Group these commands into categories like system monitoring, service management, and networking tasks. Once you have your list, check the Quick Presets to see which commands are already available and which you might need to create as custom commands.
Next, save any custom commands you need and pin your most used commands to the terminal key bar for easy access. This setup allows you to handle most server tasks with just a few taps, making your mobile device a powerful tool for server management.
Finally, take advantage of ShellSage's AI capabilities. If you're unsure about a command or its output, use the Sage assistant to get explanations or corrections. This can be a lifesaver when working under pressure or dealing with unfamiliar systems.
⚡ Key takeaways
- ›Quick Presets and Custom Commands streamline server management on mobile.
- ›ShellSage's blast-radius preview enhances command safety.
- ›AI assistance in ShellSage provides valuable command insights.

