Overview
The Ampersand Command Line Interface (CLI) enables you to deploy integrations and interact with the Ampersand platform.
Installation
For macOS using Homebrew
To install the CLI using Homebrew (macOS users):
Updating to new version
If you already have the CLI installed, and want to upgrade to the latest version, run:
For Windows
-
Visit Ampersand CLI Releases.
-
Download the appropriate binary for your machine’s architecture.
-
Extract the downloaded folder containing the
exe
file. -
To use the CLI, open Command Prompt in the extracted folder:
- Navigate to the folder in File Explorer
- Click in the address bar
- Type
cmd
and press Enter
-
Verify the installation by running:
This should display a list of commands or options available in the CLI, confirming that it is properly configured and ready for use.
-
To make the CLI accessible from anywhere, add the folder to your
PATH
:- Open the Start menu
- Search for “Environment Variables”
- Click “Edit the system environment variables”
- Click “Environment Variables”
- Under “System variables”, select “Path” and click “Edit”
- Click “New” and add the path to the folder containing the
exe
file - Click “OK” on all windows
For other systems
- Visit Ampersand CLI Releases.
- Download the appropriate binary for your machine’s architecture.
- Place the binary somewhere on your
PATH
(e.g./usr/bin
).
Note:
To ensure the CLI is accessible from anywhere, the binary must be placed in a directory listed in your PATH
. You can inspect your current PATH
using the following commands:
- Linux/macOS:
Using the CLI
Checking the version
To check the version and build information of your CLI, run:
Log into your Ampersand account
Ensure you have an Ampersand account. Create one on the Ampersand Dashboard if you don’t already have one.
To log into the CLI:
To log out:
Deploy integrations
Once you have defined your integrations in an amp.yaml
file, use the following commands to deploy:
View all commands
To list all available commands and global flags:
Note: For detailed explanations of each command and its options, refer to the Command Reference section.
Running in CI/CD Environments
If you are using the Ampersand CLI in a CI/CD system (e.g. GitHub Actions):
- Generate an API key in the Ampersand Dashboard.
- Use the API key with the
key
flag.
Alternatively, you can set the API key as an environment variable:
Debug mode
For more detailed output, run commands with the debug
flag.
Was this page helpful?