# Strckro CLI documentation

Use `skctl` to manage projects on your own Strckro Portal from a terminal, CI or an AI agent.

- Human guide: https://dashboard-portal.cloud/docs/cli
- Full command reference: https://dashboard-portal.cloud/docs/cli/docs.md
- This Markdown entry point: https://dashboard-portal.cloud/docs/cli/README.md

## Install

Requires Node.js 20.20.2+ and a Portal backend that supports the CLI API. The documentation website is not your API server.

```sh
npm install --global strckro
skctl --version
skctl --help
```

Or run once with `npx --package strckro skctl --help`. Installation uses npm on Windows, macOS and Linux; a standalone Bash installer is not provided.

## Connect and inspect

Replace the URL and slug with the person's own Portal and project:

```sh
skctl login --server https://portal.example.com
skctl whoami --json
skctl projects list
skctl project my-app --info --json
```

Let the person complete browser login and approve the matching terminal code. Use `--no-browser` on SSH. For CI, inject both `STRCKRO_SERVER` and `STRCKRO_TOKEN` from a secret manager.

## Work on a project

```sh
skctl init --project my-app
skctl deploy --sync --wait --timeout 300 --json
skctl deployments list --json
skctl logs --json
```

Deployment uses the Git repository configured on the Portal. `init` creates a local server/project context; it does not create a remote project. Use `projects sync --file project.json` for project creation or configuration changes.

## For AI agents

Read the [full Markdown reference](https://dashboard-portal.cloud/docs/cli/docs.md) before choosing commands or interpreting results. It describes command syntax, authentication, scopes, project selection, environment conflicts and exit codes.

Use `--json` for API operations, inspect the selected project before changing it, and follow the person's requested scope. Leave browser authentication to the person. Do not ask for tokens in chat or print environment values.

CLI 0.3.1 adds `skctl docs`, `help`, `version` and short options `-h`, `-v`, `-s`, `-p`, `-j`. Older versions can use the corresponding long options or update with `npm install --global strckro@latest`. This entry point and the full reference can be opened directly with any version.
