Skip to content

Getting started

Use the CLI without an account

The Stacktape CLI is open source under the MIT license and works without a Stacktape account. It deploys with your own AWS credentials, straight to AWS. It also sends anonymous usage telemetry, which you can turn off (see Telemetry). You can deploy, update, roll back and delete stacks, run dev mode, and read logs and secrets without signing up for anything.

The Stacktape Console adds what a team shares: deploy history, costs, alerts, error tracking and access control. It is free while your organization's managed AWS spend is up to $200 a month. You can connect it later with one command, and your existing stacks appear in it without a redeploy.

How the CLI chooses its mode

  • Signed in. When the CLI has a Stacktape API key, from stacktape login or the STACKTAPE_API_KEY environment variable, it works with the Console.
  • Without an account. Otherwise, stack commands run on your local AWS credentials and don't depend on any Stacktape service. No command asks you to sign in first.

A stack is the same in both modes. The same configuration gives the same stack name, the same deployment bucket and the same resources. The only differences are additions that Console features need, such as organization-wide alarms.

Deploy without an account

The CLI uses the AWS credentials it finds the same way the AWS CLI does: environment variables such as AWS_ACCESS_KEY_ID or AWS_PROFILE, the default profile in ~/.aws, or an AWS IAM Identity Center (SSO) session. Pass --profile to pick a profile.

aws sso login --profile my-dev-accountstacktape deploy --project my-app --stage dev --region eu-west-1 --profile my-dev-account

The stack goes to the AWS account those credentials belong to. Resources get AWS URLs or the custom domains you configure.

What works without an account

FeatureWithout an accountWhy
Deploy, update, roll back and delete stacksWorksRuns against AWS with your credentials
Dev mode, scripts, bastion tunnels and container sessionsWorksRuns on your machine and in your AWS account
Logs, metrics, secrets and parametersWorksRead from your AWS account
Synthetic testsWorksCloudWatch Synthetics runs them in your AWS account; the Console adds a page with each run
Alarms in your configuration, with slack, ms-teams, discord, email or webhook channelsWorksCloudWatch alarms live in your AWS account, and the stack delivers these notifications itself
Deploy history, costs and team accessNeeds the ConsoleStored by Stacktape and shared by your team
Alarm channels of type console-channel and slack-app, and deploy notificationsNeeds the ConsoleThe Console delivers these alerts
Uptime checksNeeds the ConsoleStacktape runs the probes from outside your account
Error tracking, incidents and incident AINeeds the ConsoleStacktape stores and groups the events
Default *.stacktape-app.com domains, including the one a load balancer without its own domain needs for HTTPSNeeds the ConsoleStacktape owns that domain
Git deployments, PR previews and Stacktape-managed runnersNeeds the ConsoleThe Console receives the Git events and runs the jobs
Organization-wide guardrails, security reports and the audit logNeeds the ConsoleThey apply to, and are shared by, the whole organization

Commands that are Console features by nature, such as stacktape org list, stacktape project create, stacktape error list, stacktape incident list, stacktape whoami and stacktape deploy --runner ec2, ask you to sign in and say why.

When the configuration uses a Console feature

When a configuration uses something only the Console provides, validation stops before anything is deployed. The error names the resources and how to fix it, for example:

Uptime checks (`homepageCheck`) need the Stacktape Console (free up to $200/month of AWS spend). Run: stacktape connect — your stacks are added as they are, no redeploy. Or remove the uptime-check resources.

Connect the Console later

Run stacktape connect from a terminal where your AWS credentials are set. It signs you in, connects the AWS account of your credentials to your organization and adds the Stacktape stacks already in that account to the Console. It never redeploys, renames or replaces anything. Add the Console explains each step, what it creates in your account and how to go back with stacktape logout.

CI/CD without an account

Give the pipeline AWS credentials and run the CLI. No Stacktape API key is needed. With GitHub Actions, use an IAM role that trusts GitHub's OIDC provider:

YAML
name: Deployon:  push:    branches: [main]permissions:  id-token: write  contents: readjobs:  deploy:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4      - uses: aws-actions/configure-aws-credentials@v4        with:          role-to-assume: arn:aws:iam::123456789012:role/github-deploy          aws-region: eu-west-1      - run: npx stacktape deploy --project my-app --stage production --region eu-west-1 --yes

Other CI providers work the same way: set AWS credentials in the job, then run stacktape deploy. See Custom CI/CD for more providers.

Hints about the Console

Without an account, the CLI sometimes prints one dim line that mentions the Console, for example after the first successful deploy of a project:

Deploy history, costs and alerts for this stage, shared with your team: stacktape connect (free)

The CLI also prints a hint when a deploy waits because someone else is deploying the same stage. It first says who holds the lock.

A hint never opens a browser or asks a question. It appears only in an interactive terminal, after the command's result, and each hint at most once per project on this machine. It never appears in CI, in JSON output, in quiet mode or after a failure. Set STP_NO_HINTS=1 to turn hints off.

Telemetry

Without an account, the CLI sends anonymous usage data, so we can see which commands fail and fix them. The first time you run the CLI, it tells you what it sends and how to turn it off, before it sends anything.

It sends only these fields:

  • the command name
  • whether the command succeeded, and the error code or class if it failed
  • the CLI version, operating system and CPU architecture
  • whether it runs in CI
  • a random installation ID

It never sends project, stack, stage or AWS account names or IDs, file paths, configuration contents, or error messages.

Telemetry is off when STP_DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 is set, and always off in CI.

stacktape init also records anonymous outcome statistics of the analysis: which frameworks it found, whether the deploy worked and how long the analysis took. They never include code, names or files, and the same variables turn them off.

When you're signed in

When you are signed in, the CLI sends usage statistics and reports of its own crashes, so we can see which commands fail and fix them. Set STP_DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 to turn both off.

  • After every command: the command name, the names of the options you used (not their values), how long it took, whether it succeeded, the error code if it failed, your operating system, locale, time zone and the CLI version.
  • When the CLI crashes: the error type, message and stack trace, the command, your operating system, CPU architecture and whether it ran in CI. The CLI prints an error ID you can give our support. Errors in your configuration, code or AWS account are not reported this way; only failures of the CLI itself are.
  • Identity: a random ID of your machine. After stacktape login, events are linked to your Stacktape user and organization, and your account's email and name are attached to your user.

Before a crash report leaves your machine, the CLI masks tokens and other credentials, email and IP addresses, AWS account IDs and the user name in home-directory paths. Error messages can still contain other text, such as file or resource names. The CLI never sends configuration values, source code, environment variables or AWS credentials. Stacktape processes this data in PostHog in the EU.

License

The CLI is open source under the MIT license. Its source is on GitHub. The Stacktape Console is a proprietary hosted service.

Use the CLI without an account FAQ

Do I need a Stacktape account to deploy?

No. The CLI deploys with your own AWS credentials. You need an account only for Console features such as deploy history, alerts, error tracking and Git deployments.

Will connecting the Console change my stacks?

No. stacktape connect finds the stacks already in your AWS account and shows them in the Console without deploying. Later deploys add only what the Console features you use need.

Does the CLI contact Stacktape when I'm not signed in?

A deploy never depends on a Stacktape service. The CLI still makes these requests:

  • the anonymous telemetry described above, unless you turn it off
  • a check for a newer CLI version, and short notices such as planned maintenance
  • downloads of Stacktape's public CloudFormation resource types from a public S3 bucket, when a stack uses them. No sign-in is involved.
  • from stacktape init, the monthly price estimate: it sends the generated configuration and the region to Stacktape's public price estimator. Your source code is never sent.

The telemetry, the version check and the price estimate never stop a command when they fail.