Introduction to the Savvy CLI
The Savvy CLI is a powerful tool designed to simplify the creation, sharing, and execution of runbooks directly from your terminal. By leveraging the capabilities of artificial intelligence, Savvy enables users to generate runbooks effortlessly, catering to both novice and experienced users. This makes it an excellent utility for streamlining workflow processes, automating tasks, and enhancing productivity.
Installing Savvy CLI
Getting started with Savvy is straightforward. Users can install the Savvy CLI by executing a simple shell command:
curl -fsSL https://install.getsavvy.so | sh
This command sets up everything you need to start harnessing the power of Savvy.
Generating Runbooks with AI
Savvy allows users to create runbooks using natural language input through its savvy ask
feature. With this, entire runbooks or individual commands can be generated by simply providing a prompt. The best part is that anyone can use it without signing up for an account or needing a credit card.
Examples
-
Creating a Go Module Runbook: Users can ask Savvy to generate a detailed runbook for publishing a new Go module with ease.
-
Tricky Shell Commands: Receive guidance on executing complex shell commands.
Creating Runbooks Using Commands
Savvy offers options like savvy record
and savvy record history
that enable users to create runbooks based on commands they provide. This functionality automatically expands any shell aliases, ensuring runbooks are reliable across different machines.
Shell History Runbooks
By using savvy record history
, users can select specific commands from their shell history to create a customized runbook. Importantly, Savvy only uses selected commands without executing them.
Sharing and Managing Runbooks
Runbooks are private initially but can be shared via a public or unlisted link from Savvy's dashboard. Also, users have the option to export runbooks to Markdown format for integration with existing documents.
Running and Parameterizing Runbooks
The savvy run
command lets users find and execute runbooks directly from their terminal. It streamlines the process by automatically suggesting the next command to run.
Additionally, parameterization within runbooks is made simple. With Savvy, users can replace hardcoded values with <parameters>
through the dashboard. This allows Savvy to prompt for these values whenever needed, streamlining the process further.
Understanding Commands with Savvy Explain
For users who seek to demystify complex commands or error messages, savvy explain
offers clear explanations. It provides a user-friendly breakdown, making it easy to understand what specific commands or flags do.
Examples
-
Understanding OpenSSL Commands: Quickly comprehend the components involved in parsing an x509 certificate with OpenSSL.
-
Error Message Analysis: Delve into error messages to learn troubleshooting steps and solutions.
Frequently Asked Questions (FAQs)
-
Installation: Install Savvy with the command:
curl -fsSL https://install.getsavvy.so | sh
-
Uninstallation: Remove Savvy using:
rm -rf ~/.savvy rm -rf ~/.config/savvy
-
Upgrading: Run
savvy upgrade
to update to the latest version. -
Login: Initiate the login process by running
savvy login
. -
Supported Shells: Currently, Savvy supports
zsh
,bash
, andfish
. For requests regarding additional shell support, users can create an issue on GitHub. -
Windows Compatibility: Savvy is not available for Windows yet.
-
Getting Help: Users can seek help by creating an issue on GitHub or joining the Discord server.
By offering these versatile features, Savvy CLI stands out as an essential tool for anyone looking to enhance their productivity and manage runbooks effectively through their terminal.