MicroticaMicrotica

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.

Terminal
microtica pipeline list
microtica pipeline list --type template
FlagDescription
--type <type>Filter by regular or template.
--offset <n> / --limit <n>Paginate.
--fullInclude 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.

Terminal
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.

Terminal
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
FlagDefaultDescription
--name <name>Pipeline name. Required.
--account <id>Git account id. Required.
--repo <url>Git repository URL. Required.
--work-dir <path>./.microticaDirectory 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-triggeroffTrigger on repository events.
--publicoffMark the pipeline public.
--var <key=value>Pipeline environment variable. Repeatable.
--id <id>autoPipeline id.

pipeline update

Update a pipeline from a JSON body file (a raw UpdatePipelineRequest — all fields optional).

Terminal
microtica pipeline update <pipelineId> --from-file ./pipeline.json

pipeline spec update

Replace just the inline microtica.yaml for a pipeline.

Terminal
microtica pipeline spec update <pipelineId> --spec-file ./microtica.yaml

See pipeline syntax for how to write the spec.

pipeline delete

Terminal
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>.

Terminal
microtica pipeline trigger <pipelineId> --ref main

# Override variables for this build only
microtica pipeline trigger <pipelineId> --ref main --var NODE_ENV=staging

The response includes the new buildId, which you can feed to logs build to watch it run:

Terminal
BUILD_ID=$(microtica pipeline trigger <pipelineId> --ref main --query buildId | jq -r .)
microtica logs build <pipelineId> "$BUILD_ID" --follow

History

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.

Terminal
# 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}"
FlagDescription
--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-eventsAttach 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.

Terminal
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.

Terminal
microtica pipeline builds get <pipelineId> <buildId>

--start-date <ms> narrows the lookup when needed.

Next steps

On this page