Config

View and manage configuration values.

Synopsis

View and manage configuration values.

Carbon loads configuration files from your home directory, then merges it with a configuration file in the current directory (if it exists). This should allow you the flexibility you need.

Configuration keys

  • carbon.default.dir
  • carbon.deployments.dir
  • carbon.images.dir
  • carbon.packer.dir
  • carbon.projects.dir
  • carbon.providers.aws.enabled
  • carbon.providers.aws.profiles.default.enabled
  • carbon.providers.multipass.enabled
  • carbon.providers.multipass.profiles.default.enabled
  • carbon.providers.qemu.enabled
  • carbon.providers.qemu.profiles.default.enabled
  • carbon.providers.virtualbox.enabled
  • carbon.providers.virtualbox.profiles.default.enabled
  • carbon.terraform.dir
carbon config [flags]

Examples

# Configure vSphere credentials
carbon config carbon.credentials.vsphere_server.provider vsphere
carbon config carbon.credentials.vsphere_server.username vsphere_user@vsphere.example
carbon config carbon.credentials.vsphere_server.password_command 'op read op://Private/vSphere Creds/password'
# Set a default project directory
carbon config carbon.default.dir ~/my/path/haxors

Options

  -h, --help           help for config
  -r, --remove-reset   remove key from the config or reset to default
  -s, --save           save the current configuration
  -k, --sub-keys       display only the sub-keys

Options inherited from parent commands

      --config string   config file (default is $HOME/.carbon.yaml)
      --debug           Debug mode
  -j, --json            Output in JSON

SEE ALSO

  • carbon - Carbon - Infrastructure automation for offensive operations.
Auto generated by spf13/cobra on 10-Oct-2024
Last modified October 29, 2024: update (0deef86)