devhelm 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -950,7 +950,7 @@
950
950
  "description": "Authenticate with the DevHelm API",
951
951
  "examples": [
952
952
  "<%= config.bin %> auth login",
953
- "<%= config.bin %> auth login --token sk_live_..."
953
+ "<%= config.bin %> auth login --token dh_live_..."
954
954
  ],
955
955
  "flags": {
956
956
  "output": {
@@ -1080,6 +1080,67 @@
1080
1080
  "logout.js"
1081
1081
  ]
1082
1082
  },
1083
+ "auth:me": {
1084
+ "aliases": [],
1085
+ "args": {},
1086
+ "description": "Show current API key identity, organization, plan, and rate limits",
1087
+ "examples": [
1088
+ "<%= config.bin %> auth me",
1089
+ "<%= config.bin %> auth me --output json"
1090
+ ],
1091
+ "flags": {
1092
+ "output": {
1093
+ "char": "o",
1094
+ "description": "Output format",
1095
+ "name": "output",
1096
+ "default": "table",
1097
+ "hasDynamicHelp": false,
1098
+ "multiple": false,
1099
+ "options": [
1100
+ "table",
1101
+ "json",
1102
+ "yaml"
1103
+ ],
1104
+ "type": "option"
1105
+ },
1106
+ "api-url": {
1107
+ "description": "Override API base URL",
1108
+ "name": "api-url",
1109
+ "hasDynamicHelp": false,
1110
+ "multiple": false,
1111
+ "type": "option"
1112
+ },
1113
+ "api-token": {
1114
+ "description": "Override API token",
1115
+ "name": "api-token",
1116
+ "hasDynamicHelp": false,
1117
+ "multiple": false,
1118
+ "type": "option"
1119
+ },
1120
+ "verbose": {
1121
+ "char": "v",
1122
+ "description": "Show verbose output",
1123
+ "name": "verbose",
1124
+ "allowNo": false,
1125
+ "type": "boolean"
1126
+ }
1127
+ },
1128
+ "hasDynamicHelp": false,
1129
+ "hiddenAliases": [],
1130
+ "id": "auth:me",
1131
+ "pluginAlias": "devhelm",
1132
+ "pluginName": "devhelm",
1133
+ "pluginType": "core",
1134
+ "strict": true,
1135
+ "enableJsonFlag": false,
1136
+ "isESM": true,
1137
+ "relativePath": [
1138
+ "dist",
1139
+ "commands",
1140
+ "auth",
1141
+ "me.js"
1142
+ ]
1143
+ },
1083
1144
  "auth:token": {
1084
1145
  "aliases": [],
1085
1146
  "args": {},
@@ -1398,12 +1459,12 @@
1398
1459
  "track.js"
1399
1460
  ]
1400
1461
  },
1401
- "incidents:create": {
1462
+ "environments:create": {
1402
1463
  "aliases": [],
1403
1464
  "args": {},
1404
- "description": "Create a new incident",
1465
+ "description": "Create a new environment",
1405
1466
  "examples": [
1406
- "<%= config.bin %> incidents create"
1467
+ "<%= config.bin %> environments create"
1407
1468
  ],
1408
1469
  "flags": {
1409
1470
  "output": {
@@ -1441,37 +1502,25 @@
1441
1502
  "allowNo": false,
1442
1503
  "type": "boolean"
1443
1504
  },
1444
- "title": {
1445
- "description": "Short summary of the incident",
1446
- "name": "title",
1505
+ "name": {
1506
+ "description": "Human-readable environment name",
1507
+ "name": "name",
1447
1508
  "required": true,
1448
1509
  "hasDynamicHelp": false,
1449
1510
  "multiple": false,
1450
1511
  "type": "option"
1451
1512
  },
1452
- "severity": {
1453
- "description": "Incident severity: DOWN, DEGRADED, or MAINTENANCE",
1454
- "name": "severity",
1513
+ "slug": {
1514
+ "description": "URL-safe identifier (lowercase alphanumeric, hyphens, underscores)",
1515
+ "name": "slug",
1455
1516
  "required": true,
1456
1517
  "hasDynamicHelp": false,
1457
1518
  "multiple": false,
1458
- "options": [
1459
- "DOWN",
1460
- "DEGRADED",
1461
- "MAINTENANCE"
1462
- ],
1463
- "type": "option"
1464
- },
1465
- "monitor-id": {
1466
- "description": "Monitor to associate with this incident",
1467
- "name": "monitor-id",
1468
- "hasDynamicHelp": false,
1469
- "multiple": false,
1470
1519
  "type": "option"
1471
1520
  },
1472
- "body": {
1473
- "description": "Detailed description or context for the incident",
1474
- "name": "body",
1521
+ "color": {
1522
+ "description": "Hex color code (defaults to #6B7280 if omitted)",
1523
+ "name": "color",
1475
1524
  "hasDynamicHelp": false,
1476
1525
  "multiple": false,
1477
1526
  "type": "option"
@@ -1479,7 +1528,7 @@
1479
1528
  },
1480
1529
  "hasDynamicHelp": false,
1481
1530
  "hiddenAliases": [],
1482
- "id": "incidents:create",
1531
+ "id": "environments:create",
1483
1532
  "pluginAlias": "devhelm",
1484
1533
  "pluginName": "devhelm",
1485
1534
  "pluginType": "core",
@@ -1489,22 +1538,22 @@
1489
1538
  "relativePath": [
1490
1539
  "dist",
1491
1540
  "commands",
1492
- "incidents",
1541
+ "environments",
1493
1542
  "create.js"
1494
1543
  ]
1495
1544
  },
1496
- "incidents:delete": {
1545
+ "environments:delete": {
1497
1546
  "aliases": [],
1498
1547
  "args": {
1499
- "id": {
1500
- "description": "incident id",
1501
- "name": "id",
1548
+ "slug": {
1549
+ "description": "environment slug",
1550
+ "name": "slug",
1502
1551
  "required": true
1503
1552
  }
1504
1553
  },
1505
- "description": "Delete a incident",
1554
+ "description": "Delete a environment",
1506
1555
  "examples": [
1507
- "<%= config.bin %> incidents delete <id>"
1556
+ "<%= config.bin %> environments delete <slug>"
1508
1557
  ],
1509
1558
  "flags": {
1510
1559
  "output": {
@@ -1545,7 +1594,7 @@
1545
1594
  },
1546
1595
  "hasDynamicHelp": false,
1547
1596
  "hiddenAliases": [],
1548
- "id": "incidents:delete",
1597
+ "id": "environments:delete",
1549
1598
  "pluginAlias": "devhelm",
1550
1599
  "pluginName": "devhelm",
1551
1600
  "pluginType": "core",
@@ -1555,22 +1604,22 @@
1555
1604
  "relativePath": [
1556
1605
  "dist",
1557
1606
  "commands",
1558
- "incidents",
1607
+ "environments",
1559
1608
  "delete.js"
1560
1609
  ]
1561
1610
  },
1562
- "incidents:get": {
1611
+ "environments:get": {
1563
1612
  "aliases": [],
1564
1613
  "args": {
1565
- "id": {
1566
- "description": "incident id",
1567
- "name": "id",
1614
+ "slug": {
1615
+ "description": "environment slug",
1616
+ "name": "slug",
1568
1617
  "required": true
1569
1618
  }
1570
1619
  },
1571
- "description": "Get a incident by id",
1620
+ "description": "Get a environment by slug",
1572
1621
  "examples": [
1573
- "<%= config.bin %> incidents get <id>"
1622
+ "<%= config.bin %> environments get <slug>"
1574
1623
  ],
1575
1624
  "flags": {
1576
1625
  "output": {
@@ -1611,7 +1660,7 @@
1611
1660
  },
1612
1661
  "hasDynamicHelp": false,
1613
1662
  "hiddenAliases": [],
1614
- "id": "incidents:get",
1663
+ "id": "environments:get",
1615
1664
  "pluginAlias": "devhelm",
1616
1665
  "pluginName": "devhelm",
1617
1666
  "pluginType": "core",
@@ -1621,16 +1670,16 @@
1621
1670
  "relativePath": [
1622
1671
  "dist",
1623
1672
  "commands",
1624
- "incidents",
1673
+ "environments",
1625
1674
  "get.js"
1626
1675
  ]
1627
1676
  },
1628
- "incidents:list": {
1677
+ "environments:list": {
1629
1678
  "aliases": [],
1630
1679
  "args": {},
1631
- "description": "List all incidents",
1680
+ "description": "List all environments",
1632
1681
  "examples": [
1633
- "<%= config.bin %> incidents list"
1682
+ "<%= config.bin %> environments list"
1634
1683
  ],
1635
1684
  "flags": {
1636
1685
  "output": {
@@ -1671,7 +1720,7 @@
1671
1720
  },
1672
1721
  "hasDynamicHelp": false,
1673
1722
  "hiddenAliases": [],
1674
- "id": "incidents:list",
1723
+ "id": "environments:list",
1675
1724
  "pluginAlias": "devhelm",
1676
1725
  "pluginName": "devhelm",
1677
1726
  "pluginType": "core",
@@ -1681,22 +1730,22 @@
1681
1730
  "relativePath": [
1682
1731
  "dist",
1683
1732
  "commands",
1684
- "incidents",
1733
+ "environments",
1685
1734
  "list.js"
1686
1735
  ]
1687
1736
  },
1688
- "incidents:resolve": {
1737
+ "environments:update": {
1689
1738
  "aliases": [],
1690
1739
  "args": {
1691
- "id": {
1692
- "description": "Incident ID",
1693
- "name": "id",
1740
+ "slug": {
1741
+ "description": "environment slug",
1742
+ "name": "slug",
1694
1743
  "required": true
1695
1744
  }
1696
1745
  },
1697
- "description": "Resolve an incident",
1746
+ "description": "Update a environment",
1698
1747
  "examples": [
1699
- "<%= config.bin %> incidents resolve 42"
1748
+ "<%= config.bin %> environments update <slug>"
1700
1749
  ],
1701
1750
  "flags": {
1702
1751
  "output": {
@@ -1734,9 +1783,16 @@
1734
1783
  "allowNo": false,
1735
1784
  "type": "boolean"
1736
1785
  },
1737
- "message": {
1738
- "description": "Resolution message",
1739
- "name": "message",
1786
+ "name": {
1787
+ "description": "New environment name; null preserves current",
1788
+ "name": "name",
1789
+ "hasDynamicHelp": false,
1790
+ "multiple": false,
1791
+ "type": "option"
1792
+ },
1793
+ "color": {
1794
+ "description": "New color hex code",
1795
+ "name": "color",
1740
1796
  "hasDynamicHelp": false,
1741
1797
  "multiple": false,
1742
1798
  "type": "option"
@@ -1744,7 +1800,7 @@
1744
1800
  },
1745
1801
  "hasDynamicHelp": false,
1746
1802
  "hiddenAliases": [],
1747
- "id": "incidents:resolve",
1803
+ "id": "environments:update",
1748
1804
  "pluginAlias": "devhelm",
1749
1805
  "pluginName": "devhelm",
1750
1806
  "pluginType": "core",
@@ -1754,22 +1810,16 @@
1754
1810
  "relativePath": [
1755
1811
  "dist",
1756
1812
  "commands",
1757
- "incidents",
1758
- "resolve.js"
1813
+ "environments",
1814
+ "update.js"
1759
1815
  ]
1760
1816
  },
1761
- "incidents:update": {
1817
+ "incidents:create": {
1762
1818
  "aliases": [],
1763
- "args": {
1764
- "id": {
1765
- "description": "incident id",
1766
- "name": "id",
1767
- "required": true
1768
- }
1769
- },
1770
- "description": "Update a incident",
1819
+ "args": {},
1820
+ "description": "Create a new incident",
1771
1821
  "examples": [
1772
- "<%= config.bin %> incidents update <id>"
1822
+ "<%= config.bin %> incidents create"
1773
1823
  ],
1774
1824
  "flags": {
1775
1825
  "output": {
@@ -1845,7 +1895,7 @@
1845
1895
  },
1846
1896
  "hasDynamicHelp": false,
1847
1897
  "hiddenAliases": [],
1848
- "id": "incidents:update",
1898
+ "id": "incidents:create",
1849
1899
  "pluginAlias": "devhelm",
1850
1900
  "pluginName": "devhelm",
1851
1901
  "pluginType": "core",
@@ -1856,15 +1906,21 @@
1856
1906
  "dist",
1857
1907
  "commands",
1858
1908
  "incidents",
1859
- "update.js"
1909
+ "create.js"
1860
1910
  ]
1861
1911
  },
1862
- "environments:create": {
1912
+ "incidents:delete": {
1863
1913
  "aliases": [],
1864
- "args": {},
1865
- "description": "Create a new environment",
1914
+ "args": {
1915
+ "id": {
1916
+ "description": "incident id",
1917
+ "name": "id",
1918
+ "required": true
1919
+ }
1920
+ },
1921
+ "description": "Delete a incident",
1866
1922
  "examples": [
1867
- "<%= config.bin %> environments create"
1923
+ "<%= config.bin %> incidents delete <id>"
1868
1924
  ],
1869
1925
  "flags": {
1870
1926
  "output": {
@@ -1901,34 +1957,11 @@
1901
1957
  "name": "verbose",
1902
1958
  "allowNo": false,
1903
1959
  "type": "boolean"
1904
- },
1905
- "name": {
1906
- "description": "Human-readable environment name",
1907
- "name": "name",
1908
- "required": true,
1909
- "hasDynamicHelp": false,
1910
- "multiple": false,
1911
- "type": "option"
1912
- },
1913
- "slug": {
1914
- "description": "URL-safe identifier (lowercase alphanumeric, hyphens, underscores)",
1915
- "name": "slug",
1916
- "required": true,
1917
- "hasDynamicHelp": false,
1918
- "multiple": false,
1919
- "type": "option"
1920
- },
1921
- "color": {
1922
- "description": "Hex color code (defaults to #6B7280 if omitted)",
1923
- "name": "color",
1924
- "hasDynamicHelp": false,
1925
- "multiple": false,
1926
- "type": "option"
1927
1960
  }
1928
1961
  },
1929
1962
  "hasDynamicHelp": false,
1930
1963
  "hiddenAliases": [],
1931
- "id": "environments:create",
1964
+ "id": "incidents:delete",
1932
1965
  "pluginAlias": "devhelm",
1933
1966
  "pluginName": "devhelm",
1934
1967
  "pluginType": "core",
@@ -1938,22 +1971,22 @@
1938
1971
  "relativePath": [
1939
1972
  "dist",
1940
1973
  "commands",
1941
- "environments",
1942
- "create.js"
1974
+ "incidents",
1975
+ "delete.js"
1943
1976
  ]
1944
1977
  },
1945
- "environments:delete": {
1978
+ "incidents:get": {
1946
1979
  "aliases": [],
1947
1980
  "args": {
1948
- "slug": {
1949
- "description": "environment slug",
1950
- "name": "slug",
1981
+ "id": {
1982
+ "description": "incident id",
1983
+ "name": "id",
1951
1984
  "required": true
1952
1985
  }
1953
1986
  },
1954
- "description": "Delete a environment",
1987
+ "description": "Get a incident by id",
1955
1988
  "examples": [
1956
- "<%= config.bin %> environments delete <slug>"
1989
+ "<%= config.bin %> incidents get <id>"
1957
1990
  ],
1958
1991
  "flags": {
1959
1992
  "output": {
@@ -1994,7 +2027,7 @@
1994
2027
  },
1995
2028
  "hasDynamicHelp": false,
1996
2029
  "hiddenAliases": [],
1997
- "id": "environments:delete",
2030
+ "id": "incidents:get",
1998
2031
  "pluginAlias": "devhelm",
1999
2032
  "pluginName": "devhelm",
2000
2033
  "pluginType": "core",
@@ -2004,22 +2037,16 @@
2004
2037
  "relativePath": [
2005
2038
  "dist",
2006
2039
  "commands",
2007
- "environments",
2008
- "delete.js"
2040
+ "incidents",
2041
+ "get.js"
2009
2042
  ]
2010
2043
  },
2011
- "environments:get": {
2044
+ "incidents:list": {
2012
2045
  "aliases": [],
2013
- "args": {
2014
- "slug": {
2015
- "description": "environment slug",
2016
- "name": "slug",
2017
- "required": true
2018
- }
2019
- },
2020
- "description": "Get a environment by slug",
2046
+ "args": {},
2047
+ "description": "List all incidents",
2021
2048
  "examples": [
2022
- "<%= config.bin %> environments get <slug>"
2049
+ "<%= config.bin %> incidents list"
2023
2050
  ],
2024
2051
  "flags": {
2025
2052
  "output": {
@@ -2060,7 +2087,7 @@
2060
2087
  },
2061
2088
  "hasDynamicHelp": false,
2062
2089
  "hiddenAliases": [],
2063
- "id": "environments:get",
2090
+ "id": "incidents:list",
2064
2091
  "pluginAlias": "devhelm",
2065
2092
  "pluginName": "devhelm",
2066
2093
  "pluginType": "core",
@@ -2070,16 +2097,22 @@
2070
2097
  "relativePath": [
2071
2098
  "dist",
2072
2099
  "commands",
2073
- "environments",
2074
- "get.js"
2100
+ "incidents",
2101
+ "list.js"
2075
2102
  ]
2076
2103
  },
2077
- "environments:list": {
2104
+ "incidents:resolve": {
2078
2105
  "aliases": [],
2079
- "args": {},
2080
- "description": "List all environments",
2106
+ "args": {
2107
+ "id": {
2108
+ "description": "Incident ID",
2109
+ "name": "id",
2110
+ "required": true
2111
+ }
2112
+ },
2113
+ "description": "Resolve an incident",
2081
2114
  "examples": [
2082
- "<%= config.bin %> environments list"
2115
+ "<%= config.bin %> incidents resolve 42"
2083
2116
  ],
2084
2117
  "flags": {
2085
2118
  "output": {
@@ -2116,11 +2149,18 @@
2116
2149
  "name": "verbose",
2117
2150
  "allowNo": false,
2118
2151
  "type": "boolean"
2152
+ },
2153
+ "message": {
2154
+ "description": "Resolution message",
2155
+ "name": "message",
2156
+ "hasDynamicHelp": false,
2157
+ "multiple": false,
2158
+ "type": "option"
2119
2159
  }
2120
2160
  },
2121
2161
  "hasDynamicHelp": false,
2122
2162
  "hiddenAliases": [],
2123
- "id": "environments:list",
2163
+ "id": "incidents:resolve",
2124
2164
  "pluginAlias": "devhelm",
2125
2165
  "pluginName": "devhelm",
2126
2166
  "pluginType": "core",
@@ -2130,22 +2170,22 @@
2130
2170
  "relativePath": [
2131
2171
  "dist",
2132
2172
  "commands",
2133
- "environments",
2134
- "list.js"
2173
+ "incidents",
2174
+ "resolve.js"
2135
2175
  ]
2136
2176
  },
2137
- "environments:update": {
2177
+ "incidents:update": {
2138
2178
  "aliases": [],
2139
2179
  "args": {
2140
- "slug": {
2141
- "description": "environment slug",
2142
- "name": "slug",
2180
+ "id": {
2181
+ "description": "incident id",
2182
+ "name": "id",
2143
2183
  "required": true
2144
2184
  }
2145
2185
  },
2146
- "description": "Update a environment",
2186
+ "description": "Update a incident",
2147
2187
  "examples": [
2148
- "<%= config.bin %> environments update <slug>"
2188
+ "<%= config.bin %> incidents update <id>"
2149
2189
  ],
2150
2190
  "flags": {
2151
2191
  "output": {
@@ -2183,16 +2223,37 @@
2183
2223
  "allowNo": false,
2184
2224
  "type": "boolean"
2185
2225
  },
2186
- "name": {
2187
- "description": "New environment name; null preserves current",
2188
- "name": "name",
2226
+ "title": {
2227
+ "description": "Short summary of the incident",
2228
+ "name": "title",
2229
+ "required": true,
2189
2230
  "hasDynamicHelp": false,
2190
2231
  "multiple": false,
2191
2232
  "type": "option"
2192
2233
  },
2193
- "color": {
2194
- "description": "New color hex code",
2195
- "name": "color",
2234
+ "severity": {
2235
+ "description": "Incident severity: DOWN, DEGRADED, or MAINTENANCE",
2236
+ "name": "severity",
2237
+ "required": true,
2238
+ "hasDynamicHelp": false,
2239
+ "multiple": false,
2240
+ "options": [
2241
+ "DOWN",
2242
+ "DEGRADED",
2243
+ "MAINTENANCE"
2244
+ ],
2245
+ "type": "option"
2246
+ },
2247
+ "monitor-id": {
2248
+ "description": "Monitor to associate with this incident",
2249
+ "name": "monitor-id",
2250
+ "hasDynamicHelp": false,
2251
+ "multiple": false,
2252
+ "type": "option"
2253
+ },
2254
+ "body": {
2255
+ "description": "Detailed description or context for the incident",
2256
+ "name": "body",
2196
2257
  "hasDynamicHelp": false,
2197
2258
  "multiple": false,
2198
2259
  "type": "option"
@@ -2200,7 +2261,7 @@
2200
2261
  },
2201
2262
  "hasDynamicHelp": false,
2202
2263
  "hiddenAliases": [],
2203
- "id": "environments:update",
2264
+ "id": "incidents:update",
2204
2265
  "pluginAlias": "devhelm",
2205
2266
  "pluginName": "devhelm",
2206
2267
  "pluginType": "core",
@@ -2210,7 +2271,7 @@
2210
2271
  "relativePath": [
2211
2272
  "dist",
2212
2273
  "commands",
2213
- "environments",
2274
+ "incidents",
2214
2275
  "update.js"
2215
2276
  ]
2216
2277
  },
@@ -4745,18 +4806,18 @@
4745
4806
  "update.js"
4746
4807
  ]
4747
4808
  },
4748
- "auth:context:create": {
4809
+ "data:services:status": {
4749
4810
  "aliases": [],
4750
4811
  "args": {
4751
- "name": {
4752
- "description": "Context name",
4753
- "name": "name",
4812
+ "slug": {
4813
+ "description": "Service slug",
4814
+ "name": "slug",
4754
4815
  "required": true
4755
4816
  }
4756
4817
  },
4757
- "description": "Create a new auth context",
4818
+ "description": "Get the current status of a service",
4758
4819
  "examples": [
4759
- "<%= config.bin %> auth context create staging --api-url https://staging-api.devhelm.io --token sk_..."
4820
+ "<%= config.bin %> data services status aws-ec2"
4760
4821
  ],
4761
4822
  "flags": {
4762
4823
  "output": {
@@ -4793,25 +4854,11 @@
4793
4854
  "name": "verbose",
4794
4855
  "allowNo": false,
4795
4856
  "type": "boolean"
4796
- },
4797
- "token": {
4798
- "description": "API token",
4799
- "name": "token",
4800
- "required": true,
4801
- "hasDynamicHelp": false,
4802
- "multiple": false,
4803
- "type": "option"
4804
- },
4805
- "set-current": {
4806
- "description": "Set as current context",
4807
- "name": "set-current",
4808
- "allowNo": false,
4809
- "type": "boolean"
4810
4857
  }
4811
4858
  },
4812
4859
  "hasDynamicHelp": false,
4813
4860
  "hiddenAliases": [],
4814
- "id": "auth:context:create",
4861
+ "id": "data:services:status",
4815
4862
  "pluginAlias": "devhelm",
4816
4863
  "pluginName": "devhelm",
4817
4864
  "pluginType": "core",
@@ -4821,23 +4868,24 @@
4821
4868
  "relativePath": [
4822
4869
  "dist",
4823
4870
  "commands",
4824
- "auth",
4825
- "context",
4826
- "create.js"
4871
+ "data",
4872
+ "services",
4873
+ "status.js"
4827
4874
  ]
4828
4875
  },
4829
- "auth:context:delete": {
4876
+ "data:services:uptime": {
4830
4877
  "aliases": [],
4831
4878
  "args": {
4832
- "name": {
4833
- "description": "Context name to delete",
4834
- "name": "name",
4879
+ "slug": {
4880
+ "description": "Service slug",
4881
+ "name": "slug",
4835
4882
  "required": true
4836
4883
  }
4837
4884
  },
4838
- "description": "Delete an auth context",
4885
+ "description": "Get uptime data for a service",
4839
4886
  "examples": [
4840
- "<%= config.bin %> auth context delete staging"
4887
+ "<%= config.bin %> data services uptime aws-ec2",
4888
+ "<%= config.bin %> data services uptime aws-ec2 --period 30d"
4841
4889
  ],
4842
4890
  "flags": {
4843
4891
  "output": {
@@ -4874,11 +4922,26 @@
4874
4922
  "name": "verbose",
4875
4923
  "allowNo": false,
4876
4924
  "type": "boolean"
4925
+ },
4926
+ "period": {
4927
+ "description": "Time period (7d, 30d, 90d)",
4928
+ "name": "period",
4929
+ "default": "30d",
4930
+ "hasDynamicHelp": false,
4931
+ "multiple": false,
4932
+ "type": "option"
4933
+ },
4934
+ "granularity": {
4935
+ "description": "Data granularity (hourly, daily)",
4936
+ "name": "granularity",
4937
+ "hasDynamicHelp": false,
4938
+ "multiple": false,
4939
+ "type": "option"
4877
4940
  }
4878
4941
  },
4879
4942
  "hasDynamicHelp": false,
4880
4943
  "hiddenAliases": [],
4881
- "id": "auth:context:delete",
4944
+ "id": "data:services:uptime",
4882
4945
  "pluginAlias": "devhelm",
4883
4946
  "pluginName": "devhelm",
4884
4947
  "pluginType": "core",
@@ -4888,17 +4951,23 @@
4888
4951
  "relativePath": [
4889
4952
  "dist",
4890
4953
  "commands",
4891
- "auth",
4892
- "context",
4893
- "delete.js"
4954
+ "data",
4955
+ "services",
4956
+ "uptime.js"
4894
4957
  ]
4895
4958
  },
4896
- "auth:context": {
4959
+ "auth:context:create": {
4897
4960
  "aliases": [],
4898
- "args": {},
4899
- "description": "Show the current auth context",
4961
+ "args": {
4962
+ "name": {
4963
+ "description": "Context name",
4964
+ "name": "name",
4965
+ "required": true
4966
+ }
4967
+ },
4968
+ "description": "Create a new auth context",
4900
4969
  "examples": [
4901
- "<%= config.bin %> auth context"
4970
+ "<%= config.bin %> auth context create staging --api-url https://staging-api.devhelm.io --token sk_..."
4902
4971
  ],
4903
4972
  "flags": {
4904
4973
  "output": {
@@ -4935,11 +5004,25 @@
4935
5004
  "name": "verbose",
4936
5005
  "allowNo": false,
4937
5006
  "type": "boolean"
5007
+ },
5008
+ "token": {
5009
+ "description": "API token",
5010
+ "name": "token",
5011
+ "required": true,
5012
+ "hasDynamicHelp": false,
5013
+ "multiple": false,
5014
+ "type": "option"
5015
+ },
5016
+ "set-current": {
5017
+ "description": "Set as current context",
5018
+ "name": "set-current",
5019
+ "allowNo": false,
5020
+ "type": "boolean"
4938
5021
  }
4939
5022
  },
4940
5023
  "hasDynamicHelp": false,
4941
5024
  "hiddenAliases": [],
4942
- "id": "auth:context",
5025
+ "id": "auth:context:create",
4943
5026
  "pluginAlias": "devhelm",
4944
5027
  "pluginName": "devhelm",
4945
5028
  "pluginType": "core",
@@ -4951,15 +5034,21 @@
4951
5034
  "commands",
4952
5035
  "auth",
4953
5036
  "context",
4954
- "index.js"
5037
+ "create.js"
4955
5038
  ]
4956
5039
  },
4957
- "auth:context:list": {
5040
+ "auth:context:delete": {
4958
5041
  "aliases": [],
4959
- "args": {},
4960
- "description": "List all auth contexts",
5042
+ "args": {
5043
+ "name": {
5044
+ "description": "Context name to delete",
5045
+ "name": "name",
5046
+ "required": true
5047
+ }
5048
+ },
5049
+ "description": "Delete an auth context",
4961
5050
  "examples": [
4962
- "<%= config.bin %> auth context list"
5051
+ "<%= config.bin %> auth context delete staging"
4963
5052
  ],
4964
5053
  "flags": {
4965
5054
  "output": {
@@ -5000,7 +5089,7 @@
5000
5089
  },
5001
5090
  "hasDynamicHelp": false,
5002
5091
  "hiddenAliases": [],
5003
- "id": "auth:context:list",
5092
+ "id": "auth:context:delete",
5004
5093
  "pluginAlias": "devhelm",
5005
5094
  "pluginName": "devhelm",
5006
5095
  "pluginType": "core",
@@ -5012,21 +5101,15 @@
5012
5101
  "commands",
5013
5102
  "auth",
5014
5103
  "context",
5015
- "list.js"
5104
+ "delete.js"
5016
5105
  ]
5017
5106
  },
5018
- "auth:context:use": {
5107
+ "auth:context": {
5019
5108
  "aliases": [],
5020
- "args": {
5021
- "name": {
5022
- "description": "Context name to activate",
5023
- "name": "name",
5024
- "required": true
5025
- }
5026
- },
5027
- "description": "Switch to a different auth context",
5109
+ "args": {},
5110
+ "description": "Show the current auth context",
5028
5111
  "examples": [
5029
- "<%= config.bin %> auth context use staging"
5112
+ "<%= config.bin %> auth context"
5030
5113
  ],
5031
5114
  "flags": {
5032
5115
  "output": {
@@ -5067,7 +5150,7 @@
5067
5150
  },
5068
5151
  "hasDynamicHelp": false,
5069
5152
  "hiddenAliases": [],
5070
- "id": "auth:context:use",
5153
+ "id": "auth:context",
5071
5154
  "pluginAlias": "devhelm",
5072
5155
  "pluginName": "devhelm",
5073
5156
  "pluginType": "core",
@@ -5079,21 +5162,15 @@
5079
5162
  "commands",
5080
5163
  "auth",
5081
5164
  "context",
5082
- "use.js"
5165
+ "index.js"
5083
5166
  ]
5084
5167
  },
5085
- "data:services:status": {
5168
+ "auth:context:list": {
5086
5169
  "aliases": [],
5087
- "args": {
5088
- "slug": {
5089
- "description": "Service slug",
5090
- "name": "slug",
5091
- "required": true
5092
- }
5093
- },
5094
- "description": "Get the current status of a service",
5170
+ "args": {},
5171
+ "description": "List all auth contexts",
5095
5172
  "examples": [
5096
- "<%= config.bin %> data services status aws-ec2"
5173
+ "<%= config.bin %> auth context list"
5097
5174
  ],
5098
5175
  "flags": {
5099
5176
  "output": {
@@ -5134,7 +5211,7 @@
5134
5211
  },
5135
5212
  "hasDynamicHelp": false,
5136
5213
  "hiddenAliases": [],
5137
- "id": "data:services:status",
5214
+ "id": "auth:context:list",
5138
5215
  "pluginAlias": "devhelm",
5139
5216
  "pluginName": "devhelm",
5140
5217
  "pluginType": "core",
@@ -5144,24 +5221,23 @@
5144
5221
  "relativePath": [
5145
5222
  "dist",
5146
5223
  "commands",
5147
- "data",
5148
- "services",
5149
- "status.js"
5224
+ "auth",
5225
+ "context",
5226
+ "list.js"
5150
5227
  ]
5151
5228
  },
5152
- "data:services:uptime": {
5229
+ "auth:context:use": {
5153
5230
  "aliases": [],
5154
5231
  "args": {
5155
- "slug": {
5156
- "description": "Service slug",
5157
- "name": "slug",
5232
+ "name": {
5233
+ "description": "Context name to activate",
5234
+ "name": "name",
5158
5235
  "required": true
5159
5236
  }
5160
5237
  },
5161
- "description": "Get uptime data for a service",
5238
+ "description": "Switch to a different auth context",
5162
5239
  "examples": [
5163
- "<%= config.bin %> data services uptime aws-ec2",
5164
- "<%= config.bin %> data services uptime aws-ec2 --period 30d"
5240
+ "<%= config.bin %> auth context use staging"
5165
5241
  ],
5166
5242
  "flags": {
5167
5243
  "output": {
@@ -5198,26 +5274,11 @@
5198
5274
  "name": "verbose",
5199
5275
  "allowNo": false,
5200
5276
  "type": "boolean"
5201
- },
5202
- "period": {
5203
- "description": "Time period (7d, 30d, 90d)",
5204
- "name": "period",
5205
- "default": "30d",
5206
- "hasDynamicHelp": false,
5207
- "multiple": false,
5208
- "type": "option"
5209
- },
5210
- "granularity": {
5211
- "description": "Data granularity (hourly, daily)",
5212
- "name": "granularity",
5213
- "hasDynamicHelp": false,
5214
- "multiple": false,
5215
- "type": "option"
5216
5277
  }
5217
5278
  },
5218
5279
  "hasDynamicHelp": false,
5219
5280
  "hiddenAliases": [],
5220
- "id": "data:services:uptime",
5281
+ "id": "auth:context:use",
5221
5282
  "pluginAlias": "devhelm",
5222
5283
  "pluginName": "devhelm",
5223
5284
  "pluginType": "core",
@@ -5227,11 +5288,11 @@
5227
5288
  "relativePath": [
5228
5289
  "dist",
5229
5290
  "commands",
5230
- "data",
5231
- "services",
5232
- "uptime.js"
5291
+ "auth",
5292
+ "context",
5293
+ "use.js"
5233
5294
  ]
5234
5295
  }
5235
5296
  },
5236
- "version": "0.1.1"
5297
+ "version": "0.1.3"
5237
5298
  }