pare-infra

v0.24.2
io.github.Dave-London/pare-infra Checked 12 hours ago Published 3 days ago

Pare Infra — Structured infrastructure-as-code operations as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

init Terraform Init

Initializes a Terraform working directory. Downloads providers, configures backend, and prepares for plan/apply.

ParameterTypeDescription
backendbooleanSet false to skip backend initialization (-backend=false), for validate-only workflows that must not need state access or backend credentials. Default: true
compactbooleanPrefer compact output
migrateStatebooleanMigrate state to new backend configuration (-migrate-state)
pathstringProject root path
reconfigurebooleanReconfigure backend, ignoring saved configuration (-reconfigure)
upgradebooleanUpgrade provider plugins to newest acceptable versions (-upgrade)

plan Terraform Plan

Shows the Terraform execution plan with resource change counts. Read-only — does not modify infrastructure.

ParameterTypeDescription
compactbooleanPrefer compact output
outstringSave the plan to a file for later apply (-out=FILE)
pathstringProject root path
targetstringTarget a specific resource for planning (-target=RESOURCE)
varFilestringPath to a variable definitions file (-var-file=FILE)
varsobjectVariable overrides as key-value pairs (-var KEY=VALUE)

validate Terraform Validate

Validates Terraform configuration files for syntax and consistency errors. Returns structured diagnostics.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path

fmt Terraform Fmt

Checks Terraform configuration formatting. Lists files that need formatting and optionally shows diffs.

ParameterTypeDescription
compactbooleanPrefer compact output
diffbooleanShow formatting differences (-diff)
pathstringProject root path
recursivebooleanProcess files in subdirectories (-recursive, default true)

output Terraform Output

Shows Terraform output values from the current state. Returns structured name/value/type/sensitive data.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path

state-list Terraform State List

Lists all resources tracked in the Terraform state. Returns resource addresses.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path

workspace Terraform Workspace

Manages Terraform workspaces: list, select, create, or delete workspaces.

ParameterTypeDescription
actionstringWorkspace action to perform
compactbooleanPrefer compact output
namestringWorkspace name (required for select/new/delete)
pathstringProject root path

show Terraform Show

Shows the current Terraform state or a saved plan file in structured JSON. Returns resources, outputs, and version info.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path
planFilestringPath to a saved plan file to show instead of the current state

vagrant Vagrant

Manages Vagrant VMs: status, global-status, up, halt, destroy.

ParameterTypeDescription
action *stringVagrant action to perform
compactbooleanPrefer compact output
machinestringTarget machine name
workDirstringProject root path

ansible-playbook Ansible Playbook

Runs an Ansible playbook and returns structured play recap with per-host results.

ParameterTypeDescription
playbook *stringPath to playbook file
checkbooleanRun in check mode / dry-run (-C)
compactbooleanPrefer compact output
extraVarsstringExtra variables as key=value or JSON string (-e)
forksintegerNumber of parallel processes (-f)
inventorystringInventory file or host list (-i)
limitstringLimit to specific hosts or groups (--limit)
listTagsbooleanList all available tags (--list-tags)
listTasksbooleanList all tasks that would be executed (--list-tasks)
pathstringProject root path
skipTagsstringSkip plays and tasks tagged with these values (--skip-tags)
syntaxCheckbooleanPerform a syntax check on the playbook (--syntax-check)
tagsstringOnly run plays and tasks tagged with these values (--tags)
verboseintegerVerbosity level 0-4 (-v through -vvvv)

ansible-inventory Ansible Inventory

Queries Ansible inventory for hosts, groups, and variables. Returns structured JSON for --list or tree text for --graph.

ParameterTypeDescription
compactbooleanPrefer compact output
graphbooleanShow inventory graph (--graph) instead of JSON list
hoststringShow variables for a specific host (--host)
inventorystringInventory file or host list (-i)
pathstringProject root path
varsbooleanShow host variables in graph mode (--vars)

ansible-galaxy Ansible Galaxy

Installs or lists Ansible collections and roles from Galaxy or a requirements file.

ParameterTypeDescription
action *stringGalaxy action to perform
compactbooleanPrefer compact output
forcebooleanForce overwriting an existing collection or role (--force)
namestringCollection or role name to install (e.g. community.general)
pathstringProject root path
requirementsstringPath to requirements file (-r)