CLI

Command Reference

Complete reference for every Ink CLI command — deploy, manage, observe, and configure your services

Services

ink deploy

Create and deploy a new service.

ink deploy <name> [flags]
FlagDefaultDescription
--repoService nameRepository name
--hostinkGit host: ink (managed) or github
--branchmainGit branch to deploy
--regioneu-central-1Deploy region
--memory256MiMemory: 128Mi, 256Mi, 512Mi, 1024Mi, 2048Mi, 4096Mi
--vcpu0.25vCPU: 0.1, 0.2, 0.25, 0.3, 0.4, 0.5, 1, 2, 4
--portAuto-detectedApplication port
--buildpackrailpackBuild strategy: railpack, dockerfile, static
--build-commandCustom build script
--start-commandCustom start script
--root-dirMonorepo subdirectory
--publish-dirStatic site output directory (dist, build, out)
--dockerfilePath to Dockerfile
--envEnvironment variable KEY=VALUE (repeatable)
--env-fileRead env vars from file (repeatable)
# Deploy with auto-detection
ink deploy my-api --port 8080

# Deploy from GitHub
ink deploy my-app --repo username/repo --host github --port 3000

# Deploy a static site
ink deploy docs --buildpack static --publish-dir dist

# Deploy with environment variables
ink deploy my-api --port 8080 --env NODE_ENV=production --env-file .env

ink redeploy

Rebuild and redeploy an existing service. Accepts the same configuration flags as ink deploy to update settings.

ink redeploy <name> [flags]
# Redeploy with updated memory
ink redeploy my-api --memory 512Mi

# Redeploy with new env vars (merged with existing)
ink redeploy my-api --env NEW_VAR=value

# Replace all env vars instead of merging
ink redeploy my-api --env-file .env.new --replace

ink services

List all services, or show details for a specific service.

ink services              # List all
ink service <name>        # Show details

Aliases: ls, service

ink status

Show detailed service information with optional logs and metrics.

ink status <name> [flags]
FlagDefaultDescription
-eShow environment variables
--deploy-logsNumber of deploy log lines
--runtime-logsNumber of runtime log lines
--metricsTime range: 1h, 6h, 24h, 7d, 30d
ink status my-api -e --runtime-logs 50 --metrics 1h

ink logs

View build or runtime logs.

ink logs <name> [flags]
FlagDefaultDescription
-n100Number of log lines
--deployShow deploy/build logs instead of runtime
ink logs my-api -n 200
ink logs my-api --deploy

ink delete

Permanently delete a service.

ink delete <name> [-y]

Environment Variables

ink secret set

Set non-sensitive environment variables.

ink secret set <service> KEY=value [KEY=value ...]

ink secret import

Import variables from a file. Preferred for sensitive values — avoids shell history exposure.

ink secret import <service> --file .env [--replace]

ink secret list

List current environment variables for a service.

ink secret list <service>

ink secret unset

Remove a single variable.

ink secret unset <service> KEY

ink secret delete

Remove multiple variables.

ink secret delete <service> KEY1 KEY2 [--replace]

Aliases: secrets, env


Databases

ink database create

Provision a new SQLite database (Turso).

ink database create <name> [--type sqlite] [--size 100mb] [--region eu-central]

Returns DATABASE_URL and DATABASE_AUTH_TOKEN.

ink database get

Show database details and connection credentials.

ink database get <name>

ink database delete

Delete a database.

ink database delete <name> [-y]

Aliases: databases, db


Git Repositories

ink repo create

Create an Ink-managed git repository.

ink repo create <name>

Returns a remote URL. Add it to your local repo:

git remote add ink <remote-url>
git push ink main

Pushing to an Ink repo auto-triggers deployment.

Aliases: repos


Custom Domains

ink domain add

Attach a custom domain to a service.

ink domain add <service> <domain>

Requires the domain's DNS zone to be delegated to Ink first. See Domains & DNS.

ink domain remove

Remove a custom domain.

ink domain remove <service>

Aliases: domains


DNS

ink dns zones

List all DNS zones.

ink dns zones

ink dns records

List records for a zone.

ink dns records <zone>

ink dns add

Create a DNS record.

ink dns add <zone> <name> <type> <content> [--ttl 300]

Supported types: A, AAAA, CNAME, MX, TXT, CAA.

ink dns delete

Delete a DNS record.

ink dns delete <zone> <record-id>

Projects

ink project

List or manage projects.

ink projects              # List all projects

Aliases: projects, proj


Workspaces

ink workspace

List workspaces.

ink workspace

ink workspace create

ink workspace create <name> <slug> [--description "..."]

ink workspace members

ink workspace members <slug>

ink workspace invite

ink workspace invite <slug> <user> [role]

Roles: member (default), admin.

ink workspace accept-invite

ink workspace accept-invite <id>

Other workspace commands

ink workspace delete <slug>
ink workspace invites [slug]
ink workspace decline-invite <id>
ink workspace revoke-invite <id>
ink workspace remove-member <slug> <user-id>

Aliases: workspaces, ws


Account

ink whoami

Show account info, plan, and GitHub connection status.

ink whoami

Alias: account


Configuration

ink config set

Set a default value.

ink config set workspace my-team
ink config set project backend

ink config show

Display the current configuration with source locations.

ink config show

Chat

ink chat

Send or read messages in a workspace.

ink chat

On this page