Title: Change wordpress theme through code using wordpress rest API
Last modified: November 4, 2019

---

# Change wordpress theme through code using wordpress rest API

 *  Resolved [sankethshinde](https://wordpress.org/support/users/sankethshinde/)
 * (@sankethshinde)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/change-wordpress-theme-through-code-using-wordpress-rest-api/)
 * I want to change my wordpress website theme using C# code. Is there any wordpress
   rest api available using which I can search existing free themes ad change the
   same?
 * Thanks,
    Sanket

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [FahimMurshed](https://wordpress.org/support/users/fahimmurshed/)
 * (@fahimmurshed)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/change-wordpress-theme-through-code-using-wordpress-rest-api/#post-12094162)
 * I can’t help with wp rest API but there is another way you can change the theme
   with easy way.
 * You can change the theme by [WP-CLI](https://wp-cli.org/)
 * Install theme by terminal
 * `wp theme install golpo`
 * Now check theme list:
 * `wp theme list`
 * then
 * `wp theme activate golpo`
 * For more information:
    – [https://wp-cli.org/](https://wp-cli.org/) – [https://developer.wordpress.org/cli/commands/](https://developer.wordpress.org/cli/commands/)
 *  Thread Starter [sankethshinde](https://wordpress.org/support/users/sankethshinde/)
 * (@sankethshinde)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/change-wordpress-theme-through-code-using-wordpress-rest-api/#post-12094257)
 * Thank you Fahim. It was helpful.
 *  [FahimMurshed](https://wordpress.org/support/users/fahimmurshed/)
 * (@fahimmurshed)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/change-wordpress-theme-through-code-using-wordpress-rest-api/#post-12094312)
 * Awesome! If it is help, you can set this post as “Resolved”.
 * 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change wordpress theme through code using wordpress rest API’ is closed
to new replies.

## Tags

 * [Themes](https://wordpress.org/support/topic-tag/themes/)
 * [WordPress REST API](https://wordpress.org/support/topic-tag/wordpress-rest-api/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [FahimMurshed](https://wordpress.org/support/users/fahimmurshed/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/change-wordpress-theme-through-code-using-wordpress-rest-api/#post-12094312)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
