-
Notifications
You must be signed in to change notification settings - Fork 2
Improve Readme #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+94
−50
Merged
Improve Readme #77
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7ce02a0
Improve Readme
silv-io 51cbd25
Address rabbit
silv-io 873868a
Align with repo description
silv-io dae5321
Change NPM header
silv-io f73b74c
Address comments
silv-io 2838a1e
Fix typo
silv-io 658498a
Fix description wording
silv-io File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,78 +1,103 @@ | ||
| # lstk | ||
| Localstack's new CLI (v2). | ||
|
|
||
| ## Configuration | ||
| lstk is a command-line interface for LocalStack built in Go with a modern terminal UI, and native CLI experience for managing and interacting LocalStack deployments. 👾 | ||
|
|
||
| `lstk` uses Viper with a TOML format. | ||
| ## Features | ||
|
|
||
| For finding the correct config, we have this lookup order: | ||
| 1. `./lstk.toml` (project-local) | ||
| 2. `$HOME/.config/lstk/config.toml` | ||
| 3. `os.UserConfigDir()/lstk/config.toml` | ||
| - **Start / stop** LocalStack emulators with a single command | ||
| - **Interactive TUI** — a Bubble Tea-powered terminal UI when run in an interactive shell | ||
| - **Plain output** for CI/CD and scripting (auto-detected in non-interactive environments) | ||
| - **Log streaming** — tail emulator logs in real-time with `--follow` | ||
| - **Browser-based login** — authenticate via browser and store credentials securely in the system keyring | ||
| - **Shell completions** — bash, zsh, and fish completions included | ||
|
|
||
| When no config file exists, `lstk` creates one at: | ||
| - `$HOME/.config/lstk/config.toml` if `$HOME/.config` exists | ||
| - otherwise `os.UserConfigDir()/lstk/config.toml` | ||
| ## Installation | ||
|
|
||
| Use `lstk config path` to print the resolved config file path currently in use. | ||
| ### Homebrew (macOS / Linux) | ||
|
|
||
| ## Versioning | ||
| `lstk` uses calendar versioning in a SemVer-compatible format: | ||
| ```bash | ||
| brew install localstack/tap/lstk | ||
silv-io marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ### NPM | ||
|
|
||
| ```bash | ||
| npm install -g @localstack/lstk | ||
| lstk start | ||
silv-io marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ### Manual (binary download) | ||
|
|
||
| Download the latest release for your platform from the [GitHub Releases](https://github.com/localstack/lstk/releases) page. Binaries are available for: | ||
silv-io marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - `linux/amd64`, `linux/arm64` | ||
| - `darwin/amd64`, `darwin/arm64` (macOS) | ||
| - `windows/amd64`, `windows/arm64` | ||
|
|
||
| - `YYYY.M.patch` | ||
| - Example (current format): `2026.2.0` | ||
| ## Requirements | ||
|
|
||
| Release tags are the source of truth for published versions. | ||
| - [Docker](https://docs.docker.com/get-docker/) must be running | ||
| - A [LocalStack Account](https://app.localstack.cloud) | ||
|
|
||
| ## Version Output | ||
| The CLI exposes version info through: | ||
|
|
||
| - `lstk version` | ||
| - `lstk --version` | ||
| ## Usage | ||
|
|
||
| Output format: | ||
| ```bash | ||
| # Start the LocalStack emulator (interactive TUI in a terminal) | ||
| lstk | ||
|
|
||
| # Start non-interactively (e.g. in CI) | ||
| LOCALSTACK_AUTH_TOKEN=<token> lstk start | ||
|
|
||
| - `lstk <version> (<commit>, <buildDate>)` | ||
| # Stop the running emulator | ||
| lstk stop | ||
|
|
||
| At local development time (without ldflags), defaults are: | ||
| # Stream emulator logs | ||
| lstk logs --follow | ||
|
|
||
| - `version=dev` | ||
| - `commit=none` | ||
| - `buildDate=unknown` | ||
| # Log in (opens browser for authentication) | ||
| lstk login | ||
|
|
||
| ## Releasing with GoReleaser | ||
| Release automation uses the CI workflow plus one helper workflow: | ||
| # Log out (removes stored credentials) | ||
| lstk logout | ||
|
|
||
| 1. `Create Release Tag` (`.github/workflows/create-release-tag.yml`) | ||
| 2. `LSTK CI` (`.github/workflows/ci.yml`) | ||
| # Show resolved config file path | ||
| lstk config path | ||
|
|
||
| How it works: | ||
| # Show version info | ||
| lstk version | ||
| ``` | ||
|
|
||
| 1. Manually run `Create Release Tag` from GitHub Actions (default ref: `main`). | ||
| 2. The workflow computes and pushes the next CalVer tag for the current UTC month. | ||
| 3. Pushing that tag triggers `LSTK CI`. | ||
| 4. In `LSTK CI`, the `release` job runs only for tag refs and publishes the GitHub release with GoReleaser. | ||
| ## Authentication | ||
|
|
||
| ## Published Artifacts | ||
| Each release publishes binaries for: | ||
| `lstk` resolves your auth token in this order: | ||
|
|
||
| - `linux/amd64` | ||
| - `linux/arm64` | ||
| - `darwin/amd64` | ||
| - `darwin/arm64` | ||
| - `windows/amd64` | ||
| - `windows/arm64` | ||
| 1. **System keyring** — a token stored by a previous `lstk login` | ||
| 2. **`LOCALSTACK_AUTH_TOKEN` environment variable** | ||
| 3. **Browser login** — triggered automatically in interactive mode when neither of the above is present | ||
|
|
||
| Archive formats: | ||
| > **Note:** If a keyring token exists, it takes precedence over `LOCALSTACK_AUTH_TOKEN`. Setting or changing the environment variable will have no effect until the keyring token is removed. Run `lstk logout` to clear the stored keyring token, after which the env var will be used. | ||
|
|
||
| - `tar.gz` for Linux and macOS | ||
| - `zip` for Windows | ||
| ## Configuration | ||
|
|
||
| Each release also includes `checksums.txt`. | ||
| `lstk` uses a TOML config file, created automatically on first run. | ||
|
|
||
| Config lookup order: | ||
| 1. `./lstk.toml` (project-local) | ||
silv-io marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 2. `$HOME/.config/lstk/config.toml` | ||
| 3. `os.UserConfigDir()/lstk/config.toml` | ||
|
|
||
| ## Local Dry Run | ||
| To validate release packaging locally without publishing: | ||
| To see which config file is currently in use: | ||
|
|
||
| ```bash | ||
| goreleaser release --snapshot --clean | ||
| lstk config path | ||
| ``` | ||
|
|
||
| ## Versioning | ||
silv-io marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| `lstk` uses [ZeroVer](https://0ver.org/) (`0.MINOR.PATCH`). The project is in active development and has not reached a stable 1.0 release. | ||
|
|
||
|
|
||
| ## Reporting bugs | ||
| Feedback is welcome! Use the repository issue tracker for bug reports or feature requests. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Releasing `lstk` | ||
|
|
||
| Release automation uses two workflows: | ||
|
|
||
| 1. `Create Release Tag` (`.github/workflows/create-release-tag.yml`) | ||
| 2. `LSTK CI` (`.github/workflows/ci.yml`) | ||
|
|
||
| How it works: | ||
|
|
||
| 1. Manually run `Create Release Tag` from GitHub Actions (default ref: `main`), choosing a `patch` or `minor` bump. | ||
| 2. The workflow computes and pushes the next version tag (e.g. `v0.2.4`). | ||
| 3. Pushing the tag triggers `LSTK CI`, which runs the `release` job and publishes the GitHub release with GoReleaser. | ||
|
|
||
| To validate release packaging locally without publishing: | ||
|
|
||
| ```bash | ||
| goreleaser release --snapshot --clean | ||
| ``` | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.