Update README.md
This commit is contained in:
parent
059b5debf0
commit
7a316a4a32
1 changed files with 32 additions and 1 deletions
31
README.md
31
README.md
|
@ -1 +1,32 @@
|
|||
# ucloud-cli
|
||||
|
||||
|
||||
### Listing available ucloud products
|
||||
|
||||
```
|
||||
(ucloud-cli) [test@ungleich ucloud-cli]$ UCLOUD_PAY_SERVER=http://127.0.0.1:5000 python ucloud.py product list
|
||||
{
|
||||
"/v1/products/": {
|
||||
"description": "YEARLY IPV6 subscription",
|
||||
"name": "IPV6 VPN",
|
||||
"price": 12000,
|
||||
"recurring_duration": 31536000,
|
||||
"recurring_duration_units": 0,
|
||||
"type": "recurring"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Adding new products
|
||||
```
|
||||
(ucloud-cli) [test@ungleich ucloud-cli]$ UCLOUD_PAY_SERVER=http://127.0.0.1:5000 python ucloud.py product add \
|
||||
--name mravi \
|
||||
--realm test \
|
||||
--seed stest \
|
||||
--product-name "IPV6 VPN" \
|
||||
--product-description="YEARLY IPV6 subscription" \
|
||||
--product-type=recurring \
|
||||
--product-recurring-duration=31536000 \
|
||||
--product-price=12000
|
||||
|
||||
```
|
Loading…
Reference in a new issue