How to Create, Share, and Run Runbooks Using Savvy’s CLI

Jul 15, 2022 | Programming

Welcome to the ultimate guide for harnessing the power of Savvy’s Command Line Interface (CLI)! If you’ve ever wanted to streamline your command sequences into organized guides—known as runbooks—while tapping into the innovative capabilities of AI, this is the perfect article for you. Let’s dive in!

What is Savvy?

Savvy is the easiest way to create, share, and run runbooks directly from your terminal. Think of Savvy as a personal assistant that helps you manage your complex command sequences, turning them into comprehensive playbooks. Whether you need to automate tasks, share workflows, or document your processes, Savvy has you covered!

Step 1: Install Savvy’s CLI

To get started, you’ll first want to install Savvy. Open your terminal and run the following command:

sh
curl -fsSL https://install.getsavvy.so | sh

Step 2: Generate Runbooks with AI

Once installed, you can create runbooks using natural language with the command:

savvy ask "Your Prompt Here"

You don’t even need to sign up for an account—it’s that simple! Here are two practical examples:

  • Ask Savvy to create a runbook for publishing a new Go module.
  • Ask Savvy for help with a tricky sequence of shell commands.
Ask Savvy to create a runbook for publishing a new go module. Ask Savvy to help you with a tricky shell command

Step 3: Generate Runbooks from Your Commands

If you have existing shell commands you’d like to compile into a runbook, use:

savvy record

Or, to create a runbook from your command history:

savvy record history

Imagine you have a magical notebook that remembers everything you’ve previously written. With Savvy, you can pick and choose the commands you want, ensuring that your runbook is valid and clean.

Step 4: Sharing and Parameterizing Runbooks

Runbooks are private by default but can be shared through public links from Savvy’s dashboard. You can also export them to markdown for easy integration into your existing documentation.

If you have special values in your runbooks that change frequently, you can parameterize them:

Replace hardcoded values with parameters

Savvy will simplify the execution of these values, making it a breeze to use your runbooks across different environments.

Step 5: Run Your Runbooks

When you’re ready to execute your runbooks, simply run:

savvy run

Savvy will guide you through executing each command step-by-step, filling in necessary parameters along the way. Imagine having a skilled tour guide leading you through an unfamiliar landscape—this is how Savvy manages your commands!

Troubleshooting Your Savvy Experience

Even the best tools can run into snags! Here are some common troubleshooting tips:

  • Not able to install Savvy? Double-check your internet connection and ensure you’re using the correct command.
  • Runbooks are not executing properly? Make sure all aliases resolve correctly by testing them in your terminal individually.
  • Need further assistance? Create an issue on our GitHub repository or join our Discord server for community help.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

FAQs

Here are some frequently asked questions to help you get the most out of Savvy:

  • How do I uninstall Savvy? Run the command rm -rf ~/.savvy and rm -rf ~/.config/savvy.
  • Which shells does Savvy support? It works with zsh, bash, and fish. If you’d like a different shell supported, please create an issue on GitHub.
  • Does Savvy work on Windows? Not at this time, but there are plans for future updates.

Conclusion

By utilizing Savvy’s CLI, you can easily create, share, and manage runbooks like a pro. It’s a powerful tool that not only fosters productivity but also enhances your command line experience!

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox