Skip to content

Commit 1c46a17

Browse files
committed
some fix
1 parent 7ab1821 commit 1c46a17

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

ja/index.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@ title: Command line interface for WordPress
1010

1111
[![Build Status](https://travis-ci.org/wp-cli/wp-cli.png?branch=master)](https://travis-ci.org/wp-cli/wp-cli) [![Dependency Status](https://gemnasium.com/badges/github.com/wp-cli/wp-cli.svg)](https://gemnasium.com/github.com/wp-cli/wp-cli) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/wp-cli/wp-cli.svg)](http://isitmaintained.com/project/wp-cli/wp-cli "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/wp-cli/wp-cli.svg)](http://isitmaintained.com/project/wp-cli/wp-cli "Percentage of issues still open")
1212

13-
<div style="
14-
border: 1px solid #7AD03A;
15-
-webkit-border-radius: 5px;
16-
-moz-border-radius: 5px;
17-
border-radius: 5px;
18-
padding-left: 10px;
19-
padding-right: 10px;
20-
">
21-
<p><strong>A more RESTful WP-CLI</strong> は、コマンドラインによって WP REST API のポテンシャルを解放します。このプロジェクトは Pressed、Chris Lema、Human Made、Pagely、Pantheon、その他大勢の人たちによって支援されています。<a href="https://wp-cli.org/restful/">さらに詳しく &rarr;</a></p>
22-
</div>
23-
2413
Quick links: [使い方](#section) &#124; [インストール方法](#section-1) &#124; [サポート](#section-4) &#124; [拡張](#section-5) &#124; [貢献](#section-6) &#124; [クレジット](#section-8)
2514

2615
## 使い方
2716

2817
WP-CLI のゴールは、みなさんが WordPress の管理画面でやりたいと思うことをコマンドラインで提供することです。
2918
たとえば、`wp plugin install --activate` ([ドキュメント](https://wp-cli.org/commands/plugin/install/)) は、プラグインをインストールし有効化します。
3019

31-
```
20+
```bash
3221
$ wp plugin install rest-api --activate
3322
Installing WordPress REST API (Version 2) (2.0-beta13)
3423
Downloading install package from https://downloads.wordpress.org/plugin/rest-api.2.0-beta13.zip...
@@ -41,7 +30,7 @@ Success: Plugin 'rest-api' activated.
4130

4231
さらに WP-CLI は、WordPress の管理画面ではできない多くのことが可能です。たとえば、`wp transient delete-all` ([doc](https://wp-cli.org/commands/transient/delete-all/)) は、Transient に保存されているすべてのデータを削除することを可能にしています。
4332

44-
```
33+
```bash
4534
$ wp transient delete-all
4635
Success: 34 transients deleted from the database.
4736
```
@@ -62,26 +51,26 @@ WP-CLI をインストールする前に、動作環境を確認してくださ
6251

6352
動作条件を再度確認してから、`wget`または`curl`を使用して [wp-cli.phar](https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar) をダウンロードしてください。
6453

65-
```
54+
```bash
6655
$ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
6756
```
6857

6958
次に、それが動作しているかを確認してください。
7059

71-
```
60+
```bash
7261
$ php wp-cli.phar --info
7362
```
7463

7564
WP-CLI コマンドを`wp`で実行するには、それに実行権限があることと環境変数`PATH`に登録されていることが必要です。
7665

77-
```
66+
```bash
7867
$ chmod +x wp-cli.phar
7968
$ sudo mv wp-cli.phar /usr/local/bin/wp
8069
```
8170

8271
もし、WP-CLI のインストールが成功していれば、`wp --info`を実行したら以下のように出力されるはずです。
8372

84-
```
73+
```bash
8574
$ wp --info
8675
PHP binary: /usr/bin/php5
8776
PHP version: 5.5.9-1ubuntu4.14
@@ -133,7 +122,7 @@ Twitterでサポート用の質問をたずねるのはおやめください。T
133122

134123
WP-CLI では、様々な実行可能なクラス、関数、クロージャをコマンドとして実行することが可能です。コマンドとして実行されるために必要な情報は、PHPdoc によって記述します。 `WP_CLI::add_command()` ([doc](https://wp-cli.org/docs/internal-api/wp-cli-add-command/)) は、内部コマンド及びサードパーティコマンドの登録に使用されています。
135124

136-
```
125+
```php
137126
/**
138127
* Delete an option from the database.
139128
*

0 commit comments

Comments
 (0)