Skip to content

Commit 670c8c9

Browse files
committed
10.2.0
1 parent 15f019e commit 670c8c9

File tree

3 files changed

+179
-7
lines changed

3 files changed

+179
-7
lines changed

README.md

Lines changed: 176 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $ npm install -g @adobe/aio-cli
9696
$ aio COMMAND
9797
running command...
9898
$ aio (--version|-v)
99-
@adobe/aio-cli/10.1.0 darwin-arm64 node-v18.20.1
99+
@adobe/aio-cli/10.2.0 darwin-arm64 node-v20.14.0
100100
$ aio --help [COMMAND]
101101
USAGE
102102
$ aio COMMAND
@@ -156,6 +156,11 @@ USAGE
156156
* [`aio app logs`](#aio-app-logs)
157157
* [`aio app pack [PATH]`](#aio-app-pack-path)
158158
* [`aio app run`](#aio-app-run)
159+
* [`aio app state delete [KEYS]`](#aio-app-state-delete-keys)
160+
* [`aio app state get KEY`](#aio-app-state-get-key)
161+
* [`aio app state list`](#aio-app-state-list)
162+
* [`aio app state put KEY VALUE`](#aio-app-state-put-key-value)
163+
* [`aio app state stats`](#aio-app-state-stats)
159164
* [`aio app test`](#aio-app-test)
160165
* [`aio app undeploy`](#aio-app-undeploy)
161166
* [`aio app use [CONFIG_FILE_PATH]`](#aio-app-use-config_file_path)
@@ -1655,6 +1660,173 @@ DESCRIPTION
16551660

16561661
_See code: [@adobe/aio-cli-plugin-app](https://github.com/adobe/aio-cli-plugin-app/blob/12.2.3/src/commands/app/run.js)_
16571662

1663+
## `aio app state delete [KEYS]`
1664+
1665+
Delete key-values
1666+
1667+
```
1668+
USAGE
1669+
$ aio app state delete [KEYS...] [--json] [--region amer|emea] [--match <value>] [--force]
1670+
1671+
ARGUMENTS
1672+
KEYS... keys to delete. Above 5 keys, you will be prompted for confirmation
1673+
1674+
FLAGS
1675+
--force [use with caution!] force delete, no safety prompt
1676+
--match=<value> [use with caution!] deletes ALL key-values matching the provided glob-like pattern
1677+
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
1678+
<options: amer|emea>
1679+
1680+
GLOBAL FLAGS
1681+
--json Format output as json.
1682+
1683+
DESCRIPTION
1684+
Delete key-values
1685+
1686+
ALIASES
1687+
$ aio app state delete
1688+
1689+
EXAMPLES
1690+
$ aio app state delete key
1691+
1692+
$ aio app state delete key1 key2 key3
1693+
1694+
$ aio app state delete --match 'gl*b'
1695+
1696+
$ aio app state delete --match 'gl*b' --json
1697+
1698+
$ aio app state delete --match 'be-carreful*' --force
1699+
```
1700+
1701+
## `aio app state get KEY`
1702+
1703+
Get a key-value
1704+
1705+
```
1706+
USAGE
1707+
$ aio app state get KEY [--json] [--region amer|emea]
1708+
1709+
ARGUMENTS
1710+
KEY State key
1711+
1712+
FLAGS
1713+
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
1714+
<options: amer|emea>
1715+
1716+
GLOBAL FLAGS
1717+
--json Format output as json.
1718+
1719+
DESCRIPTION
1720+
Get a key-value
1721+
1722+
ALIASES
1723+
$ aio app state get
1724+
1725+
EXAMPLES
1726+
$ aio app state get key
1727+
1728+
$ aio app state get key --json
1729+
1730+
$ aio app state get key | wc -c
1731+
```
1732+
1733+
## `aio app state list`
1734+
1735+
List key-values
1736+
1737+
```
1738+
USAGE
1739+
$ aio app state list [--json] [--region amer|emea] [-m <value>]
1740+
1741+
FLAGS
1742+
-m, --match=<value> [default: *] Glob-like pattern to filter keys
1743+
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
1744+
<options: amer|emea>
1745+
1746+
GLOBAL FLAGS
1747+
--json Format output as json.
1748+
1749+
DESCRIPTION
1750+
List key-values
1751+
1752+
ALIASES
1753+
$ aio app state list
1754+
1755+
EXAMPLES
1756+
$ aio app state list
1757+
1758+
$ aio app state list --match 'gl*b'
1759+
1760+
$ aio app state list --json
1761+
1762+
$ aio app state list | less
1763+
1764+
$ aio app state list | wc -l
1765+
```
1766+
1767+
## `aio app state put KEY VALUE`
1768+
1769+
Put a key-value
1770+
1771+
```
1772+
USAGE
1773+
$ aio app state put KEY VALUE [--json] [--region amer|emea] [-t <value>]
1774+
1775+
ARGUMENTS
1776+
KEY State key
1777+
VALUE State value
1778+
1779+
FLAGS
1780+
-t, --ttl=<value> Time to live in seconds. Default is 86400 (24 hours), max is 31536000 (1 year).
1781+
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
1782+
<options: amer|emea>
1783+
1784+
GLOBAL FLAGS
1785+
--json Format output as json.
1786+
1787+
DESCRIPTION
1788+
Put a key-value
1789+
1790+
ALIASES
1791+
$ aio app state put
1792+
1793+
EXAMPLES
1794+
$ aio app state put key value
1795+
1796+
$ aio app state put key value --ttl 3600
1797+
1798+
$ aio app state put key value --json
1799+
1800+
$ cat value/from/file | xargs -0 ./bin/run.js app state put key
1801+
```
1802+
1803+
## `aio app state stats`
1804+
1805+
Display stats
1806+
1807+
```
1808+
USAGE
1809+
$ aio app state stats [--json] [--region amer|emea]
1810+
1811+
FLAGS
1812+
--region=<option> State region. Defaults to 'AIO_STATE_REGION' env or 'amer' if neither is set.
1813+
<options: amer|emea>
1814+
1815+
GLOBAL FLAGS
1816+
--json Format output as json.
1817+
1818+
DESCRIPTION
1819+
Display stats
1820+
1821+
ALIASES
1822+
$ aio app state stats
1823+
1824+
EXAMPLES
1825+
$ aio app state stats
1826+
1827+
$ aio app state stats --json
1828+
```
1829+
16581830
## `aio app test`
16591831

16601832
Run tests for an Adobe I/O App
@@ -3108,7 +3280,7 @@ ALIASES
31083280
$ aio plugins discover
31093281
```
31103282

3111-
_See code: [src/commands/discover.ts](https://github.com/adobe/aio-cli/blob/10.1.0/src/commands/discover.ts)_
3283+
_See code: [src/commands/discover.ts](https://github.com/adobe/aio-cli/blob/10.2.0/src/commands/discover.ts)_
31123284

31133285
## `aio event`
31143286

@@ -4268,7 +4440,7 @@ DESCRIPTION
42684440
Clears all installed plugins.
42694441
```
42704442

4271-
_See code: [src/commands/rollback.ts](https://github.com/adobe/aio-cli/blob/10.1.0/src/commands/rollback.ts)_
4443+
_See code: [src/commands/rollback.ts](https://github.com/adobe/aio-cli/blob/10.2.0/src/commands/rollback.ts)_
42724444

42734445
## `aio rt`
42744446

@@ -13514,7 +13686,7 @@ DESCRIPTION
1351413686
- update user-installed plugins that are not core
1351513687
```
1351613688

13517-
_See code: [src/commands/update.ts](https://github.com/adobe/aio-cli/blob/10.1.0/src/commands/update.ts)_
13689+
_See code: [src/commands/update.ts](https://github.com/adobe/aio-cli/blob/10.2.0/src/commands/update.ts)_
1351813690

1351913691
## `aio where`
1352013692

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@adobe/aio-cli",
33
"description": "Adobe I/O Extensible CLI\n\n******* *******\n****** ******\n***** *****\n**** * ****\n*** *** ***\n** ***** **\n* ** *\n",
4-
"version": "10.1.0",
4+
"version": "10.2.0",
55
"author": "Adobe Inc.",
66
"bin": {
77
"aio": "bin/run"

0 commit comments

Comments
 (0)