You can enable tab completion for the Bash or Zsh shells.
After you install ACP CLI (ac), you can enable tab completion to automatically complete ac commands or suggest options when you press Tab. The following procedure enables tab completion for the Bash shell.
Save the Bash completion code to a file:
Copy the file to /etc/bash_completion.d/:
You can also save the file to a local directory and source it from your .bashrc file instead.
Tab completion is enabled when you open a new terminal.
After you install ACP CLI (ac), you can enable tab completion to automatically complete ac commands or suggest options when you press Tab. The following procedure enables tab completion for the Zsh shell.
You must have ACP CLI (ac) installed.
To add tab completion for ac to your .zshrc file, run the following command:
Tab completion is enabled when you open a new terminal.
You can use ACP CLI (ac) to log in to your ACP platform and retrieve a kubeconfig file for accessing clusters from the command line. Unlike traditional single-cluster kubeconfig exports, ac login creates a comprehensive multi-cluster configuration through platform discovery.
You have access to an ACP platform endpoint and valid authentication credentials.
Log in to your ACP platform by running the following command:
<platform-url>: The base URL of the ACP platform (e.g., https://acp.prod.example.com)<session-name>: A user-defined friendly name for this platform connection (e.g., "prod", "staging")The login process automatically:
To export the configuration to a separate file, run:
Set the KUBECONFIG environment variable to point to the exported file:
Use ac to interact with your ACP clusters:
ACP CLI login process creates a comprehensive kubeconfig structure that includes:
acp:<session>:<cluster> formatImportant: The exported kubeconfig file contains authentication tokens that provide access to your ACP platform clusters.
If you plan to reuse the exported kubeconfig file across sessions or machines, ensure it is stored securely and regularly synchronized with ac config sync to maintain current cluster lists.