cofidectl init
Initialises the cofidectl config file for use with Cofide Connect
Synopsis
Section titled “Synopsis”This command adds a profile for a Cofide Connect instance to the cofidectl config file in the current working directory, creating the file if it does not exist.
The profile is named by —profile or COFIDECTL_PROFILE. If neither is set, the name is derived from —connect-tls-grpc-target: its host, followed by ”-” and its port unless the port is 443, e.g. “connect.example.com” or “connect.example.com-8443”. If the config file has no default_profile, the new profile becomes its default_profile.
If the profile already exists with the same config, the command succeeds without changing it, only setting it as the default_profile if the config file has none. If it exists with a different config, the command fails rather than replace it.
cofidectl init [flags]Options
Section titled “Options” --connect-audience string OAuth2 audience to request for the access token during login --connect-insecure-tls Do not validate the certificate of Cofide Connect --connect-tls-grpc-target string Connect API gRPC target --connect-tls-server-name string Optional SNI override when calling the Connect API -h, --help help for init --oauth-authorization-url string OAuth2 authorization URL --oauth-client-id string OAuth2 client ID --oauth-issuer-url string OAuth2 issuer URL --oauth-scope stringArray OAuth2 scope to request during login (repeatable, replaces defaults: [openid profile email offline_access]) --oauth-token-url string OAuth2 token URLOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config string Cofidectl config file (default: cofide/cofidectl.yaml in the user config directory, e.g. ~/.config on Linux) --dir string directory to write the generated docs to (default "docs/cli") --format string output format: md, md-site, man or rest (default "md") --link-prefix string md-site only, required: URL path the generated pages are published under, used to rewrite links between them --log-level string Log level (overrides the COFIDECTL_LOG_LEVEL environment variable) (default "ERROR") -o, --output format Output format (table|json) (default table) --profile string Config profile to use (overrides the COFIDECTL_PROFILE environment variable)SEE ALSO
Section titled “SEE ALSO”- cofidectl - Cofide CLI
© 2026 Cofide Limited. All rights reserved.