1. Home
  2. Wp-cli
  3. List database table columns

Lists all columns in a given database table. You will need to pass a table name as the argument. List of the default WordPress tables - wp_commentmeta, wp_comments, wp_links, wp_options, wp_postmeta, wp_posts, wp_term_relationships, wp_term_taxonomy, wp_termmeta, wp_terms, wp_usermeta, wp_users.

#wordpress#cli#db
wp db columns {tabel name}
copy
Full Wp-cli cheatsheet