Skip to content

List configuration on an environment

Usage

$ skpr config list dev
 ──────────────────────────────────── ─────────────────────────────── ──────── 
  KEY (20)                             VALUE                           TYPE    
 ──────────────────────────────────── ─────────────────────────────── ──────── 
  clamav.default.host                  10.43.90.148                    system  
  clamav.default.port                  3310                            system  
  elasticsearch.default.index_prefix   dev_                            system  
  elasticsearch.default.password       [secret]                        system  
  elasticsearch.default.username       nonprod                         system  
  mount.local                          /mnt/local                      system  
  mount.private                        /mnt/private                    system  
  mount.public                         /data/app/sites/default/files   system  
  mount.temporary                      /mnt/temporary                  system  
  mysql.default.database               5r3i2vvizkqb                    system  
  mysql.default.hostname               10.30.0.6                       system  
  mysql.default.password               [secret]                        system  
  mysql.default.port                   3306                            system  
  mysql.default.readonly               10.30.0.6                       system  
  mysql.default.username               [secret]                        system  
  redis.default.endpoint               10.30.0.10:6379                 system  
  redis.default.prefix                 drupal-example-dev-default      system  
  site.name                            Example                         user    
  site.secret                          [secret]                        user    
  skpr.token                           [secret]                        system  
 ──────────────────────────────────── ─────────────────────────────── ──────── 

More Information

$ skpr config list --help
usage: skpr config list <environment>

List all of the config key/value pairs for the specified environment.

Flags:
  --help  Show context-sensitive help (also try --help-long and --help-man).

Args:
  <environment>  Environment as configured. Usually one of: prod/staging/dev.

User & System variables

Key/value pairs are categorized as user or system configuration items and can be stored as Secrets. The important difference is that a user will set a user config item, and Skpr will manage the system configuration items.

What's next?