Standard Mode
CLI to run commands from your terminal to manage the lifecycle of your Ampt application.
Standard mode allows developers to run commands from your terminal without having to open an interactive session. Login is still required.
note
Standard Mode is for running one off commands including headless mode when using for CI/CD or other automated commands. Developers should use the Interactive Shell when iterating on code.
ampt login
Logs the user in via the browser. You will need to verify the code you see in the browser.
Terminalampt loginℹ︎︎ Your browser should open automatically. ℹ︎︎ If not, open the following login url: →︎︎ https://ampt.dev/activate?user_code=XXXX-XXXX ℹ︎︎ Your confirmation code is: XXXX-XXXX ⚠︎︎ This code will expire in 15 minutes.
ampt logout
Logs the user out of the current session
Terminalampt logout
ampt reset [--yes]
Resets your developer sandbox by wiping the data table, removing uploaded files from storage, clearing the code archive and any cached node_modules, and performing a full code re-sync from your local directory. Your sandbox URL stays the same.
This is useful when accumulated state from testing, running scripts, or iterating with AI coding agents causes your sandbox to drift from what a clean deploy would look like.
Running this command will ask for confirmation, or you can pass --yes to skip the prompt.
Terminalampt reset
You can use import to reseed data after a reset:
Terminalampt reset --yes ampt import seed-data.json
ampt deploy [NAME] [--container]
Deploys the code from your local directory to the provided permanent environment. If no NAME is provided, it will prompt you for an environment name.
A permanent environment is a long-lived stage/environment to host your app. Common names for permanent environments are prod, staging, qa, and dev.
If a script named ampt:build is defined in package.json, it will be run before deploying.
Use --region <code> to specify the region where the new environment will be created.
Terminalampt deploy prod
note
Ampt supports the Lambda Container Packaging format when building and deploying applications. This allows bundled application code to exceed the standard 250MB limit imposed by Lambda functions, supporting bundled application sizes up to 2GB.
To deploy your application using the container packaging format, simply add --container to the deploy command when you are deploying a new environment. This only needs to be done the first time you deploy an environment and may take a few minutes to complete.
ampt install [PACKAGENAME]
Installs the specified npm package into your application. If you did not provide a package name, it'll simply install all your app's dependencies listed in package.json.
Install an npm dependency:
Terminalampt install @ampt/data
Install a dev dependency with --dev:
Terminalampt install @11ty/eleventy --dev
ampt uninstall [PACKAGENAME]
Uninstalls the specified npm package from your application.
Terminalampt uninstall @11ty/eleventy
ampt run [SCRIPTNAME | FILEPATH][-- npm-arguments [-- script-arguments]]
Runs the npm script ampt:<SCRIPTNAME> in your package.json or the FILEPATH of a JavaScript/TypeScript file locally on your sandbox. The script will have access to the selected stage's params, data, and storage.
See Running Scripts for more detailed usage information!
package.json{ "name": "my-ampt-app", ... "scripts": { "start": "ampt", "ampt:build": "eleventy" // Namespaced npm script ... }, ... }
Run ampt:build from your package.json:
Terminalampt run build
Run the local script ./scripts/migrate.js directly:
Terminalampt run ./scripts/migrate.js
ampt stop
Stops the local development server started by ampt run dev. Reports if no server is currently running.
Terminalampt stop
ampt import [FILENAME] [--overwrite]
Imports data from the FILENAME in your local directory to your sandbox. If no FILENAME is provided, it will default to data.json. By default, the data will be merged with existing data. If you specify the -o or --overwrite flag, all data will be cleared and reseeded.
Terminalampt import data.json --overwrite
ampt export [FILENAME] [--overwrite]
Exports data from your sandbox to a JSON file named FILENAME in your current working directory. If no FILENAME is provided, it will default to data.json. If the FILENAME already exists, you can specify the -o or --overwrite flag to overwrite the existing file.
Terminalampt export my-exported-data.json
ampt params get [PARAM_NAME]
Lists all parameters or shows details for a specific parameter. When called without a name, displays a table of all parameters. When called with a name, shows the parameter's value, description, and source (org-level, app-level, or environment override).
Terminalampt params get
Get details for a specific parameter:
Terminalampt params get MY_SECRET
ampt params set PARAM_NAME VALUE [--description "DESCRIPTION"]
Sets an app-level parameter. Use --description to add a description.
Terminalampt params set API_KEY sk-abc123 --description "OpenAI key"
ampt params delete PARAM_NAME [--yes]
Deletes an app-level parameter. Running this command will ask for confirmation, or you can pass --yes to skip the prompt.
Terminalampt params delete OLD_PARAM --yes
ampt whoami
Displays the currently logged-in user, account details, and every organization you have access to along with your permission level in each. Useful for verifying your identity when switching between organizations or troubleshooting access issues.
Terminalampt whoami
ampt version
Displays the running version of the CLI. -v flag is the short form for version.
Terminalampt version v1.0.28
ampt url
Displays the current URL of your sandbox.
Terminalampt url→︎ https://{your-sandbox-url}.ampt.dev
ampt open
Opens the dashboard to the current app in your default browser. ampt dashboard is an alias for this command.
Terminalampt openℹ︎ View your app in the dashboard →︎ https://ampt.dev/{your-dashboard-link}
ampt help
Displays a help screen that shows all the available commands and their options.
ampt logs [--env NAME] [--follow] [--level LEVEL] [--type TYPE] [--search TEXT] [--json]
Fetches historical logs from the specified environment, or streams live logs when --follow is passed.
Use --env <name> to target a specific environment. Use --follow (or -f) to stream logs in real-time — press Ctrl+C to stop.
Terminalampt logs --env prod
Stream logs in real-time:
Terminalampt logs --env prod --follow
Filter by log level and output raw JSON:
Terminalampt logs --env prod --level error --json
Filter by text:
Terminalampt logs --env prod --follow --search "payment"
Available flags:
| Flag | Description |
|---|---|
--env <name> | Environment to fetch logs from (required) |
--follow, -f | Stream logs in real-time |
--level <level> | Filter by log level |
--type <type> | Filter by log type |
--search <text> | Only show logs containing this text |
--json | Output logs as raw JSON |
ampt stages
Lists all permanent stage environments for the current app in a table showing name, URL, region, last updated, and deployment status. Must be run inside an Ampt app directory.
Terminalampt stages
ampt delete [NAME] [--yes]
Deletes a preview or sandbox environment by name. Running this command will ask for confirmation, or you can pass --yes to skip the prompt.
Terminalampt delete my-preview-env
Delete without a confirmation prompt:
Terminalampt delete my-preview-env --yes
note
Only preview and personal (sandbox) environment types can be deleted via the CLI. Permanent environments such as prod and staging must be deleted through the Ampt dashboard.
ampt clone {ORG}/{APP}
Clones an app's associated git repository into the current directory. Requires git to be installed and the app to have a connected repository.
Terminalampt clone my-org/my-app
ampt docs
Opens the Ampt documentation in your default browser.
Terminalampt docs