[
StrictOps
control plane
How It WorksPricingSecurityDocs
Log InGet Started
StrictOps Docs

CLI

Command-line interface for StrictOps

StrictOps CLI

The @strictops/cli package gives you full control over your deployment workflow from the terminal. Use it to detect your project framework, generate configuration, validate your strictops.yml, and trigger deployments — all without leaving the command line.

Installation

npm install -g @strictops/cli

Requires Node.js 18 or later.

Commands

strictops detect

Scans the current project directory and detects your framework, language, and recommended settings. This is useful as a first step before generating configuration.

strictops detect

Output: Prints detected framework (e.g., Next.js), language (e.g., TypeScript), and suggested deployment settings.

strictops init

Generates a strictops.yml configuration file for the current project. Runs detection automatically and prompts you for any values it can't determine.

strictops init --token <your-api-token>

Options:

FlagDescription
--token <token>StrictOps API token for authenticated init

strictops validate

Validates the strictops.yml file in the current directory against the StrictOps schema. Reports any errors or warnings before you deploy.

strictops validate

Output: Lists validation errors with line references, or confirms the config is valid.

strictops deploy

Triggers a deployment of the current project to your configured AWS environment.

strictops deploy --token <token> --env production --image-uri 123456789012.dkr.ecr.us-east-1.amazonaws.com/my-app:latest

Options:

FlagDescription
--token <token>StrictOps API token
--env <environment>Target environment (e.g., staging, production)
--image-uri <uri>Docker image URI to deploy
--commit-sha <sha>Git commit SHA to tag the deployment

Typical Workflow

# 1. Detect your project setup
strictops detect
 
# 2. Generate a strictops.yml
strictops init --token $STRICTOPS_TOKEN
 
# 3. Validate the generated config
strictops validate
 
# 4. Deploy
strictops deploy --token $STRICTOPS_TOKEN --env staging

CI/CD Usage

The CLI works well in CI pipelines. Add it to your GitHub Actions workflow:

- name: Install StrictOps CLI
  run: npm install -g @strictops/cli
 
- name: Validate config
  run: strictops validate
 
- name: Deploy
  run: strictops deploy --token ${{ secrets.STRICTOPS_TOKEN }} --env production --image-uri ${{ steps.build.outputs.image }} --commit-sha ${{ github.sha }}

On this page