Skip to content

Instantly share code, notes, and snippets.

@varantes
Last active September 3, 2022 13:32
Show Gist options
  • Save varantes/cd6028ba9b61f6e7208c31501f1238c3 to your computer and use it in GitHub Desktop.
Save varantes/cd6028ba9b61f6e7208c31501f1238c3 to your computer and use it in GitHub Desktop.

LocalStack CLI

The LocalStack CLI aims to simplify starting and managing LocalStack. It provides convenience features to start LocalStack on your local machine, as a Docker container on your machine, or even on a remote Docker host. In addition you can easily check the status or open a shell in your LocalStack instance if you want to take a deep-dive.

Prerequisites

Please make sure to install the following tools on your machine before moving on:

  • python (Python 3.7 up to 3.10 is supported)
  • pip (Python package manager)
  • docker

Installation

The easiest way to install the LocalStack CLI is via pip:

python3 -m pip install localstack

Note: Please do not use sudo or the root user - LocalStack should be installed and started entirely under a local non-root user. If you have problems with permissions in MacOS X Sierra, install with python3 -m pip install --user localstack.

Updates

The LocalStack CLI also allows you to easily update the different components of LocalStack. You can decide to update the CLI itself, the LocalStack Docker images, or all at once:

Print the available commands

localstack update

Update all components

localstack update all

Only update the LocalStack docker images

localstack update docker-images

Only update the LocalStack CLI

localstack update localstack-cli

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment