You are viewing documentation for a previous version of Platform9 products. For the latest Private Cloud Director documentation, click here.
Managed Kubernetes
5.14
×
Overview
Getting Started
Clusters
APIs
In Cluster Monitoring
Catapult Remote Monitoring
Platform9 Managed Add-ons
Platform Administration
Workloads & Apps
Support
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Using the CLI for Automation
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
The Platform9 CLI, pf9ctl command, can be used with the --no-promptflag. This allows the CLI to operate within a given automation framework such as Ansible. When using the --no-prompt flag, a CLI command runs in a non-interactive mode that requires no interaction from the user, as it disables all typical user prompts. When a command completes with a zero exit code, it indicates the command has succeeded. A non-zero exit code indicates failure. The CLI commands produces a non-zero code if the required flags are not provided to a sub-command or if an error occurs.
Flag Examples
Bash
Flags: -h, --help help for pf9ctl --no-prompt disable all user prompts --verbose print verbose logsExample Bootstrap
Bash
#pf9ctl bootstrap --no-promptExample Attach Node
Bash
pf9ctl attach-node --no-prompt <cluster-name>Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on Jan 23, 2026
Was this page helpful?
Next to read:
FAQDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message