cfctl init
You can configure the environment for using cfctl through the cfctl setting init
command.
❯ cfctl setting
Manage setting file for cfctl.
You can initialize, switch environments, and display the current configuration.
Usage:
cfctl setting [command]
Available Commands:
endpoint Set the endpoint for the current environment
environment List and manage environments
init Initialize a new environment setting
show Display the current cfctl configuration
token Set the token for the current environment
Flags:
-h, --help help for setting
Use "cfctl setting [command] --help" for more information about a command.
The cfctl setting init
command has two subcommands: proxy
and static
, which can be chosen based on the user’s needs.
❯ cfctl setting init
ERROR You must specify either 'proxy' or 'static' command.
Initialize a new environment setting for cfctl by specifying an endpoint
Usage:
cfctl setting init [flags]
cfctl setting init [command]
Available Commands:
proxy Initialize configuration with a proxy URL
static Initialize static connection to a local or service endpoint
Flags:
-h, --help help for init
Use "cfctl setting init [command] --help" for more information about a command.
Let’s first look at the proxy
subcommand of cfctl setting init
.