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
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.
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.
Options:
| Flag | Description |
|---|---|
--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.
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.
Options:
| Flag | Description |
|---|---|
--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
CI/CD Usage
The CLI works well in CI pipelines. Add it to your GitHub Actions workflow: