Pipeline commands
Create, trigger, and inspect Microtica pipelines and their build history from the CLI, including the combined builds-and-deployments timeline.
The pipeline commands manage your pipelines — the CI/CD definitions that build your code and deploy it to your cloud. They also expose build history and a combined timeline of every build and deployment in a project.
All pipeline commands need a project id. Pass --project <id> or set MICROTICA_PROJECT_ID.
List and inspect
pipeline list
List the pipelines in a project.
microtica pipeline list
microtica pipeline list --type template| Flag | Description |
|---|---|
--type <type> | Filter by regular or template. |
--offset <n> / --limit <n> | Paginate. |
--full | Include the heavy microticaYaml, schema, readme, and kubeConfig fields, which are stripped by default. |
By default the response drops those large fields to keep it small — they can run to hundreds of kilobytes per pipeline. Use pipeline get to fetch one pipeline with everything inline.
pipeline get
Show one pipeline in full.
microtica pipeline get <pipelineId>Create and update
pipeline create
Create a pipeline that builds from a Git repository. Find the Git account id and repository URL with the git commands.
microtica pipeline create \
--name my-app \
--account <gitAccountId> \
--repo https://github.com/acme/my-app \
--branch-filter "^(main|develop)$" \
--automated-trigger \
--var NODE_ENV=production| Flag | Default | Description |
|---|---|---|
--name <name> | — | Pipeline name. Required. |
--account <id> | — | Git account id. Required. |
--repo <url> | — | Git repository URL. Required. |
--work-dir <path> | ./.microtica | Directory in the repo holding microtica.yaml. |
--spec-file <path> | — | Path to a microtica.yaml to inline. If omitted, the spec is read from the repo at build time. |
--branch-filter <regex> | — | Regex of branches/tags to auto-trigger on. |
--modified-files <patterns> | — | Comma-separated file patterns for auto-trigger. |
--automated-trigger | off | Trigger on repository events. |
--public | off | Mark the pipeline public. |
--var <key=value> | — | Pipeline environment variable. Repeatable. |
--id <id> | auto | Pipeline id. |
pipeline update
Update a pipeline from a JSON body file (a raw UpdatePipelineRequest — all fields optional).
microtica pipeline update <pipelineId> --from-file ./pipeline.jsonpipeline spec update
Replace just the inline microtica.yaml for a pipeline.
microtica pipeline spec update <pipelineId> --spec-file ./microtica.yamlSee pipeline syntax for how to write the spec.
pipeline delete
microtica pipeline delete <pipelineId>Trigger a build
pipeline trigger
Manually start a build on a given ref. --ref is required and has no default. A plain branch name is normalized to refs/heads/<name>; you can also pass refs/heads/<name> or refs/tags/<name>.
microtica pipeline trigger <pipelineId> --ref main
# Override variables for this build only
microtica pipeline trigger <pipelineId> --ref main --var NODE_ENV=stagingThe response includes the new buildId, which you can feed to logs build to watch it run:
BUILD_ID=$(microtica pipeline trigger <pipelineId> --ref main --query buildId | jq -r .)
microtica logs build <pipelineId> "$BUILD_ID" --followHistory
pipeline history
Return a project-wide, correlated timeline of builds and deployments — one row per logical run. This is the command to reach for most "what happened" questions; it accepts rich filters.
# Everything in one environment in the last 24 hours
microtica pipeline history --env prod --from "$(date -u -v-1d +%Y-%m-%dT%H:%M:%SZ)"
# Failed deploys only
microtica pipeline history --type deploy \
--query "pipelines[?status!='SUCCEEDED'].{id: id, status: status, env: envId}"| Flag | Description |
|---|---|
--from <when> / --to <when> | Bound the start date. Epoch ms or ISO-8601. |
--env <id> | Filter by environment. Repeatable. |
--repo <name> | Filter by repository name. Repeatable. |
--resource <name> | Only runs targeting this resource/component. |
--cluster <id> | Filter by Kubernetes cluster id. |
--app <name> | Filter by application name. |
--type <type> | deploy, build, buildonly, or template. Repeatable. |
--include-events | Attach deployment events (stage deployments only). |
--offset <n> / --limit <n> | Paginate. Default limit 50, max 500. |
Builds
For the raw build log of one pipeline, use builds. For deploy-history questions, prefer pipeline history or app last-deploy — they correlate the data for you.
pipeline builds list
List the builds of one pipeline.
microtica pipeline builds list <pipelineId>Like pipeline list, this strips heavy per-build fields by default; pass --full to keep them, along with --offset and --limit to paginate.
pipeline builds get
Fetch one build with its steps, stages, metadata, and spec inline.
microtica pipeline builds get <pipelineId> <buildId>--start-date <ms> narrows the lookup when needed.
Next steps
Application commands
Deploy, scale, and inspect Kubernetes applications with the Microtica CLI — resources, replicas, status, logs, and the deploy primitives.
Component commands
Create reusable Microtica infrastructure components and scaffold them from a Git repo with the CLI, then instantiate them as environment resources.