sevalla, runs the Sevalla API v3 from a terminal or a CI job. A command sends a request with your API key and prints the result as a table or as JSON. This reference covers version 1.10.1, released Oct 18, 2026: all 216 commands with their arguments, flags and defaults, and the API operation each one calls. To install the CLI, sign in and see the commands you use most, read Sevalla CLI in the platform docs.
Install and sign in
# Homebrew
brew install sevalla/tap/sevalla
# npm, with Node.js 24 or later
npm install -g @sevalla/cli
# Shell script: installs the macOS or Linux binary to /usr/local/bin/sevalla
bash <(curl -fsSL https://raw.githubusercontent.com/sevalla/cli/main/install.sh)
sevalla-windows-x64.exe from the latest release and put it on your PATH. To update or remove the CLI, see Update or uninstall.
# Sign in through the browser. The CLI saves the new API key to ~/.config/sevalla/credentials.json.
sevalla login
sevalla auth status # Authenticated (source: credentials_file)
# In CI, pass an API key instead. It takes priority over the saved key.
export SEVALLA_API_TOKEN="svl_..."
sevalla auth status # Authenticated (source: environment)
Global flags and environment variables
| Flag or variable | What it does |
|---|---|
--json | Prints JSON instead of tables. The CLI also prints JSON whenever its output isn’t a terminal: a pipe, a file or a CI log. In 1.10.1 the flag on its own doesn’t switch a terminal to JSON, so pipe the output (to jq, for example) to read JSON in a terminal. |
--api-url <url> | Uses another API base URL. In 1.10.1 only sevalla login reads this flag and other commands ignore it: set SEVALLA_API_URL instead. |
-V, --version | Prints the version. The Homebrew, shell script and Windows binaries print 1.10.1. An npm install prints 0.0.0-dev: check it with npm ls -g @sevalla/cli. |
-h, --help | Prints the arguments and flags of a command or a group, for example sevalla apps deployments --help. |
SEVALLA_API_TOKEN | The API key to use. Overrides the key from sevalla login. |
SEVALLA_API_URL | The API base URL. Default https://api.sevalla.com/v3. |
How commands work
- Syntax.
<value>is a value you supply. A flag in brackets, such as[--branch <branch>], is optional. A flag without brackets is required: without it, the command stops witherror: required option '--cluster <id>' not specified. An unknown flag stops it witherror: unknown option. - IDs.
<id>and names that end in-idare theidvalues that list commands print. Services, deployments and most other objects have UUIDs, and the dashboard shows a service ID on its Settings tab. - Values.
<bool>istrueorfalse. Plural values, such as<ips>,<keys>,<events>or<list>, are comma-separated lists without spaces:--ip-list 203.0.113.10,198.51.100.0/24.<date>is an ISO 8601 timestamp in UTC:2026-10-18T09:00:00Z. Quote values that contain spaces. - Parent IDs. A command on part of a service takes the parent ID as an argument (
sevalla apps domains delete <app-id> <domain-id>) or as a flag (sevalla apps domains get <domain-id> --app-id <id>). Each invocation below shows which. - Pages. List commands with
[--page <number>] [--per-page <number>]return one page.--pagedefaults to1and--per-pageto25. The CLI sends them asoffsetandlimit, and the API accepts alimitof1to100(see Pagination). List commands without these flags print what the API returns in one response. - Metrics. Time-series commands take
[--from <date>](default 24 hours ago),[--to <date>](default now) and[--interval <seconds>](default3600). - Dry run.
--dry-runprints a JSON summary and calls nothing. Acreateorupdateright after a group name, such assevalla apps createorsevalla webhooks update, andsevalla pipelines preview updateprint the flag values you passed, or the method, path and body with--data. Every other command prints only the command name and the IDs, not the values it would send. - Raw body.
apps create,apps update,usage-alerts createandusage-alerts updatetake--data <json>: the CLI sends that JSON as the request body and ignores the other flags. On the two create commands, the required flags are still required. - Deletes. Delete and remove commands need
--confirm, and the CLI doesn’t prompt. Without it, the command exits withUse --confirm to confirm deletion.A--dry-rundoesn’t need--confirm. - JSON. Every command except
login,logout,completionandschemaaccepts--json. See Global flags and environment variables for when it applies.
Output and errors
- With JSON output, a list command prints the array of items and the other commands print the object the API returns. A delete prints
"deleted": truewith the IDs, and an action that gets no response body prints{"success": true}. - In a terminal, the CLI prints a table or a short list of fields, and a list ends with a line such as
Showing 1-25 of 140. Use JSON output to get every field. - Errors go to stderr and the command exits with status
1. With JSON output, an API error prints{"error": {"status": 404, "message": "Not Found"}}, withcodeanddetailwhen the API sends them. See Errors. - A request that takes longer than 30 s fails.
Authentication
| Command | What it does | API operation |
|---|---|---|
sevalla login | Signs you in through the browser. Prints a device code, opens https://app.sevalla.com/authorize, checks every 5 s until you authorize, then saves the new API key to ~/.config/sevalla/credentials.json. If you’re signed in already, it warns and signs you in again. | Create device code, Poll device code status |
sevalla logout | Deletes ~/.config/sevalla/credentials.json. The API key stays valid until you delete it under Tools > API keys. | None |
sevalla auth status | Shows whether the CLI has a key and where it comes from: environment or credentials_file. JSON: {"logged_in": true, "source": "environment"}. It doesn’t check the key with the API: sevalla api-keys validate does. | None |
Applications
| Command | What it does | API operation |
|---|---|---|
sevalla apps list [--page <number>] [--per-page <number>] | Lists applications: ID, name and status. | List applications |
sevalla apps get <id> | Shows an application. | Get application |
sevalla apps create --name <name> --cluster <id> --source <source> [--project <id>] [--git-type <type>] [--repository <repo>] [--branch <branch>] [--docker-registry <id>] [--docker-image <image>] [--data <json>] [--dry-run] | Creates an application with a default web process and automatic deployments off. It doesn’t deploy: run sevalla apps deployments trigger next. | Create application |
sevalla apps update <id> [--display-name <name>] [--branch <branch>] [--build-type <type>] [--dockerfile-path <path>] [--docker-image <image>] [--git-lfs-enabled <bool>] [--data <json>] [--dry-run] | Updates an application. Build changes apply at the next deployment. | Update application |
sevalla apps delete <id> --confirm [--dry-run] | Deletes an application with its processes, deployments and environment variables. Fails while a deployment is running. | Delete application |
sevalla apps activate <id> [--dry-run] | Starts a suspended application again. | Activate application |
sevalla apps suspend <id> [--dry-run] | Stops every process of an application and keeps its settings, environment variables and deployments. | Suspend application |
sevalla apps clone <id> --display-name <name> [--cluster <id>] [--dry-run] | Copies an application with its processes, environment variables and settings, and deploys the copy. | Clone application |
sevalla apps purge-cache <id> [--dry-run] | Clears the edge cache of an application. | Purge edge cache |
sevalla apps cdn-toggle <id> [--dry-run] | Turns the CDN off if it’s on, or on if it’s off, and returns the new state. | Toggle CDN |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
apps create | --name <name> | string | None | Required. Display name, 2 to 64 characters. |
apps create | --cluster <id> | UUID | None | Required. Location, from sevalla resources clusters. |
apps create | --source <source> | privateGit, publicGit or dockerImage | None | Required. A repository from a connected Git account, a public repository URL, or a Docker image. |
apps create | --project <id> | UUID | None | Project to add the application to. |
apps create | --git-type <type> | github, bitbucket or gitlab | Detected | Git provider, for privateGit when the API can’t detect it. |
apps create | --repository <repo> | URL | None | Repository URL. The API requires it for privateGit and publicGit. |
apps create | --branch <branch> | string | Repository default branch | Branch to deploy. |
apps create | --docker-registry <id> | UUID | None | Registry credential for a private image, from sevalla docker-registries list. |
apps create | --docker-image <image> | string | None | Image with a tag or digest, such as nginx:1.27. The API requires it for dockerImage. |
apps create, apps update | --data <json> | JSON object | None | Request body to send instead of the flags. The fields are on Create application and Update application. |
apps update | --display-name <name> | string | None | New display name, 1 to 64 characters. |
apps update | --branch <branch> | string | None | New default branch for deployments. |
apps update | --build-type <type> | nixpacks, railpack, dockerfile or pack | None | Build strategy. |
apps update | --dockerfile-path <path> | string | None | Dockerfile path in the repository, for the dockerfile build type. |
apps update | --docker-image <image> | string | None | Image to run, for a dockerImage application. |
apps update | --git-lfs-enabled <bool> | true or false | None | Fetches Git LFS objects at checkout, which is on by default. Any value other than true turns it off. |
apps clone | --display-name <name> | string | None | Required. Name of the copy, unique in the company. |
apps clone | --cluster <id> | UUID | Cluster of the source | Location of the copy. |
apps create doesn’t deploy, and --data sends fields that have no flag:
# Create an application from a public repository, then start its first deployment
APP_ID=$(sevalla apps create --name storefront --cluster "$CLUSTER_ID" \
--source publicGit --repository https://github.com/acme/storefront --branch main | jq -r '.id')
sevalla apps deployments trigger "$APP_ID"
# Build from a Dockerfile in a subdirectory: docker_context has no flag
sevalla apps update "$APP_ID" --data '{"build_type": "dockerfile", "dockerfile_path": "docker/Dockerfile", "docker_context": "docker"}'
Deployments
| Command | What it does | API operation |
|---|---|---|
sevalla apps deployments list --app-id <id> [--page <number>] [--per-page <number>] | Lists the deployments of an application, newest first: ID, status and creation time. | List deployments |
sevalla apps deployments get <deployment-id> --app-id <id> | Shows a deployment and its status. | Get deployment |
sevalla apps deployments trigger <app-id> [--branch <branch>] [--dry-run] | Deploys the latest commit of --branch, or of the default branch without it, and returns the new deployment. | Trigger deployment |
sevalla apps deployments rollback <app-id> [--dry-run] | Creates a deployment from the build of the most recent successful deployment, with no rebuild. It takes no deployment ID. | Rollback deployment |
sevalla apps deployments cancel <deployment-id> --app-id <id> | Cancels a waiting or running deployment. A finished deployment returns 400. | Cancel deployment |
sevalla apps deployments logs <deployment-id> --app-id <id> | Prints the build and rollout log: up to 1,000 entries from the last hour, oldest first. | Get application deployment logs |
logs sends no time range, so the API returns the last hour. For an older deployment, call Get application deployment logs with from and to.
Processes
| Command | What it does | API operation |
|---|---|---|
sevalla apps processes list --app-id <id> [--page <number>] [--per-page <number>] | Lists the processes of an application: ID, key, start command, internal hostname, scaling and size. | List processes |
sevalla apps processes get <process-id> --app-id <id> | Shows a process. | Get process |
sevalla apps processes create <app-id> --name <name> --type <type> --resource-type <id> [--command <command>] [--instances <count>] [--schedule <cron>] [--job-start-policy <policy>] [--dry-run] | Creates a process with a fixed number of instances. It starts at the next deployment. | Create process |
sevalla apps processes update <process-id> --app-id <id> [--name <name>] [--command <command>] [--resource-type <id>] [--instances <count>] | Updates a process. Size and scaling changes apply at the next deployment. | Update process |
sevalla apps processes delete <process-id> --app-id <id> --confirm | Deletes a process other than the web process. It’s removed at the next deployment. | Delete process |
sevalla apps processes trigger <process-id> --app-id <id> | Runs a cron job now, outside its schedule. | Trigger cron job |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
apps processes create | --name <name> | string | None | Required. Display name, 1 to 255 characters. |
apps processes create | --type <type> | web, worker, cron or job | None | Required. An application has at most one web process. |
apps processes create | --resource-type <id> | ID | None | Required. Size, from sevalla resources process-types. |
apps processes create | --command <command> | string | Empty | Start command. |
apps processes create | --instances <count> | integer | 1 | Number of instances. The CLI always sets manual scaling. |
apps processes create | --schedule <cron> | cron expression | None | Schedule, such as 0 3 * * *. The API requires it for cron processes. |
apps processes create | --job-start-policy <policy> | beforeDeployment, afterSuccessDeployment or afterFailedDeployment | None | When a job runs. The API requires it for job processes. |
apps processes update | --name <name> | string | None | New display name. |
apps processes update | --command <command> | string | None | New start command. |
apps processes update | --resource-type <id> | ID | None | New size, from sevalla resources process-types. |
apps processes update | --instances <count> | integer | None | Sets manual scaling with this number of instances, replacing any autoscaling. |
# Add a cron job, then deploy so that it starts
sevalla apps processes create "$APP_ID" --name nightly-report --type cron \
--resource-type "$SIZE_ID" --command "npm run report" --schedule "0 3 * * *"
sevalla apps deployments trigger "$APP_ID"
Process metrics
| Command | What it does | API operation |
|---|---|---|
sevalla apps processes metrics cpu-usage <app-id> <process-id> [--from <date>] [--to <date>] [--interval <seconds>] | CPU used over time, in cores. | Get process CPU usage |
sevalla apps processes metrics cpu-limit <app-id> <process-id> [--from <date>] [--to <date>] [--interval <seconds>] | CPU limit over time, in cores. | Get process CPU limit |
sevalla apps processes metrics memory-usage <app-id> <process-id> [--from <date>] [--to <date>] [--interval <seconds>] | Memory used over time, in bytes. | Get process memory usage |
sevalla apps processes metrics memory-limit <app-id> <process-id> [--from <date>] [--to <date>] [--interval <seconds>] | Memory limit over time, in bytes. | Get process memory limit |
sevalla apps processes metrics instance-count <app-id> <process-id> [--from <date>] [--to <date>] [--interval <seconds>] | Running instances over time. | Get process instance count |
sevalla apps processes metrics exit-codes <app-id> <process-id> [--from <date>] [--to <date>] | Exit codes in the range, each with its time and a description when one is known. | Get process exit codes |
Environment variables
| Command | What it does | API operation |
|---|---|---|
sevalla apps env-vars list --app-id <id> [--page <number>] [--per-page <number>] | Lists the environment variables of an application with their values. | List environment variables |
sevalla apps env-vars create <app-id> --key <key> --value <value> [--dry-run] | Adds an environment variable, available at build time and at runtime. It applies at the next deployment. | Create environment variable |
sevalla apps env-vars update <env-var-id> --app-id <id> [--key <key>] [--value <value>] | Changes the key or the value of an environment variable. It applies at the next deployment. | Update environment variable |
sevalla apps env-vars delete <app-id> <env-var-id> --confirm [--dry-run] | Deletes an environment variable. It applies at the next deployment. | Delete environment variable |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
apps env-vars create | --key <key> | string | None | Required. Name, 1 to 255 characters, unique in the application. |
apps env-vars create | --value <value> | string | None | Required. Up to 32,768 characters, stored encrypted. |
apps env-vars update | --key <key>, --value <value> | string | None | New name or value. An empty value isn’t sent. |
Domains
| Command | What it does | API operation |
|---|---|---|
sevalla apps domains list --app-id <id> [--page <number>] [--per-page <number>] | Lists the system and custom domains of an application: ID, name, status and whether it’s primary. | List application domains |
sevalla apps domains get <domain-id> --app-id <id> | Shows a domain with its verification status and DNS records. | Get application domain |
sevalla apps domains add <app-id> --name <name> [--dry-run] | Adds a custom domain, such as shop.example.com. Add the DNS records from the response: the status then moves from verification to pointing to active. | Add application domain |
sevalla apps domains update <domain-id> --app-id <id> --name <name> | Renames the subdomain of the system domain. Custom domains can’t be renamed. | Update application system domain |
sevalla apps domains delete <app-id> <domain-id> --confirm [--dry-run] | Deletes a custom domain. The system domain can’t be deleted: turn it off with toggle. | Delete application domain |
sevalla apps domains refresh-status <app-id> <domain-id> [--dry-run] | Checks the verification and DNS of a domain again, for example after you change its records. | Refresh application domain status |
sevalla apps domains set-primary <app-id> <domain-id> [--dry-run] | Makes a domain the primary domain, used for canonical URLs and redirects. | Set primary application domain |
sevalla apps domains toggle <app-id> <domain-id> [--dry-run] | Turns the system domain off or on. Custom domains can’t be toggled. | Toggle application system domain |
Deployment hook
| Command | What it does | API operation |
|---|---|---|
sevalla apps deployment-hook get <app-id> | Shows the deployment hook URL. Returns 404 when the hook is off. | Get deployment hook URL |
sevalla apps deployment-hook enable <app-id> [--dry-run] | Turns on the deployment hook and returns its URL: a POST to the URL starts a deployment. If the hook is on already, returns the same URL. | Enable deployment hook |
sevalla apps deployment-hook regenerate <app-id> [--dry-run] | Returns a new hook URL. The old URL stops working at once. | Regenerate deployment hook |
sevalla apps deployment-hook disable <app-id> [--dry-run] | Turns off the deployment hook. Its URL stops working at once. | Disable deployment hook |
Logs
| Command | What it does | API operation |
|---|---|---|
sevalla apps logs runtime <app-id> | Prints what the processes write to stdout and stderr. | Get application runtime logs |
sevalla apps logs access <app-id> | Prints the HTTP requests the application handled. | Get application access logs |
from, to, search or order.
IP restrictions
| Command | What it does | API operation |
|---|---|---|
sevalla apps ip-restriction get <app-id> | Shows the IP restriction: type, whether it’s on and the IP list. Without one, returns type deny, off, with an empty list. | Get IP restriction |
sevalla apps ip-restriction update <app-id> --type <type> --ip-list <ips> --enabled <bool> | Replaces the IP restriction of an application. | Update IP restriction |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
apps ip-restriction update | --type <type> | allow or deny | None | Required. allow lets only the listed addresses in, and deny blocks them. |
apps ip-restriction update | --ip-list <ips> | list | None | Required. IP addresses or CIDR ranges, such as 203.0.113.10,198.51.100.0/24. |
apps ip-restriction update | --enabled <bool> | true or false | None | Required. Whether the restriction applies. Other values are rejected. |
TCP proxies
| Command | What it does | API operation |
|---|---|---|
sevalla apps tcp-proxies list --app-id <id> [--page <number>] [--per-page <number>] | Lists the TCP proxies of an application: ID, port and status. | List TCP proxies |
sevalla apps tcp-proxies create <app-id> --process-id <id> --port <port> [--dry-run] | Exposes a container port of a process on a public hostname and port for direct TCP connections. | Create TCP proxy |
sevalla apps tcp-proxies delete <app-id> <tcp-proxy-id> --confirm [--dry-run] | Deletes a TCP proxy and releases its public hostname and port. | Delete TCP proxy |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
apps tcp-proxies create | --process-id <id> | UUID | None | Required. Process to expose, from sevalla apps processes list. |
apps tcp-proxies create | --port <port> | integer | None | Required. Container port, 1 to 65535. |
Private ports
| Command | What it does | API operation |
|---|---|---|
sevalla apps private-ports list --app-id <id> [--page <number>] [--per-page <number>] | Lists the private ports of an application: ID, port and protocol. | List private ports |
sevalla apps private-ports create <app-id> --process-id <id> --port <port> [--dry-run] | Exposes a container port of a process to other services in the cluster, with no public access. | Create private port |
sevalla apps private-ports delete <app-id> <private-port-id> --confirm [--dry-run] | Deletes a private port. | Delete private port |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
apps private-ports create | --process-id <id> | UUID | None | Required. Process to expose, from sevalla apps processes list. |
apps private-ports create | --port <port> | integer | None | Required. Container port, 1 to 65535. |
Application metrics
| Command | What it does | API operation |
|---|---|---|
sevalla apps metrics requests-per-minute <id> [--from <date>] [--to <date>] [--interval <seconds>] | Requests per minute over time. | Get application requests per minute |
sevalla apps metrics response-time <id> [--from <date>] [--to <date>] [--interval <seconds>] | Response time over time. | Get application response time |
sevalla apps metrics response-time-avg <id> [--from <date>] [--to <date>] [--interval <seconds>] | Average response time over the range, in milliseconds, as one value. | Get application average response time |
sevalla apps metrics status-codes <id> [--from <date>] [--to <date>] [--interval <seconds>] | Requests per HTTP status code over time. | Get application status code breakdown |
sevalla apps metrics top-status-codes <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 most frequent status codes, by request count. | Get application top status codes |
sevalla apps metrics top-countries <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 countries that send the most requests, with their average response time. | Get application top countries |
sevalla apps metrics slowest-requests <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 slowest paths by average response time, with method and request count. | Get application slowest requests |
sevalla apps metrics top-pages <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 most requested paths. | Get application top pages |
Databases
| Command | What it does | API operation |
|---|---|---|
sevalla databases list [--page <number>] [--per-page <number>] | Lists databases: ID, name, type and status. | List databases |
sevalla databases get <id> | Shows a database with its hostnames and status. | Get database |
sevalla databases create --name <name> --type <type> --db-version <version> --cluster <id> --resource-type <id> --db-name <name> --db-password <password> [--project <id>] [--db-user <user>] [--dry-run] | Creates a database. Its status is creating until it’s ready. | Create database |
sevalla databases update <id> [--display-name <name>] [--resource-type <id>] [--dry-run] | Renames a database or changes its size. A size change runs in the background. | Update database |
sevalla databases delete <id> --confirm [--dry-run] | Deletes a database and its data. Fails while it’s creating, updating, deleting or backing up. | Delete database |
sevalla databases activate <id> [--dry-run] | Starts a suspended database again. | Activate database |
sevalla databases suspend <id> [--dry-run] | Stops a database and keeps its settings and data. | Suspend database |
sevalla databases restart <id> [--dry-run] | Restarts a database and keeps its data. The status is updating until it’s ready again. Works when the status is ready, error, passwordChangeFailed or restoringFailed, the database isn’t suspended and no backup is running. | Restart database |
sevalla databases reset-password <id> --new-password <password> [--dry-run] | Sets a new password for the database user. The status is passwordChange until it’s ready again. | Reset database password |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
databases create | --name <name> | string | None | Required. Display name, 2 to 64 characters. |
databases create | --type <type> | postgresql, mysql, mariadb, redis or valkey | None | Required. Engine. The CLI help also lists mongodb, which the API doesn’t accept. |
databases create | --db-version <version> | string | None | Required. Engine version available for the type and cluster, such as 16 for PostgreSQL. |
databases create | --cluster <id> | UUID | None | Required. Location, from sevalla resources clusters. |
databases create | --resource-type <id> | ID | None | Required. Size, from sevalla resources db-types. |
databases create | --db-name <name> | string | None | Required. Name of the database inside the server: 2 to 100 letters, digits, _, - or +. |
databases create | --db-password <password> | string | None | Required. 4 to 100 letters, digits or _?<>#@-=+ characters. |
databases create | --project <id> | UUID | None | Project to add the database to. |
databases create | --db-user <user> | string | Engine default user | User name, 2 to 32 characters, not root or postgres. |
databases update | --display-name <name> | string | None | New display name, 2 to 64 characters. |
databases update | --resource-type <id> | ID | None | New size, from sevalla resources db-types. |
databases reset-password | --new-password <password> | string | None | Required. Same rules as --db-password. |
Database metrics
| Command | What it does | API operation |
|---|---|---|
sevalla databases metrics cpu-usage <id> [--from <date>] [--to <date>] [--interval <seconds>] | CPU used over time, in cores. | Get database CPU usage |
sevalla databases metrics cpu-limit <id> [--from <date>] [--to <date>] [--interval <seconds>] | CPU limit over time, in cores. | Get database CPU limit |
sevalla databases metrics memory-usage <id> [--from <date>] [--to <date>] [--interval <seconds>] | Memory used over time, in bytes. | Get database memory usage |
sevalla databases metrics memory-limit <id> [--from <date>] [--to <date>] [--interval <seconds>] | Memory limit over time, in bytes. | Get database memory limit |
sevalla databases metrics storage-usage <id> [--from <date>] [--to <date>] [--interval <seconds>] | Storage used over time, in bytes. | Get database storage usage |
sevalla databases metrics storage-limit <id> [--from <date>] [--to <date>] [--interval <seconds>] | Storage limit over time, in bytes. | Get database storage limit |
sevalla databases metrics all-storage <id> | Total storage allocated now, in bytes. | Get database total storage |
sevalla databases metrics used-storage <id> | Storage used now, in bytes. | Get database used storage |
Backups
| Command | What it does | API operation |
|---|---|---|
sevalla databases backups list --db-id <id> | Lists all backups of a database: daily backups, kept 7 days, and manual backups, kept 14 days. | List database backups |
sevalla databases backups create <db-id> --name <name> [--dry-run] | Starts a manual backup, kept 14 days. It appears in the list when it’s done. | Create database backup |
sevalla databases backups delete <db-id> <backup-id> --confirm [--dry-run] | Deletes a backup. | Delete database backup |
sevalla databases backups restore <db-id> <backup-id> [--dry-run] | Restores a backup into the same database and replaces its current data. To restore into another database, call the API operation with target_database_id. | Restore database backup |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
databases backups create | --name <name> | string | None | Required. Backup name. |
Connections
| Command | What it does | API operation |
|---|---|---|
sevalla databases connections internal-list --db-id <id> | Lists the internal connections of a database, as source or target. | List internal connections |
sevalla databases connections internal-create <db-id> --target-id <id> [--target-type <type>] [--dry-run] | Connects the database to an application or another database in the same cluster. A connection to an application covers all its processes. | Create internal connection |
sevalla databases connections internal-delete <db-id> <connection-id> --confirm [--dry-run] | Deletes an internal connection. | Delete internal connection |
sevalla databases connections external-toggle <db-id> [--dry-run] | Turns access from outside the cluster on or off. | Toggle external connection |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
databases connections internal-create | --target-id <id> | UUID | None | Required. Application or database to connect. |
databases connections internal-create | --target-type <type> | app or database | app | Type of the target. |
Database IP restrictions
| Command | What it does | API operation |
|---|---|---|
sevalla databases ip-restriction get <db-id> | Shows the IP restriction of a database. Without one, returns type deny, off, with an empty list. | Get database IP restriction |
sevalla databases ip-restriction update <db-id> --type <type> --ip-list <ips> --enabled <bool> | Replaces the IP restriction. It applies to external connections only. | Update database IP restriction |
--type, --ip-list and --enabled take the same values as in IP restrictions for applications.
Static sites
| Command | What it does | API operation |
|---|---|---|
sevalla static-sites list [--page <number>] [--per-page <number>] | Lists static sites: ID, name and status. | List static sites |
sevalla static-sites get <id> | Shows a static site. | Get static site |
sevalla static-sites create --name <name> --repository <repo> --branch <branch> [--project <id>] [--source <source>] [--git-type <type>] [--build-command <command>] [--publish-directory <dir>] [--node-version <version>] [--allow-deploy-paths <paths>] [--ignore-deploy-paths <paths>] [--dry-run] | Creates a static site from a Git repository and starts its first deployment. | Create static site |
sevalla static-sites update <id> [--display-name <name>] [--branch <branch>] [--build-command <command>] [--publish-directory <dir>] [--allow-deploy-paths <paths>] [--ignore-deploy-paths <paths>] [--git-lfs-enabled <bool>] [--dry-run] | Updates a static site. Build changes apply at the next deployment. | Update static site |
sevalla static-sites delete <id> --confirm [--dry-run] | Deletes a static site with its deployments and custom domains. | Delete static site |
sevalla static-sites purge-cache <id> [--dry-run] | Clears the edge cache of a static site. | Purge edge cache |
sevalla static-sites pretty-url-toggle <id> [--dry-run] | Turns pretty URLs on or off and prints the new state. With pretty URLs, /about serves /about/index.html or /about.html. | Toggle pretty URLs |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
static-sites create | --name <name> | string | None | Required. Display name, 2 to 64 characters. |
static-sites create | --repository <repo> | URL | None | Required. Repository URL. |
static-sites create | --branch <branch> | string | None | Required. Branch to deploy. |
static-sites create | --project <id> | UUID | None | Project to add the static site to. |
static-sites create | --source <source> | privateGit or publicGit | API default: privateGit | A repository from a connected Git account, or a public repository URL. |
static-sites create | --git-type <type> | github, bitbucket or gitlab | Detected | Git provider, for privateGit when the API can’t detect it. |
static-sites create, static-sites update | --build-command <command> | string | None | Build command, such as npm run build. |
static-sites create, static-sites update | --publish-directory <dir> | string | None | Directory with the built files, such as dist. |
static-sites create | --node-version <version> | string | None | Node.js version for the build. |
static-sites create, static-sites update | --allow-deploy-paths <paths> | list of glob patterns | None | Only commits that touch these paths start an automatic deployment. Can’t be combined with --ignore-deploy-paths. |
static-sites create, static-sites update | --ignore-deploy-paths <paths> | list of glob patterns | None | Commits that touch only these paths don’t start an automatic deployment. |
static-sites update | --display-name <name> | string | None | New display name, 1 to 64 characters. |
static-sites update | --branch <branch> | string | None | New default branch. |
static-sites update | --git-lfs-enabled <bool> | true or false | None | Fetches Git LFS objects at checkout, which is on by default. Any value other than true turns it off. |
Static site deployments
| Command | What it does | API operation |
|---|---|---|
sevalla static-sites deployments list --site-id <id> [--page <number>] [--per-page <number>] | Lists the deployments of a static site, newest first. | List static site deployments |
sevalla static-sites deployments get <deployment-id> --site-id <id> | Shows a deployment and its status. | Get static site deployment |
sevalla static-sites deployments trigger <site-id> [--branch <branch>] [--dry-run] | Deploys the latest commit of --branch, or of the default branch without it. | Deploy static site |
sevalla static-sites deployments cancel <deployment-id> --site-id <id> | Cancels a waiting or running deployment. | Cancel static site deployment |
sevalla static-sites deployments logs <deployment-id> --site-id <id> | Prints the build and publish log: up to 1,000 entries from the last hour, oldest first. | Get static site deployment logs |
deployment_id.
Static site domains
| Command | What it does | API operation |
|---|---|---|
sevalla static-sites domains list --site-id <id> [--page <number>] [--per-page <number>] | Lists the system and custom domains of a static site: ID, name, status and whether it’s primary. | List static site domains |
sevalla static-sites domains get <domain-id> --site-id <id> | Shows a domain with its verification status and DNS records. | Get static site domain |
sevalla static-sites domains add <site-id> --name <name> [--dry-run] | Adds a custom domain, such as shop.example.com. Add the DNS records from the response: the status then moves from verification to pointing to active. | Add static site domain |
sevalla static-sites domains update <domain-id> --site-id <id> --name <name> | Renames the subdomain of the system domain. Custom domains can’t be renamed. | Update static site system domain |
sevalla static-sites domains delete <site-id> <domain-id> --confirm [--dry-run] | Deletes a custom domain. The system domain can’t be deleted: turn it off with toggle. | Delete static site domain |
sevalla static-sites domains refresh-status <site-id> <domain-id> [--dry-run] | Checks the verification and DNS of a domain again. | Refresh static site domain status |
sevalla static-sites domains set-primary <site-id> <domain-id> [--dry-run] | Makes a domain the primary domain, used for canonical URLs and redirects. | Set primary static site domain |
sevalla static-sites domains toggle <site-id> <domain-id> [--dry-run] | Turns the system domain off or on. Custom domains can’t be toggled. | Toggle static site system domain |
Static site environment variables
| Command | What it does | API operation |
|---|---|---|
sevalla static-sites env-vars list --site-id <id> [--page <number>] [--per-page <number>] | Lists the environment variables of a static site with their values. | List static site environment variables |
sevalla static-sites env-vars create <site-id> --key <key> --value <value> [--dry-run] | Adds an environment variable for production and preview deployments on every branch. It applies at the next deployment. | Create static site environment variable |
sevalla static-sites env-vars update <env-var-id> --site-id <id> [--key <key>] [--value <value>] | Changes the key or the value of an environment variable. An empty value isn’t sent. | Update static site environment variable |
sevalla static-sites env-vars delete <site-id> <env-var-id> --confirm [--dry-run] | Deletes an environment variable. It applies at the next deployment. | Delete static site environment variable |
--key takes 1 to 255 characters and --value up to 32,768 characters, as for applications.
Static site logs
| Command | What it does | API operation |
|---|---|---|
sevalla static-sites logs access <site-id> | Prints the HTTP requests the static site served: up to 1,000 entries from the last hour, oldest first. | Get static site access logs |
Static site metrics
| Command | What it does | API operation |
|---|---|---|
sevalla static-sites metrics requests-per-minute <id> [--from <date>] [--to <date>] [--interval <seconds>] | Requests per minute over time. | Get static site requests per minute |
sevalla static-sites metrics response-time <id> [--from <date>] [--to <date>] [--interval <seconds>] | Response time over time. | Get static site response time |
sevalla static-sites metrics response-time-avg <id> [--from <date>] [--to <date>] [--interval <seconds>] | Average response time over the range, in milliseconds, as one value. | Get static site average response time |
sevalla static-sites metrics status-codes <id> [--from <date>] [--to <date>] [--interval <seconds>] | Requests per HTTP status code over time. | Get static site status code breakdown |
sevalla static-sites metrics top-status-codes <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 most frequent status codes, by request count. | Get static site top status codes |
sevalla static-sites metrics top-countries <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 countries that send the most requests. | Get static site top countries |
sevalla static-sites metrics slowest-requests <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 slowest paths by average response time. | Get static site slowest requests |
sevalla static-sites metrics top-pages <id> [--from <date>] [--to <date>] [--interval <seconds>] | The 10 most requested paths. | Get static site top pages |
Load balancers
| Command | What it does | API operation |
|---|---|---|
sevalla load-balancers list [--page <number>] [--per-page <number>] | Lists load balancers, newest first: ID, name and status. | List load balancers |
sevalla load-balancers get <id> | Shows a load balancer with its routing type. | Get load balancer |
sevalla load-balancers create --name <name> [--project <id>] [--type <type>] [--dry-run] | Creates a load balancer with no destinations. | Create load balancer |
sevalla load-balancers update <id> [--display-name <name>] [--type <type>] [--dry-run] | Renames a load balancer or changes its routing type. | Update load balancer |
sevalla load-balancers delete <id> --confirm [--dry-run] | Deletes a load balancer and its destinations. | Delete load balancer |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
load-balancers create | --name <name> | string | None | Required. Display name, 2 to 64 characters. |
load-balancers create | --project <id> | UUID | None | Project to add the load balancer to. |
load-balancers create, load-balancers update | --type <type> | DEFAULT or GEO | API default on create: DEFAULT | DEFAULT routes round-robin or by weight. GEO routes by client location. |
load-balancers update | --display-name <name> | string | None | New display name, 2 to 64 characters. |
Destinations
| Command | What it does | API operation |
|---|---|---|
sevalla load-balancers destinations list --lb-id <id> [--page <number>] [--per-page <number>] | Lists the destinations of a load balancer. | List load balancer destinations |
sevalla load-balancers destinations create <lb-id> --service-type <type> [--service-id <id>] [--url <url>] [--weight <weight>] [--latitude <lat>] [--longitude <lng>] [--dry-run] | Adds a destination. It’s on and receives traffic at once. | Create load balancer destination |
sevalla load-balancers destinations delete <lb-id> <destination-id> --confirm [--dry-run] | Deletes a destination. | Delete load balancer destination |
sevalla load-balancers destinations toggle <lb-id> <destination-id> [--dry-run] | Turns a destination off or on. | Toggle load balancer destination |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
load-balancers destinations create | --service-type <type> | APP, STATIC_SITE, OBJECT_STORAGE, EXTERNAL or LOAD_BALANCER | None | Required. What receives the traffic: an application, a static site, a bucket, an external URL or another load balancer. |
load-balancers destinations create | --service-id <id> | ID | None | The service. Required for every type except EXTERNAL. |
load-balancers destinations create | --url <url> | URL | None | External URL. Required for EXTERNAL. |
load-balancers destinations create | --weight <weight> | integer | None | Share of traffic for weighted routing, 0 to 10000. A higher weight gets more traffic. |
load-balancers destinations create | --latitude <lat> | number | None | Latitude for GEO routing, -90 to 90. |
load-balancers destinations create | --longitude <lng> | number | None | Longitude for GEO routing, -180 to 180. |
# Send 80% of the traffic to an application and 20% to an external URL
sevalla load-balancers destinations create "$LB_ID" --service-type APP --service-id "$APP_ID" --weight 80
sevalla load-balancers destinations create "$LB_ID" --service-type EXTERNAL --url https://legacy.example.com --weight 20
Load balancer domains
| Command | What it does | API operation |
|---|---|---|
sevalla load-balancers domains list --lb-id <id> [--page <number>] [--per-page <number>] | Lists the system and custom domains of a load balancer: ID, name, status and whether it’s primary. | List load balancer domains |
sevalla load-balancers domains get <domain-id> --lb-id <id> | Shows a domain with its verification status and DNS records. | Get load balancer domain |
sevalla load-balancers domains add <lb-id> --name <name> [--dry-run] | Adds a custom domain, such as shop.example.com. Add the DNS records from the response: the status then moves from verification to pointing to active. | Add load balancer domain |
sevalla load-balancers domains update <domain-id> --lb-id <id> --name <name> | Renames the subdomain of the system domain. Custom domains can’t be renamed. | Update load balancer system domain |
sevalla load-balancers domains delete <lb-id> <domain-id> --confirm [--dry-run] | Deletes a custom domain. The system domain can’t be deleted: turn it off with toggle. | Delete load balancer domain |
sevalla load-balancers domains refresh-status <lb-id> <domain-id> [--dry-run] | Checks the verification and DNS of a domain again. | Refresh load balancer domain status |
sevalla load-balancers domains set-primary <lb-id> <domain-id> [--dry-run] | Makes a domain the primary domain, used for canonical URLs. | Set primary load balancer domain |
sevalla load-balancers domains toggle <lb-id> <domain-id> [--dry-run] | Turns the system domain off or on. Custom domains can’t be toggled. | Toggle load balancer system domain |
Object storage
| Command | What it does | API operation |
|---|---|---|
sevalla object-storage list [--page <number>] [--per-page <number>] | Lists buckets: ID, name and status. | List object storage buckets |
sevalla object-storage get <id> | Shows a bucket with its S3-compatible endpoint, access keys and CDN domain. | Get object storage bucket |
sevalla object-storage create --name <name> [--project <id>] [--location <location>] [--dry-run] | Creates a bucket and returns its S3-compatible credentials. | Create object storage bucket |
sevalla object-storage update <id> [--display-name <name>] [--dry-run] | Renames a bucket. | Update object storage bucket |
sevalla object-storage delete <id> --confirm [--dry-run] | Schedules a bucket for deletion: Sevalla deletes its objects, revokes its keys and removes it in the background. Its status is deleting meanwhile. | Delete object storage bucket |
sevalla object-storage rotate-credentials <id> [--old-keys-ttl-hours <hours>] [--dry-run] | Creates a new access key and secret key. The response is the only time you see them. | Rotate object storage credentials |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
object-storage create | --name <name> | string | None | Required. Display name, 2 to 64 characters. |
object-storage create | --project <id> | UUID | None | Project to add the bucket to. |
object-storage create | --location <location> | apac, eeur, enam, oc, weur or wnam | API default: enam | Where most access happens: Asia-Pacific, Eastern Europe, Eastern North America, Oceania, Western Europe or Western North America. |
object-storage update | --display-name <name> | string | None | New display name, 2 to 64 characters. |
object-storage rotate-credentials | --old-keys-ttl-hours <hours> | integer | API default: 0 | Hours the previous keys keep working, 0 to 168. 0 stops them at once. |
CDN domain
| Command | What it does | API operation |
|---|---|---|
sevalla object-storage cdn-domain enable <bucket-id> [--dry-run] | Turns on a public CDN domain that serves the objects of the bucket. Fails if one is on already. | Enable CDN domain |
sevalla object-storage cdn-domain disable <bucket-id> [--dry-run] | Turns off the CDN domain. Objects are no longer served from it. | Disable CDN domain |
CORS policies
| Command | What it does | API operation |
|---|---|---|
sevalla object-storage cors-policies list --bucket-id <id> | Lists the CORS rules of a bucket. | List CORS policies |
sevalla object-storage cors-policies create <bucket-id> --origins <origins> --methods <methods> [--headers <headers>] [--dry-run] | Adds a CORS rule after the existing ones. | Create CORS policy |
sevalla object-storage cors-policies update <policy-id> --bucket-id <id> --origins <origins> --methods <methods> [--headers <headers>] | Replaces a CORS rule, so pass every origin, method and header to keep. | Update CORS policy |
sevalla object-storage cors-policies delete <bucket-id> <policy-id> --confirm [--dry-run] | Deletes a CORS rule. Deleting the last rule removes the CORS configuration. | Delete CORS policy |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
object-storage cors-policies create, object-storage cors-policies update | --origins <origins> | list | None | Required. Allowed origins, such as https://shop.example.com. |
object-storage cors-policies create, object-storage cors-policies update | --methods <methods> | list of GET, PUT, POST, DELETE or HEAD | None | Required. Allowed methods. |
object-storage cors-policies create, object-storage cors-policies update | --headers <headers> | list | None | Allowed request headers. |
Objects
| Command | What it does | API operation |
|---|---|---|
sevalla object-storage objects list --bucket-id <id> | Lists the first 25 objects of a bucket: key, size and last change. The CLI has no flags for a prefix or the next page. | List objects |
sevalla object-storage objects delete <bucket-id> --keys <keys> --confirm [--dry-run] | Deletes objects by key, up to 1,000 keys per command. | Delete objects |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
object-storage objects delete | --keys <keys> | list | None | Required. Keys of the objects to delete. |
Pipelines
| Command | What it does | API operation |
|---|---|---|
sevalla pipelines list [--page <number>] [--per-page <number>] | Lists pipelines: ID, name and status. | List pipelines |
sevalla pipelines get <id> | Shows a pipeline with its stages and preview settings. | Get pipeline |
sevalla pipelines create --name <name> --type <type> [--project <id>] [--dry-run] | Creates a pipeline with two stages, Dev and Production. | Create pipeline |
sevalla pipelines update <id> [--name <name>] [--dry-run] | Renames a pipeline. | Update pipeline |
sevalla pipelines delete <id> --confirm [--dry-run] | Deletes a pipeline and its stages. Its applications stay, and its preview apps are deleted. | Delete pipeline |
sevalla pipelines promote <id> --source-app-id <id> --target-app-ids <ids> [--dry-run] | Deploys the latest successful build of the source application to the target applications, with no rebuild. | Promote pipeline |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
pipelines create | --name <name> | string | None | Required. Display name, 1 to 255 characters. |
pipelines create | --type <type> | trunk or branch | None | Required. With trunk, every stage uses the same repository and branch settings. With branch, each stage can use its own branch. |
pipelines create | --project <id> | UUID | None | Project to add the pipeline to. |
pipelines update | --name <name> | string | None | New display name. |
pipelines promote | --source-app-id <id> | UUID | None | Required. Application to promote from. |
pipelines promote | --target-app-ids <ids> | list of UUIDs | None | Required. Applications to promote to. |
# Promote the latest successful build of staging to production
sevalla pipelines promote "$PIPELINE_ID" --source-app-id "$STAGING_APP_ID" --target-app-ids "$PRODUCTION_APP_ID"
Stages
| Command | What it does | API operation |
|---|---|---|
sevalla pipelines stages create <pipeline-id> --name <name> [--insert-before <order>] [--dry-run] | Adds a stage at a position. Stages at that position and after it move up one. | Create pipeline stage |
sevalla pipelines stages delete <pipeline-id> <stage-id> --confirm [--dry-run] | Deletes a stage. Its applications stay, and the other stages close the gap. | Delete pipeline stage |
sevalla pipelines stages apps add <pipeline-id> <stage-id> <app-id> | Adds an application to a stage. The application can’t be in another pipeline, and it takes the project of the pipeline. | Add application to pipeline stage |
sevalla pipelines stages apps remove <pipeline-id> <stage-id> <app-id> --confirm | Removes an application from a stage without deleting it. Without --confirm, exits with Use --confirm to confirm removal. | Remove application from pipeline stage |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
pipelines stages create | --name <name> | string | None | Required. Stage name, 1 to 255 characters. |
pipelines stages create | --insert-before <order> | integer | 0 | Position of the new stage, 0 to 50. |
Preview apps
| Command | What it does | API operation |
|---|---|---|
sevalla pipelines preview enable <pipeline-id> [--repo-url <url>] [--auto-create-app <bool>] [--delete-stale-apps <bool>] [--stale-app-days <days>] [--dry-run] | Turns on preview apps for pull requests. | Enable pipeline preview |
sevalla pipelines preview disable <pipeline-id> [--dry-run] | Turns off preview apps, deletes the existing ones and removes the preview stage. | Disable pipeline preview |
sevalla pipelines preview update <pipeline-id> [--repo-url <url>] [--auto-create-app <bool>] [--delete-stale-apps <bool>] [--stale-app-days <days>] [--dry-run] | Changes the preview settings or the connected repository. | Update pipeline preview settings |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
pipelines preview enable, pipelines preview update | --repo-url <url> | URL | None | Repository to connect. enable needs it when the pipeline has no repository. |
pipelines preview enable, pipelines preview update | --auto-create-app <bool> | true or false | API default on enable: false | Creates a preview app when a pull request opens. |
pipelines preview enable, pipelines preview update | --delete-stale-apps <bool> | true or false | API default on enable: false | Deletes preview apps with no deployment for --stale-app-days. |
pipelines preview enable, pipelines preview update | --stale-app-days <days> | integer | API default on enable: 5 | Days after the last deployment before a preview app is stale, 1 to 365. |
Registry credentials
Thedocker-registries commands manage the credentials Sevalla uses to pull private Docker images.
| Command | What it does | API operation |
|---|---|---|
sevalla docker-registries list [--page <number>] [--per-page <number>] | Lists registry credentials. Secrets are never returned. | List Docker registry credentials |
sevalla docker-registries get <id> | Shows a registry credential, without its secret. | Get Docker registry credential |
sevalla docker-registries create --name <name> --username <username> --secret <secret> [--registry <registry>] [--dry-run] | Saves a registry credential. The secret is stored encrypted. | Create Docker registry credential |
sevalla docker-registries update <id> [--name <name>] [--registry <registry>] [--username <username>] [--secret <secret>] [--dry-run] | Updates a registry credential. | Update Docker registry credential |
sevalla docker-registries delete <id> --confirm [--dry-run] | Deletes a registry credential. Applications that use it can no longer pull their private images. | Delete Docker registry credential |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
docker-registries create | --name <name> | string | None | Required. Display name, 1 to 255 characters. |
docker-registries create | --username <username> | string | None | Required. User name or access key for the registry. |
docker-registries create | --secret <secret> | string | None | Required. Password or access token. |
docker-registries create, docker-registries update | --registry <registry> | dockerHub, gcr, ecr, github, gitlab, digitalOcean or custom | API default on create: dockerHub | Registry: Docker Hub, Google Container Registry, Amazon ECR, GitHub, GitLab, DigitalOcean or another registry. |
docker-registries update | --name <name>, --username <username>, --secret <secret> | string | None | New values. |
Webhooks
| Command | What it does | API operation |
|---|---|---|
sevalla webhooks list [--page <number>] [--per-page <number>] | Lists webhooks. A company can have up to 10. | List webhooks |
sevalla webhooks get <id> | Shows a webhook with its events, endpoint and signing secret. | Get webhook |
sevalla webhooks create --endpoint <url> --events <events> [--description <text>] [--dry-run] | Creates a webhook. It receives events at once, and the response includes its signing secret. | Create webhook |
sevalla webhooks update <id> [--endpoint <url>] [--events <events>] [--description <text>] [--dry-run] | Updates a webhook. Changes apply to the next delivery. | Update webhook |
sevalla webhooks delete <id> --confirm [--dry-run] | Deletes a webhook. | Delete webhook |
sevalla webhooks toggle <id> [--dry-run] | Turns a webhook off or on. A disabled webhook gets no deliveries. | Toggle webhook |
sevalla webhooks roll-secret <id> [--expire-in-hours <hours>] [--dry-run] | Creates a new signing secret. Both secrets verify signatures until the old one expires. | Roll webhook secret |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
webhooks create, webhooks update | --endpoint <url> | URL | None | Required on create. Where Sevalla sends events with POST. |
webhooks create, webhooks update | --events <events> | list | None | Required on create. Any of APP_CREATE, APP_UPDATE, APP_DELETE, APP_DEPLOY, DATABASE_CREATE, DATABASE_UPDATE, DATABASE_DELETE, STATIC_SITE_CREATE, STATIC_SITE_UPDATE, STATIC_SITE_DELETE and STATIC_SITE_DEPLOY. Payloads are on Webhook events. |
webhooks create, webhooks update | --description <text> | string | None | Description, up to 255 characters. |
webhooks roll-secret | --expire-in-hours <hours> | integer | 0 | Hours the old secret stays valid, 0 to 24. 0 expires it at once. |
Webhook deliveries
| Command | What it does | API operation |
|---|---|---|
sevalla webhooks deliveries list --webhook-id <id> [--page <number>] [--per-page <number>] | Lists the deliveries of a webhook, newest first. | List webhook event deliveries |
sevalla webhooks deliveries get <delivery-id> --webhook-id <id> | Shows a delivery: the payload, the response, its status code and the response time. | Get webhook event delivery |
Projects
| Command | What it does | API operation |
|---|---|---|
sevalla projects list [--page <number>] [--per-page <number>] | Lists projects. | List projects |
sevalla projects get <id> | Shows a project. | Get project |
sevalla projects create --name <name> [--dry-run] | Creates a project. | Create project |
sevalla projects update <id> --name <name> [--dry-run] | Renames a project. | Update project |
sevalla projects delete <id> --confirm [--dry-run] | Deletes a project. Its services stay, outside any project, and API key permissions limited to the project are removed. | Delete project |
--name on create and update is required and takes 1 to 64 characters.
Project services
| Command | What it does | API operation |
|---|---|---|
sevalla projects services add <project-id> --service-id <id> [--service-type <type>] [--dry-run] | Adds an application, database, pipeline or bucket to a project. Adding a pipeline also moves the applications in its stages. | Add service to project |
sevalla projects services remove <project-id> <service-id> [--service-type <type>] --confirm [--dry-run] | Removes a service from a project without deleting it. Removing a pipeline also removes the applications in its stages. | Remove service from project |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
projects services add | --service-id <id> | UUID | None | Required. The service to add. |
projects services add, projects services remove | --service-type <type> | app, database, pipeline or object-storage | app | Type of the service. The API accepts only these four. |
API keys
| Command | What it does | API operation |
|---|---|---|
sevalla api-keys list [--page <number>] [--per-page <number>] | Lists API keys, newest first, with masked tokens. | List API keys |
sevalla api-keys get <id> | Shows an API key with its roles and capabilities. | Get API key |
sevalla api-keys create --name <name> [--capabilities <permissions>] [--expires-at <date>] [--dry-run] | Creates an API key. The response shows the token once. | Create API key |
sevalla api-keys update <id> [--name <name>] [--dry-run] | Renames an API key. | Update API key |
sevalla api-keys delete <id> --confirm [--dry-run] | Deletes an API key, which revokes it at once. | Delete API key |
sevalla api-keys toggle <id> [--dry-run] | Turns an API key off or on. A disabled key can’t authenticate. | Toggle API key |
sevalla api-keys rotate <id> [--ttl <hours>] [--dry-run] | Creates a new token for an API key. The response shows it once. | Rotate API key |
sevalla api-keys validate | Checks the key the CLI uses and shows its name, company, expiration and status. | Validate API key |
update, delete, toggle and rotate on the key that sends the request, so run them with another key. The CLI can’t assign a role or limit a capability to one resource: do that in the dashboard (see API keys) or with Create API key.
Flags
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
api-keys create | --name <name> | string | None | Required. Name, 1 to 255 characters. |
api-keys create | --capabilities <permissions> | list | None | Permissions in RESOURCE:ACTION form, such as APP:READ,APP:UPDATE, from sevalla resources rbac-permissions. The API needs at least one capability or role, and the CLI can’t assign roles, so pass this flag. |
api-keys create | --expires-at <date> | ISO 8601 timestamp in UTC | Never expires | Expiration, such as 2026-12-31T23:59:59Z. |
api-keys update | --name <name> | string | None | New name. |
api-keys rotate | --ttl <hours> | integer | 0 | Hours the old token keeps working, 0 to 168. 0 stops it at once. |
# A key for a CI job that deploys applications. Without --capabilities, the API rejects the request.
sevalla api-keys create --name ci-deploy --capabilities APP:READ,APP:UPDATE --expires-at 2026-12-31T23:59:59Z
Resources
| Command | What it does | API operation |
|---|---|---|
sevalla resources clusters | Lists the clusters (locations) for applications and databases: ID, name and location. | List clusters |
sevalla resources db-types | Lists the database sizes for --resource-type on databases create and databases update. | List database resource types |
sevalla resources process-types | Lists the process sizes for --resource-type on apps processes create and apps processes update. | List process resource types |
sevalla resources rbac-permissions | Lists the API key permissions for api-keys create --capabilities. | List API key permissions |
sevalla resources rbac-roles | Lists the predefined API key roles. | List API key roles |
Global environment variables
| Command | What it does | API operation |
|---|---|---|
sevalla global-env-vars list [--page <number>] [--per-page <number>] | Lists the global environment variables with their values. | List global environment variables |
sevalla global-env-vars create --key <key> --value <value> [--dry-run] | Adds a variable that every application in the company inherits, at build time and at runtime. An application variable with the same key overrides it. It applies at the next deployment of each application. | Create global environment variable |
sevalla global-env-vars update <id> [--key <key>] [--value <value>] [--dry-run] | Changes the key or the value of a global variable. An empty value isn’t sent. | Update global environment variable |
sevalla global-env-vars delete <id> --confirm [--dry-run] | Deletes a global variable. It applies at the next deployment of each application. | Delete global environment variable |
--key takes 1 to 255 characters, unique among the global variables, and --value up to 32,768 characters.
Git
| Command | What it does | API operation |
|---|---|---|
sevalla git providers | Lists the Git providers (GitHub, Bitbucket and GitLab) with the URLs that connect a Git account. | List Git providers |
Users
| Command | What it does | API operation |
|---|---|---|
sevalla users list | Lists the users of the company: ID, email, name and role. | List company users |
Usage alerts
| Command | What it does | API operation |
|---|---|---|
sevalla usage-alerts list [--project-id <id>] [--page <number>] [--per-page <number>] | Lists usage alerts: the company-wide alert and the project alerts. --project-id limits the list to one project. | List usage alert configs |
sevalla usage-alerts get <id> | Shows a usage alert with its limit, recipients and triggers. | Get usage alert config |
sevalla usage-alerts create --limit-usd <amount> --emails <list> --triggers <list> [--project-id <id>] [--data <json>] [--dry-run] | Creates a usage alert for the company or for one project. Sevalla checks it every hour against the current billing period, and the highest trigger reached emails the recipients once per period. | Create usage alert config |
sevalla usage-alerts update <id> [--limit-usd <amount>] [--emails <list>] [--triggers <list>] [--data <json>] [--dry-run] | Updates a usage alert. Its project can’t change. | Update usage alert config |
sevalla usage-alerts delete <id> --confirm [--dry-run] | Deletes a usage alert. | Delete usage alert config |
| Command | Flag | Type | Default | Description |
|---|---|---|---|---|
usage-alerts create, usage-alerts update | --limit-usd <amount> | number | None | Required on create. Spending limit in USD, at least 0.01. |
usage-alerts create, usage-alerts update | --emails <list> | list | None | Required on create. Recipients. |
usage-alerts create, usage-alerts update | --triggers <list> | list of percentages | None | Required on create. Percentages of the limit, up to 10, such as 50,80,100. A trailing % is accepted. On update, replaces all triggers. |
usage-alerts create | --project-id <id> | UUID | Company-wide | Project the alert covers. A company has one company-wide alert and one alert per project. |
usage-alerts create, usage-alerts update | --data <json> | JSON object | None | Request body to send instead of the flags. |
# Email two people at 50%, 80% and 100% of USD 500 in a billing period
sevalla usage-alerts create --limit-usd 500 --emails ops@example.com,finance@example.com --triggers 50,80,100
Shell completion
| Command | What it does | API operation |
|---|---|---|
sevalla completion <shell> | Prints the completion script for bash, zsh or fish. | None |
eval "$(sevalla completion zsh)" # add to ~/.zshrc
eval "$(sevalla completion bash)" # add to ~/.bashrc
sevalla completion fish | source # add to ~/.config/fish/config.fish
Command schema
| Command | What it does | API operation |
|---|---|---|
sevalla schema [command] | Prints the command tree as JSON: each command with its path, description, arguments and options with defaults. command is a dot path, such as apps.deployments.trigger. It needs no sign-in. | None |
"required": true on an option means that the flag takes a value, not that you must pass it. The invocations on this page show which flags you must pass.
sevalla schema apps.deployments.trigger | jq -r '.options[].long'