Skip to content

CLI Reference

Last updated: Apr. 1, 2026

The Foundry CLI provides a collection of commands that support the entire app development process. You can use it to create, test, and manage your apps directly from the command line.

Most Foundry commands can be run in either non-interactive mode or interactive mode. In non-interactive mode, you use command-line arguments to form exactly the command you want to run, in a single step. In interactive mode, you run a basic command with no extra arguments, and you’re guided through a series of prompts. To back out of a series of prompts, press Ctrl+C.

If a flag is marked as required in this reference, this means that the flag is required for the command to run. If you don’t specify a flag that’s required, you’re prompted to provide a value for it. Some commands have a --no-prompt flag, which prevents prompts for unspecified flags. If you don’t specify all required flags when you use the --no-prompt flag, the command returns an error.

To view the list of available Foundry commands:

Terminal window
foundry

To view a list of available subcommands for a command:

Terminal window
foundry [subcommand]

To view usage and options, add --help or -h:

Terminal window
foundry apps create -h

To view detailed command execution output, add the --verbose option.


Create and manage API integrations for your app.

Terminal window
foundry api-integrations [subcommand]

Subcommands: create, run, view

Terminal window
foundry api-integrations create [flags]

Example:

Terminal window
foundry api-integrations create --name PetStore \
--spec https://petstore3.swagger.io/api/v3/openapi.json --no-prompt
FlagRequiredDescription
--description -dYesA description for the API integration.
--name -nYesA name for the API integration.
--specYesThe file path or URL to an OpenAPI specification file.
--no-promptNoPrevents prompting for user input.

Run an operation in an API integration.

Terminal window
foundry api-integrations run [flags]
FlagRequiredDescription
--operation-idYesThe name of the API operation to run.
--spec -sYesPath to the OpenAPI specification within the app directory.
-c, --configsNoThe config to pass to the API. Can specify multiple.
--operation-pathNoThe path of the API operation to run.
--operation-verbNoThe verb (GET, POST, etc.) for the API operation.
--params -pConditionalParameters to pass. Required if the operation has mandatory parameters.

Start a local Swagger Editor UI server.

Terminal window
foundry api-integrations view

Create and manage apps.

Terminal window
foundry apps [subcommand]

Subcommands: clone, create, delete, deploy, list-deployments, release, run, sync

Make a copy of an existing Foundry app deployment.

Terminal window
foundry apps clone [flags]

Example:

Terminal window
foundry apps clone --app-id 84b299...d44731 --directory my-cloned-app --deployment-version v1.1.0-pre-release --no-git
FlagRequiredDescription
--app-idYesThe app ID. Find it at Foundry > App manager — the last part of the URL.
--deployment-version -vYesThe deployment version to clone.
--directory -dNoLocation for the cloned app. Defaults to the app name.
--no-gitNoPrevent initializing a Git repository.
--overwrite -wNoOverwrites an existing directory of the same name.

Create a new app, its directory structure, and manifest file.

Terminal window
foundry apps create [flags]

Example:

Terminal window
foundry apps create --name "my-first-app" --description "My first Foundry app" --no-prompt
FlagRequiredDescription
--name -nYesA name for the app.
--description -dYesA description for the app.
--from-templateNoUse an app template to create an app.
--logo -lNoURL or file system path to an image for the app logo.
--no-gitNoPrevent initializing a Git repository.
--no-promptNoPrevent prompting for optional flags.
--usecaseNoUse case for the app.
--vendorNoVendor of the app.
--vendor-productsNoComma-delimited list of related products.

Delete an app, its directory structure, and manifest file. Use with caution — changes are irreversible.

Terminal window
foundry apps delete [flags]
FlagRequiredDescription
--force-delete -fNoDelete without prompting for confirmation.
--local-filesNoAlso delete local files. Default: false.

Package and upload files from your local app directory to your CID.

Terminal window
foundry apps deploy [flags]

Example:

Terminal window
foundry apps deploy --change-type major --change-log "New Threat Hunting dashboard"
FlagRequiredDescription
--change-log -cYesA description of the changes in this deployment.
--change-typeYesThe version type: major, minor, or patch.
--diff-onlyNoPreview a diff without performing the deployment.
--no-live-progressNoDo not display live progress.
--no-promptNoPrevent prompting.
--re-deployNoRetry the latest failed deployment.
--write-local-pkgNoWrite the packaged content to the local file system.

List deployments and deployment IDs for an app.

Terminal window
foundry apps list-deployments [flags]

Release an app deployment version so it can be installed from the app catalog.

Important: Releasing an app with the Foundry CLI does not trigger MFA identity verification for apps with relevant RTR capabilities in environments where MFA is required. MFA identity verification is triggered only when releasing apps from the Foundry UI.

Terminal window
foundry apps release [flags]

Example:

Terminal window
foundry apps release --deployment-id dc2e8c...c80bfd --change-type major --notes "New Threat Hunting dashboard"
FlagRequiredDescription
--change-type -vYesThe version type: major, minor, or patch.
--deployment-id -dYesThe deployment ID. Get this by running foundry apps list-deployments.
--notes -nYesRelease notes describing the changes.
--app-idNoSpecify only if running from a different app directory.

Start the app locally in development mode.

Terminal window
foundry apps run

Download an app deployment version into a directory for local development.

Terminal window
foundry apps sync [flags]

Example:

Terminal window
foundry apps sync --app-id d955b4...296693 --deployment-version v3.0.0-pre-release --no-git
FlagRequiredDescription
--app-idYesThe app ID.
--deployment-version -vYesThe deployment version to sync.
--directory -dNoDirectory to sync into. Defaults to the app name.
--forceNoForce sync even if there are undeployed UI changes.
--no-gitNoPrevent initializing a Git repository.
--no-promptNoPrevent prompting.
--replace-all -wNoReplace all files in the directory if it already exists.

Validates the app and its associated artifacts for deployment to the cloud without actually deploying. This performs a dry run of the deployment process.

Terminal window
foundry apps validate [flags]

Example:

Terminal window
foundry apps validate --no-prompt
FlagRequiredDescription
--no-promptNoDo not interactively prompt for any values.

Manage authorization for your app (roles and scopes).

Terminal window
foundry auth [subcommand]

Subcommands: roles, scopes

Create a custom role and permissions to control app access.

Terminal window
foundry auth roles create [flags]

Example:

Terminal window
foundry auth roles create --name threat-hunting-dashboard --description "Controls access to the threat hunting dashboard" --permissions access-dashboards

Grant additional permissions to your app.

Terminal window
foundry auth scopes add

Note: Running this command results in a major version update and requires users of your app to accept.


Create and manage storage collections and schemas.

Terminal window
foundry collections [subcommand]

Create a new collection with a new schema, or update an existing collection.

Terminal window
foundry collections create --name <new_collection_name> [flags]
foundry collections create --name <existing_collection_name> [flags]
FlagRequiredDescription
--name -nYesA name for the collection (new or existing).
--description -dYesA description for the collection.
--schemaYesFile path or URL to a JSON Schema document.
--permissionsNoPermissions required. Must be created with foundry auth roles create first.
--wf-exposeNoControls whether the artifact can be used as a workflow action. Default: false.
--wf-app-only-actionNoLimit to app workflows only (not Fusion SOAR). Default: true.
--wf-tagsNoOptional tags for categorization in Fusion SOAR workflows.

Output shell completion for the given shell.

Terminal window
foundry completion [subcommand]

Subcommands: bash, fish, oh-my-zsh, powershell, zsh


Create a README doc for your Foundry app in Markdown.

Terminal window
foundry docs [subcommand]

Subcommands: add, create

Upload an image for your app’s README doc.

Terminal window
foundry docs add --image-path example.png

Note: The image file must be added to the app_docs directory first.

Create a README doc for your Foundry app.

Terminal window
foundry docs create --name readme.md

Build custom business logic into your app. Functions can be written in Python or Go.

Terminal window
foundry functions [subcommand]

Aliases: fns

Subcommands: create, run

Add a function to an app. This command does not have an interactive mode — you must specify all required options on the command line.

You can’t assign permissions when creating a function; you must assign permissions in the app manifest.

Example (Python):

Terminal window
foundry functions create --name "hello-world-py" --description "hello world function in python" -l python --handler-method GET --handler-name "hello-world-handler" --handler-path /helloworld

Example (Go):

Terminal window
foundry functions create --name "hello-world-go" --description "hello world function in go" --language go --handler-method GET --handler-name "hello-world-handler" --handler-path /helloworld
FlagRequiredDescription
--name -nYesFunction name (5-50 chars, lowercase letters/numbers/hyphens).
--description -dYesDescription (10-1000 chars).
--language -lYespython or go.
--handler-nameYesA name for the function handler.
--handler-methodYesHTTP method: GET, POST, PUT, PATCH, or DELETE.
--handler-pathYesThe path to the handler API.
--input-schemaYesPath to a JSON schema file for expected input.
--config-pathNoFile path for a function configuration file (JSON or YAML).
--max_exec_duration_secondsNoMaximum execution time, up to 900 seconds.
--max_exec_memory_mbNoMaximum memory allocation, up to 1024 MB.
--output-schemaNoPath to a JSON schema file for expected output.
--permissionsNoPermissions required for the function.
--wf-exposeNoControls whether the function can be used as a workflow action. Default: false.
--wf-app-only-actionNoLimit to app workflows only. Default: true.
--wf-disruptiveNoMark the function as potentially disruptive.
--wf-tagsNoOptional tags for Fusion SOAR workflows.

Run a Docker image locally to test a function.

Terminal window
foundry functions run [flags]
FlagRequiredDescription
--nameYesRun only the named functions.
--debugNoPrint detailed debug logs.

Create a CLI profile by opening an authorization form in your browser.

Terminal window
foundry login [flags]

Tip: If you use SSO, make sure you’re logged in with SSO, then go directly to the URL output by foundry login.

FlagRequiredDescription
--cloud-region -cNoCloud region: us-1, us-2, eu-1, us-gov-1, us-gov-2.
--no-configNoOutput credentials to stdout instead of saving to configuration file.

Display and manage Foundry CLI profiles.

Note: On Linux and macOS, your profile is stored in ~/.config/foundry/configuration.yml. On Windows: C:\Users\<username>\.config\foundry\configuration.yml.

Terminal window
foundry profile [subcommand]

Subcommands: activate, create, delete, list

Change the active Foundry CLI profile.

Terminal window
foundry profile activate [flags]

Create a new Foundry CLI profile from an existing, non-Foundry API client.

Terminal window
foundry profile create [flags]
FlagRequiredDescription
--api-client-idYesThe ID of an existing API client.
--api-client-secretYesThe secret for an existing API client.
--cidYesThe CID where the profile should be created.
--cloud-regionYesCloud region: us-1, us-2, eu-1, us-gov-1, us-gov-2.
--name -nYesA name for the CLI profile.

Delete a Foundry CLI profile and its associated API client ID and secret.

Terminal window
foundry profile delete [flags]

List all of your Foundry CLI profiles.

Terminal window
foundry profile list

Create and manage custom Real Time Response scripts.

Terminal window
foundry rtr-scripts [subcommand]

Subcommands: create, run

Add an RTR script to an app.

Terminal window
foundry rtr-scripts create [flags]
FlagRequiredDescription
--name -nYesThe RTR script name.
--platform -pYesPlatform: Linux, Windows, or Mac.
--description -dNoAn optional description.

Run an RTR script locally for testing.

Terminal window
foundry rtr-scripts run [flags]
FlagRequiredDescription
--script-name -sYesThe RTR script name to run.
--device-idConditionalThe host ID (required if hostname not provided).
--hostnameConditionalThe host name (required if device-id not provided).
--params -pNoParameters to pass to the RTR script.

Manage queries for an app.

Terminal window
foundry saved-searches [subcommand]

Aliases: logscale, saved-search, ss

Subcommands: create, delete, edit, list, upload


Create and manage UI extensions and pages.

Terminal window
foundry ui [subcommand]

Subcommands: extensions, pages, run

Create a new UI extension.

Terminal window
foundry ui extensions create

Create a new UI page.

Terminal window
foundry ui pages create

Start the app locally in development mode.

Terminal window
foundry ui run

Create and manage workflow templates.

Create a new workflow template from a YAML specification file.

Terminal window
foundry workflows create [flags]

Example:

Terminal window
foundry workflows create --name "Paginate security events" \
--spec workflows/Paginate_security_events.yml --no-prompt
FlagRequiredDescription
--name -nYesName of the workflow.
--spec -sYesFilepath or URL to a workflow specification file.
--permissionsNoPermissions required for the workflow.
--no-promptNoDo not interactively prompt for any values.

Workflow YAML specs are typically created visually in the Falcon console workflow builder and exported, then passed to this command. Hand-authoring the YAML from scratch is rare because the format includes action IDs and class references.