Skip to content

CLI Commands Reference

Complete command reference for FinFocus.

Terminal window
finfocus # Auto-detects Pulumi project; opens overview if found, otherwise shows help
finfocus overview # Unified cost dashboard (alias: ov)
finfocus cost # Cost commands
finfocus cost projected # Estimate costs from plan
finfocus cost actual # Get actual historical costs
finfocus cost estimate # What-if cost analysis
finfocus cost recommendations # Get cost optimization recommendations
finfocus cost recommendations dismiss # Dismiss a recommendation
finfocus cost recommendations snooze # Snooze a recommendation
finfocus cost recommendations undismiss # Re-enable a dismissed recommendation
finfocus cost recommendations history # View recommendation lifecycle history
finfocus config # Configuration commands
finfocus config init # Initialize configuration file with defaults
finfocus config set # Set a configuration value
finfocus config get # Get a configuration value
finfocus config list # List all configuration values
finfocus config validate # Validate routing configuration
finfocus config routes # Routing inspection commands
finfocus config routes list # Show effective routing rules
finfocus config routes test # Simulate plugin selection for a resource type
finfocus plugin # Plugin commands
finfocus plugin init # Initialize a new plugin
finfocus plugin install # Install a plugin
finfocus plugin update # Update a plugin
finfocus plugin upgrade # Upgrade a plugin project to a newer finfocus-spec
finfocus plugin remove # Remove a plugin
finfocus plugin list # List installed plugins
finfocus plugin inspect # Inspect plugin capabilities
finfocus plugin validate # Validate plugin setup
finfocus plugin conformance # Run conformance tests
finfocus plugin certify # Run certification tests
finfocus analyzer # Analyzer commands
finfocus analyzer install # Install the Pulumi analyzer plugin
finfocus analyzer uninstall # Uninstall the Pulumi analyzer plugin
finfocus analyzer serve # Start the analyzer gRPC server

Display a unified cost dashboard combining Pulumi state and plan data with actual costs, projected costs, drift analysis, and recommendations.

When run inside a Pulumi project directory without explicit file flags, finfocus overview auto-detects the project and current stack, then runs pulumi stack export and pulumi preview --json automatically. Running finfocus with no arguments has the same effect when a Pulumi project is detected.

Alias: ov

Plain table output prints a pre-flight line with the resource count, any pending changes, and the plugin count. On a terminal, without --yes, overview then asks Continue? [Y/n] before pricing. Enter continues. n or no prints Cancelled. and exits successfully. Piped input and --yes skip the question.

Terminal window
finfocus overview [options]
finfocus ov [options]
finfocus # same as overview when inside a Pulumi project
Flag Description Default
--pulumi-state Path to Pulumi state JSON (skips auto-detection) Auto-detected
--pulumi-json Path to Pulumi preview JSON (skips auto-detection) Auto-detected
--stack Pulumi stack name for auto-detection (ignored with --pulumi-state/--pulumi-json) Current stack
--from Start date (YYYY-MM-DD or RFC3339) 1st of current month
--to End date (YYYY-MM-DD or RFC3339) Now
--adapter Restrict to a specific adapter plugin All plugins
--output Output format: table, json, ndjson table
--filter Resource filters, repeatable -
--plain Force non-interactive plain text output false
--force-color Force styled output when stdout is not a terminal false
--no-color Plain output. Wins over --force-color and --high-contrast false
--color Force colored output. Same switch as --force-color false
--high-contrast Brighter budget colors (ANSI 46, 226, 196, and 231) false
--yes, -y Skip confirmation prompts false
--no-pagination Disable pagination (plain mode only) false
Terminal window
# Auto-detect from current Pulumi project (recommended)
finfocus overview
# Same — bare invocation inside a Pulumi project
finfocus
# Select a non-default stack
finfocus overview --stack production
# Use pre-exported files
finfocus overview --pulumi-state state.json --pulumi-json plan.json
# CI/CD: non-interactive JSON output
finfocus overview --output json --yes
# Filter to a single provider
finfocus overview --filter provider=aws --plain --yes
# Custom date range
finfocus overview --from 2026-01-01 --to 2026-01-31 --plain --yes

Calculate estimated costs from Pulumi plan. When --pulumi-json is omitted, FinFocus auto-detects the Pulumi project and runs pulumi preview --json.

Terminal window
finfocus cost projected [options]
Flag Description Default
--pulumi-json Path to Pulumi preview JSON (optional; auto-detected if omitted)
--terraform-state Path to a Terraform state file (mutually exclusive with --pulumi-json)
--stack Pulumi stack name for auto-detection (ignored with –pulumi-json)
--filter Filter resources (tag:key=value, type=*) None
--output Output format: table, json, ndjson table
--utilization Assumed resource utilization (0.0-1.0) 1.0
--show-breakdown Per-component cost sub-rows in table output. Ignored for json and ndjson false
--help Show help
Terminal window
# Auto-detect from Pulumi project
finfocus cost projected
# Specific stack
finfocus cost projected --stack production
# Explicit file (existing behavior)
finfocus cost projected --pulumi-json plan.json
# JSON output
finfocus cost projected --pulumi-json plan.json --output json
# Filter by type
finfocus cost projected --pulumi-json plan.json --filter "type=aws:ec2*"
# NDJSON for pipelines
finfocus cost projected --pulumi-json plan.json --output ndjson

--terraform-state parses a Terraform state v4 file (terraform.tfstate) and prices every managed resource as-is — the state represents current infrastructure, so there are no create/update/delete deltas. The cost diff reports every resource as unchanged, with the same price before and after.

Caveats:

  • Resource IDs use the Terraform address format (e.g. module.networking.aws_instance.web[0]). These are unique within a single state file, not globally across state files.
  • Type resolution to Pulumi tokens requires a plugin advertising the resolve_resource_types capability. Without it, FinFocus falls back to raw Terraform types and mechanical property conversion; resources that cannot be priced show $0.00 / no cost data. When no loaded plugin advertises the capability (it requires a plugin built on finfocus-spec v0.6.1 or later), FinFocus prints one warning to stderr and still exits 0.
  • Encrypted state (e.g. OpenTofu state encryption) is not decrypted. Run tofu state pull (or the Terraform equivalent) to obtain plaintext state first.
  • Deposed (create-before-destroy leftover) and tainted instances are excluded.

Store and read projected-cost snapshots for one Pulumi stack. collect needs the Pulumi CLI and a cost plugin. view, list, diff, prune, and export read the per-stack database only.

Terminal window
finfocus cost history collect --stack <name> [options]
Flag Description Default
--stack Pulumi stack name. This is the parent cost flag required
--from Only checkpoints on or after this date (YYYY-MM-DD) none
--versions Keep the newest N successful checkpoints. 0 is no limit 0
--parallel Concurrent pulumi stack export calls 4
--skip-destroy Skip destroy checkpoints instead of storing $0 false

--versions 1 is the post-deploy pattern. It stores the newest successful checkpoint and skips a version that is already in the database. The default 0 backfills every successful checkpoint that is missing.

The database is ~/.finfocus/history/<stack>.history.db. Slashes in the stack name become dashes. FINFOCUS_HOME changes the root. CI recipes are in CI/CD cost tracking.

Terminal window
finfocus cost history export --stack <name> --format <json|csv|ndjson>
Flag Description Default
--stack Pulumi stack name. This is the parent cost flag required
--format json, csv, or ndjson. This is the root --format flag required
--from Include snapshots on or after this date (YYYY-MM-DD) none
--to Include snapshots on or before this date none
--provider Keep one provider’s monthly cost none

json is one document with snapshots and annotations. csv has a header and one row per snapshot. ndjson is one snapshot per line. cost projected and cost actual add a Trend column when that stack’s history file exists.

Display cost optimization recommendations from cloud providers.

Terminal window
finfocus cost recommendations --pulumi-json <file> [options]
Flag Description Default
--pulumi-json Path to Pulumi preview JSON Required
--filter Filter expression (e.g., action=RIGHTSIZE,TERMINATE) None
--output Output format: table, json, ndjson table
--limit Limit number of recommendations 0 (all)
--verbose Show all recommendations with full details false
--include-dismissed Show local dismissed and snoozed rows, and ask plugins to include ones they dismissed false
--sort Sort expression (e.g., savings:desc, or risk with scoring) None
--scoring-dry-run Print what would be sent to the scorer plugin and send nothing false
--no-scoring Skip the scoring step for this run false
--help Show help

--filter also accepts score expressions such as risk<=0.3, and --sort accepts risk, false_positive, worth_acting, priority and insufficient_evidence. These require the optional scoring step, which is off by default. See the Recommendation Scoring Guide.

Subcommand Description
dismiss Permanently dismiss a recommendation
snooze Snooze a recommendation until a date
undismiss Re-enable a dismissed recommendation
history View lifecycle history for a recommendation
Terminal window
# Interactive mode (default)
finfocus cost recommendations --pulumi-json plan.json
# Filter by action type
finfocus cost recommendations --pulumi-json plan.json --filter "action=RIGHTSIZE,TERMINATE"
# JSON output
finfocus cost recommendations --pulumi-json plan.json --output json
# Include dismissed and snoozed recommendations
finfocus cost recommendations --pulumi-json plan.json --include-dismissed

Permanently dismiss a recommendation with a reason.

Terminal window
finfocus cost recommendations dismiss <recommendation-id> [options]
Flag Description Default
-r, --reason Dismissal reason (required) Required
-n, --note Free-text explanation (required for other reason) None
-f, --force Skip confirmation prompt false
--pulumi-json Path to Pulumi preview JSON (for plugin communication) None
--adapter Use specific adapter plugin None
Reason Description
not-applicable Recommendation doesn’t apply
already-implemented Already acted on this recommendation
business-constraint Business requirements prevent action
technical-constraint Technical limitations prevent action
deferred Will address later
inaccurate Recommendation data is wrong
other Custom reason (requires --note)
Terminal window
# Dismiss with a reason
finfocus cost recommendations dismiss rec-123abc \
--reason business-constraint --pulumi-json plan.json
# Dismiss with a custom note
finfocus cost recommendations dismiss rec-123abc \
--reason other --note "Intentional oversizing" --pulumi-json plan.json
# Skip confirmation prompt
finfocus cost recommendations dismiss rec-123abc \
--reason not-applicable --force --pulumi-json plan.json

Temporarily dismiss a recommendation until a future date.

Terminal window
finfocus cost recommendations snooze <recommendation-id> [options]
Flag Description Default
--until Snooze until date (required, YYYY-MM-DD or RFC3339; must be in the future) Required
-r, --reason Dismissal reason deferred
-n, --note Free-text explanation None
-f, --force Skip confirmation prompt false
--pulumi-json Path to Pulumi preview JSON (for plugin communication) None
--adapter Use specific adapter plugin None
Terminal window
# Snooze until a specific date (replace with a future date)
finfocus cost recommendations snooze rec-456def \
--until YYYY-MM-DD --pulumi-json plan.json
# Snooze with reason and note (replace with a future date)
finfocus cost recommendations snooze rec-456def \
--until YYYY-MM-DD --reason deferred \
--note "Scheduled for Q2 review" --pulumi-json plan.json

Re-enable a previously dismissed or snoozed recommendation.

Terminal window
finfocus cost recommendations undismiss <recommendation-id> [options]
Flag Description Default
-f, --force Skip confirmation prompt false
Terminal window
# Re-enable a dismissed recommendation
finfocus cost recommendations undismiss rec-123abc

View the lifecycle history of a specific recommendation.

Terminal window
finfocus cost recommendations history <recommendation-id> [options]
Flag Description Default
--output Output format: table, json, ndjson table
Terminal window
# View history in table format
finfocus cost recommendations history rec-123abc
# View history as JSON
finfocus cost recommendations history rec-123abc --output json
# View history as NDJSON (one JSON object per line)
finfocus cost recommendations history rec-123abc --output ndjson

Get actual historical costs from plugins. When --pulumi-json and --pulumi-state are both omitted, FinFocus auto-detects the Pulumi project and runs pulumi stack export.

Terminal window
finfocus cost actual [options]
Flag Description Default
--pulumi-json Path to Pulumi preview JSON (mutually exclusive with –pulumi-state)
--pulumi-state Path to Pulumi state JSON from pulumi stack export
--terraform-state Path to a Terraform state file (requires --from; mutually exclusive with --pulumi-json/--pulumi-state)
--stack Pulumi stack name for auto-detection (ignored with –pulumi-json/–pulumi-state)
--from Start date (YYYY-MM-DD or RFC3339; auto-detected from state if omitted)
--to End date (YYYY-MM-DD or RFC3339) Now
--filter Filter resources (tag:key=value, type=*) None
--group-by Group results (resource, type, provider, daily, monthly)
--output Output format: table, json, ndjson table
--estimate-confidence Request confidence and include it in JSON and NDJSON. Also adds the table column false
--show-confidence Add a confidence column to table output. Does not change JSON or NDJSON false
--show-breakdown Per-component cost sub-rows in table output. Ignored for json and ndjson false
--help Show help

--estimate-confidence asks the plugin for a confidence level and keeps that field in JSON and NDJSON. --show-confidence only adds the table column. Either flag shows the column. Levels:

Level Description
HIGH Real billing data from plugin (AWS Cost Explorer, Kubecost)
MEDIUM Runtime estimate for Pulumi-created resources
LOW Runtime estimate for imported resources (creation time unknown)
Terminal window
# Auto-detect from Pulumi project (dates auto-detected from state)
finfocus cost actual
# Auto-detect with specific stack
finfocus cost actual --stack production
# Estimate costs from Pulumi state (--from auto-detected from timestamps)
finfocus cost actual --pulumi-state state.json
# Estimate costs from state with explicit date range
finfocus cost actual --pulumi-state state.json --from 2025-01-01 --to 2025-01-31
# Get costs from Pulumi plan
finfocus cost actual --pulumi-json plan.json --from 2025-01-01
# Group by day
finfocus cost actual --pulumi-json plan.json --group-by daily --from 2025-01-01 --to 2025-01-31
# Group by provider
finfocus cost actual --pulumi-json plan.json --from 2025-01-01 --group-by provider
# Filter by tag
finfocus cost actual --pulumi-json plan.json --from 2025-01-01 --filter "tag:env=prod"
# JSON output
finfocus cost actual --pulumi-json plan.json --from 2025-01-01 --output json
# Show estimate confidence levels (useful for imported resources)
finfocus cost actual --pulumi-state state.json --estimate-confidence

Perform what-if cost analysis on resources without modifying Pulumi code.

Terminal window
finfocus cost estimate [options]

The command supports two mutually exclusive modes:

Single-Resource Mode:

  • Specify --provider and --resource-type to estimate cost for a single resource
  • Use --property to specify property overrides (repeatable)

Plan-Based Mode:

  • Specify --pulumi-json to load resources from a Pulumi plan
  • Use --modify to apply modifications to specific resources
Flag Description Default
--provider Cloud provider (aws, gcp, azure)
--resource-type Resource type (e.g., ec2:Instance)
--property Property override key=value (repeatable)
--pulumi-json Path to Pulumi preview JSON
--modify Resource modification resource:key=value
--region Region for cost calculation
--interactive Launch interactive TUI mode false
--output Output format: table, json, ndjson table
--adapter Specific plugin adapter to use
--help Show help
Terminal window
# Single resource estimation - estimate cost of changing instance type
finfocus cost estimate --provider aws --resource-type ec2:Instance \
--property instanceType=m5.large
# Single resource with region
finfocus cost estimate --provider aws --resource-type ec2:Instance \
--property instanceType=m5.large --region us-west-2
# Plan-based estimation - modify a specific resource in existing plan
finfocus cost estimate --pulumi-json plan.json \
--modify "web-server:instanceType=m5.large"
# Plan-based with multiple modifications
finfocus cost estimate --pulumi-json plan.json \
--modify "web-server:instanceType=m5.large" \
--modify "api-server:instanceType=c5.xlarge"
# Interactive TUI mode
finfocus cost estimate --interactive
# Interactive mode with plan
finfocus cost estimate --pulumi-json plan.json --interactive
# JSON output for scripting
finfocus cost estimate --provider aws --resource-type ec2:Instance \
--property instanceType=m5.large --output json

cost estimate --interactive asks each plugin for GetPricingSpec while the TUI loads. A returned billing mode is listed with its rate, pricing tiers, assumptions, and usage metric hints. Left and right move between modes when more than one plugin returns one. A missing spec, or a not_implemented billing mode, leaves the estimate editable. The lookup is cached for that resource type until the command exits.

What-If Cost Analysis
=====================
Resource: ec2:Instance (aws)
ID: estimate-resource
Baseline: $8.32/mo (USD)
Modified: $83.22/mo (USD)
Change: +$74.90/mo
Property Changes:
-----------------
instanceType: t3.micro -> m5.large (+$74.90/mo)

The interactive TUI mode allows you to:

  • Navigate through resource properties with arrow keys
  • Edit property values inline (press Enter to edit)
  • See live cost updates as you modify properties
  • Press ‘q’ or Ctrl+C to exit

Initialize a configuration file with default values. When run inside a Pulumi project, creates project-local configuration at $PROJECT/.finfocus/config.yaml along with a .gitignore to protect user-specific data. Use --global to force global initialization even inside a project.

Terminal window
finfocus config init [options]
Flag Description Default
--global Force global config init even inside a Pulumi project false
--force Overwrite existing configuration file false
Terminal window
# Create project-local config (inside a Pulumi project)
finfocus config init
# Create global config
finfocus config init --global
# Overwrite existing config
finfocus config init --force

Set a configuration value using dot notation. Writes to ~/.finfocus/config.yaml (or the project-local config when inside a Pulumi project).

For sensitive values such as API keys, use environment variables instead of storing them in config files.

Terminal window
finfocus config set <key> <value>
Terminal window
# Set output format
finfocus config set output.default_format json
# Set plugin configuration
finfocus config set plugins.aws.region us-west-2
# Set logging level
finfocus config set logging.level debug
# For sensitive values, prefer environment variables
export FINFOCUS_PLUGIN_AWS_SECRET_KEY="mysecret"

Get a configuration value using dot notation from ~/.finfocus/config.yaml.

Terminal window
finfocus config get <key>
Terminal window
# Get output format
finfocus config get output.default_format
# Get a plugin section
finfocus config get plugins.aws
# Get all plugins
finfocus config get plugins
# Get logging level
finfocus config get logging.level

List all configuration values from ~/.finfocus/config.yaml.

Terminal window
finfocus config list [options]
Flag Description Default
--format Output format: yaml or json yaml
Terminal window
# List all configuration in YAML format (default)
finfocus config list
# List all configuration in JSON format
finfocus config list --as json

Validate the active configuration file, or the file given by --file.

The report covers syntax, budget amount, currency, period, alerts, and exit codes, plus unknown fields. A close name includes a suggestion. Routing plugin checks run only after the file itself is valid. Warnings do not fail the command. --output json prints the same report for CI. Cost commands read the active file in their pre-run and stop before plugin work when it is invalid.

Terminal window
finfocus config validate [--file path] [--output text|json] [--verbose]
Flag Description Default
--file Configuration file to validate active config
--output Report format: text or json text
--verbose Print loaded settings after a valid text report false
--help Show help
Terminal window
# Validate the active configuration
finfocus config validate
# Validate one file and emit JSON
finfocus config validate --file ./config.hujson --output json
# Text error (plain):
# Configuration Error: config.hujson
# Errors:
# Error at line 2: budget period must be 'monthly': got "weekly"
# Path: cost.budgets.global.period
# Hint: The only supported period is monthly (period: monthly).

Display effective plugin routing rules.

Terminal window
finfocus config routes list [--output table|json]
Flag Description Default
--output Output format: table or json table
Terminal window
# Show routing as a table
finfocus config routes list
# Show routing in JSON
finfocus config routes list --output json

Simulate plugin selection for a resource type and view match reasons.

Terminal window
finfocus config routes test <resource-type> [region] [--output table|json]
Argument Required Description
resource-type Yes Pulumi type token (for example aws:ec2:Instance)
region No Region hint (for example us-east-1)
Flag Description Default
--output Output format: table or json table
Terminal window
# Test routing for a type
finfocus config routes test aws:ec2:Instance
# Include region in match context
finfocus config routes test aws:ec2:Instance us-east-1
# JSON output for scripts
finfocus config routes test aws:ec2:Instance --output json

Initialize a new FinFocus plugin project.

The scaffold includes a golangci-lint v2 config at .golangci-lint.yml. make lint and the generated CI workflow pass --config .golangci-lint.yml, because golangci-lint does not discover that filename on its own. local-prefixes is the plugin module path github.com/example/<name>.

After generating the project, plugin init installs the finfocus-plugin-dev and finfocus-plugin-upgrade agent skills into .agents/skills/ and .claude/skills/ with npx skills add, and records them in skills-lock.json. A release build installs the skills from its own tag, so they match the SDK version it scaffolds; a development build uses main. The step is best-effort: without Node or network access, init still succeeds and prints the command to run later. --offline and --no-skill skip it.

Terminal window
finfocus plugin init <plugin-name> --author <name> --providers <list> [options]
Flag Description Default
--author Author name for the plugin (required)
--providers Comma-separated list of cloud providers (required)
--output-dir Output directory for the plugin project .
--force Overwrite existing files if the directory exists false
--with-docker Generate Docker support files true
--with-docs Generate documentation templates true
--with-health Include health endpoint code true
--minimal Generate minimal scaffold only (overrides --with-* flags) false
--no-docker Skip Docker files (alias for --with-docker=false) false
--no-docs Skip documentation (alias for --with-docs=false) false
--no-health Skip health endpoint (alias for --with-health=false) false
--docker-only Generate only Docker files (for existing projects) false
--with-claude-review Generate a Claude Code review workflow false
--no-skill Do not install the FinFocus plugin agent skills false
--help Show help
Terminal window
# Initialize a new AWS plugin
finfocus plugin init my-aws-plugin --author "Your Name" --providers aws
# Minimal scaffold without Docker, docs, or health endpoint
finfocus plugin init my-plugin --author "Your Name" --providers aws --minimal
# Without Docker support
finfocus plugin init my-plugin --author "Your Name" --providers aws --no-docker

Install a FinFocus plugin from a registry or URL.

Terminal window
finfocus plugin install <plugin-name> [--version <version>] [--url <url>] [options]
Flag Description Default
--version Specify plugin version to install latest
--url URL to plugin binary (for custom installs) (registry lookup)
--force Force overwrite existing plugin installation false
--clean Remove all other versions after successful install false
--metadata Key=value metadata pairs (e.g., region=us-west-2) (none)
--no-save Don’t add plugin to config file false
--help Show help
Terminal window
# Install the latest Vantage plugin
finfocus plugin install vantage
# Install a specific version of a plugin
finfocus plugin install opencost --version 0.1.2
# Install and remove all other versions (cleanup disk space)
finfocus plugin install opencost --clean
# Install from a custom URL
finfocus plugin install my-plugin --url https://example.com/my-plugin-0.1.0.tar.gz
# Install with region metadata (selects region-specific binary)
finfocus plugin install aws-public --metadata="region=us-west-2"
# Pin a version with name@version
finfocus plugin install aws-public@v0.2.0

Plugins install into plugins/ under the FinFocus home: $FINFOCUS_HOME, then $PULUMI_HOME/finfocus, then ~/.finfocus. plugin update and plugin remove use the same directory, and --plugin-dir overrides it.

A release can be published a few minutes before its archives are uploaded. When you do not request a version and the latest release has no assets yet, the installer prints a warning naming both versions and installs the newest earlier stable release that has assets. When you request that version explicitly, the installer does not swap versions on its own. The error says release <version> of <plugin> has no assets yet (the upload may still be in progress), and the usual version fallback applies: an interactive prompt, or --fallback-to-latest. Otherwise retry shortly or pin an earlier version.

Update an installed FinFocus plugin.

Terminal window
finfocus plugin update <plugin-name> [options]
Flag Description Default
--version Specify target version (defaults to latest) latest
--all Update all installed plugins false
--help Show help
Terminal window
# Update the Vantage plugin to the latest version
finfocus plugin update vantage
# Update all installed plugins
finfocus plugin update --all

Upgrade the source of a plugin project to a newer finfocus-spec version. To update an installed plugin binary, use plugin update.

The command reads the finfocus-spec requirement from go.mod. It then plans a hop for each release that needs action from plugin authors, up to the version this finfocus build uses. Applying the plan rewrites the go.mod requirement and go directive, and any SpecVersion declaration.

Every other change is listed as a manual step, with a link to that hop’s migration guide. The finfocus-plugin-upgrade agent skill works through those steps.

Applying needs a clean git working tree. The code edits never use the network, so run go mod tidy afterwards.

After applying, and also when the plugin is already up to date, the command reinstalls the finfocus-plugin-dev and finfocus-plugin-upgrade agent skills at this finfocus release with npx skills add. The skill files are listed under changed files and in the JSON skill object. The step is best-effort: if it fails, the command prints a warning and the command to run later. --dry-run shows that command, and --no-skill skips the step.

Terminal window
finfocus plugin upgrade [options]
Flag Description Default
--dir Plugin project directory (containing go.mod) .
--to Target release: a hop version or finfocus’s own finfocus’s own
--allow-dirty Apply even without a clean git working tree false
--no-skill Do not reinstall the plugin agent skills false
--output Output format: table or json table
--dry-run Print the plan without changing files (global) false
Terminal window
# Show the plan for the plugin in the current directory
finfocus plugin upgrade --dry-run
# Apply the automatic edits, then refresh go.sum
finfocus plugin upgrade
go mod tidy
# Stop at a specific version
finfocus plugin upgrade --dir ../my-plugin --to v0.6.0

Remove an installed FinFocus plugin.

Terminal window
finfocus plugin remove <plugin-name> [options]
Flag Description Default
--all Remove all installed plugins false
--help Show help
Terminal window
# Remove the Vantage plugin
finfocus plugin remove vantage
# Remove all installed plugins
finfocus plugin remove --all

List installed plugins with optional capability details.

Terminal window
finfocus plugin list [options]
Flag Description Default
--verbose Show detailed plugin capabilities and providers false
--help Show help
Terminal window
# List all plugins
finfocus plugin list
# Output:
# NAME VERSION SPEC PATH
# vantage 0.1.0 0.4.14 /Users/me/.finfocus/plugins/vantage/v0.1.0/finfocus-plugin-vantage
# opencost 0.1.2 0.7.5 /Users/me/.finfocus/plugins/opencost/v0.1.2/finfocus-plugin-opencost
# List with detailed capabilities (routing-aware)
finfocus plugin list --verbose
# Output:
# NAME VERSION PROVIDERS CAPABILITIES SPEC PATH
# aws-public 1.0.0 [aws] ProjectedCosts, ActualCosts 0.4.14 /Users/me/.finfocus/plugins/aws-public/v1.0.0/finfocus-plugin-aws-public
# aws-ce 1.0.0 [aws] Recommendations, ActualCosts 0.4.14 /Users/me/.finfocus/plugins/aws-ce/v1.0.0/finfocus-plugin-aws-ce
# gcp-public 1.0.0 [gcp] ProjectedCosts, ActualCosts 0.4.14 /Users/me/.finfocus/plugins/gcp-public/v1.0.0/finfocus-plugin-gcp-public
# eks-costs 0.5.0 [aws] ProjectedCosts 0.4.14 /Users/me/.finfocus/plugins/eks-costs/v0.5.0/finfocus-plugin-eks-costs

Inspect a plugin’s capabilities and field mappings.

Terminal window
finfocus plugin inspect <plugin-name> <resource-type> [options]
Flag Description Default
--version Specify plugin version to inspect latest
--json Output in JSON format false
--help Show help
Terminal window
# Inspect field mappings for AWS EC2 Instance
finfocus plugin inspect aws-public aws:ec2/instance:Instance
# Output:
# Field Mappings:
# FIELD STATUS CONDITION
# -------------------- ---------- ------------------------------
# instanceType MAPPED
# region MAPPED
# tags IGNORED Not used for pricing
# Inspect specific version
finfocus plugin inspect aws-public aws:ec2/instance:Instance --version v0.1.0
# Output as JSON
finfocus plugin inspect aws-public aws:ec2/instance:Instance --json

Validate plugin installations.

Terminal window
finfocus plugin validate [options]
Flag Description
--help Show help
Terminal window
# Validate all plugins
finfocus plugin validate
# Output:
# vantage (0.1.0): OK
# opencost (0.1.2): OK

Run conformance tests against a plugin binary to verify protocol compliance.

Terminal window
finfocus plugin conformance <plugin-path> [options]
Flag Description Default
--mode Communication mode: tcp, stdio tcp
--verbosity Output detail: quiet, normal, verbose, debug normal
--output Output format: table, json, junit table
--output-file Write output to file stdout
--timeout Global suite timeout 5m
--category Filter by category (repeatable): protocol, error, performance, context all
--filter Regex filter for test names
--help Show help
Terminal window
# Basic conformance check
finfocus plugin conformance ./plugins/aws-cost
# Verbose output with JSON
finfocus plugin conformance --verbosity verbose --output json ./plugins/aws-cost
# Filter to protocol tests only
finfocus plugin conformance --category protocol ./plugins/aws-cost
# JUnit XML for CI
finfocus plugin conformance --output junit --output-file report.xml ./plugins/aws-cost
# Use stdio mode
finfocus plugin conformance --mode stdio ./plugins/aws-cost

Run full certification tests and generate a certification report.

Terminal window
finfocus plugin certify <plugin-path> [options]
Flag Description Default
-o, --output Output file for certification report stdout
--mode Communication mode: tcp, stdio tcp
--timeout Global certification timeout 10m
--help Show help

A plugin is certified if all conformance tests pass:

  • All protocol tests (Name, GetProjectedCost, GetActualCost)
  • All error handling tests
  • All context/timeout tests
  • All performance tests
Terminal window
# Basic certification
finfocus plugin certify ./plugins/aws-cost
# Save report to file
finfocus plugin certify --output certification.md ./plugins/aws-cost
# Use stdio mode
finfocus plugin certify --mode stdio ./plugins/aws-cost
# Output:
# 🔍 Certifying plugin at ./plugins/aws-cost...
# Running conformance tests...
# ✅ CERTIFIED - Plugin passed all conformance tests

The command generates a markdown report containing:

  • Plugin name and version
  • Certification status (CERTIFIED or FAILED)
  • Test summary (total, passed, failed, skipped)
  • List of issues (if any failed)

Starts the FinFocus analyzer gRPC server. This command is intended to be run by the Pulumi CLI as part of the pulumi preview workflow, typically configured in Pulumi.yaml.

Terminal window
finfocus analyzer serve [options]
Flag Description Default
--logtostderr Log messages to stderr rather than log files false
--v Log level for V-logging (verbose logging) 0
--pulumilogfile Pulumi log file name (internal use) (generated)
--help Show help
Terminal window
# This command is typically not run directly by users.
# It's configured in Pulumi.yaml for zero-click cost estimation:
#
# plugins:
# - path: finfocus
# args: ["analyzer", "serve"]

Install the finfocus binary as a Pulumi Analyzer plugin. This replaces the manual process of creating the plugin directory, copying the binary, and setting permissions.

After installation, the binary on PATH is required for Pulumi to find it:

Terminal window
export PATH="${HOME}/.pulumi/plugins/analyzer-finfocus-v<version>:${PATH}"
Terminal window
finfocus analyzer install [options]
Flag Description Default
--force Overwrite existing installation false
--target-dir Override Pulumi plugin directory ~/.pulumi/plugins/
Terminal window
# Install the analyzer
finfocus analyzer install
# Force reinstall after upgrading finfocus
finfocus analyzer install --force
# Install to a custom directory
finfocus analyzer install --target-dir /opt/pulumi/plugins

Remove all installed versions of the finfocus Pulumi Analyzer plugin. All analyzer-finfocus-v* directories are deleted from the plugin directory.

Terminal window
finfocus analyzer uninstall [options]
Flag Description Default
--target-dir Override Pulumi plugin directory ~/.pulumi/plugins/
Terminal window
# Uninstall the analyzer
finfocus analyzer uninstall
# Uninstall from a custom directory
finfocus analyzer uninstall --target-dir /opt/pulumi/plugins
Terminal window
finfocus [global options] command [command options]
Option Description
--help Show help
--version Show version
--debug Enable debug logging
--verbose Enable verbose output
--no-color Plain text on overview and cost output commands
--plain Plain text on overview and cost output commands
--color Force color on overview and cost output commands
--high-contrast Brighter budget colors on styled output
--skip-version-check Skip plugin spec version compatibility check
Terminal window
# ISO 8601 (YYYY-MM-DD)
finfocus cost actual --from 2024-01-01
# RFC3339 (full timestamp)
finfocus cost actual --from 2024-01-01T00:00:00Z
# Relative (future)
finfocus cost actual --from "7 days ago"

Human-readable table format:

RESOURCE TYPE MONTHLY CURRENCY
Instance1 ec2 $7.50 USD
Bucket1 s3 $0.50 USD
──────────────────────────────
Total $8.00 USD

Machine-readable JSON format:

{
"summary": { "totalMonthly": 8.0, "currency": "USD" },
"resources": [{ "name": "Instance1", "type": "ec2", "cost": 7.5 }]
}

Newline-delimited JSON (one per line):

{"name":"Instance1","type":"ec2","cost":7.50}
{"name":"Bucket1","type":"s3","cost":0.50}
Code Meaning
0 Success
1 General error
2 Invalid input (error_code: validation_error in JSON output)

Exit code 2 covers invalid flag combinations, unreadable or malformed --terraform-state, --pulumi-json and --pulumi-state input (missing file, directory, empty file, bad JSON, unsupported or encrypted state), invalid filters, and unparseable date ranges for cost projected and cost actual. Earlier releases reported these as exit code 1 with error_code: internal_error.


See User Guide for workflow examples.