hereya-cli 0.100.5 → 0.100.6

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.
@@ -1042,6 +1042,64 @@
1042
1042
  "index.js"
1043
1043
  ]
1044
1044
  },
1045
+ "uninit": {
1046
+ "aliases": [],
1047
+ "args": {
1048
+ "project": {
1049
+ "description": "project name",
1050
+ "name": "project",
1051
+ "required": true
1052
+ }
1053
+ },
1054
+ "description": "Destroy template infrastructure and uninitialize a project.",
1055
+ "examples": [
1056
+ "<%= config.bin %> <%= command.id %> myProject -w dev",
1057
+ "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
1058
+ ],
1059
+ "flags": {
1060
+ "chdir": {
1061
+ "description": "directory to run command in",
1062
+ "name": "chdir",
1063
+ "required": false,
1064
+ "hasDynamicHelp": false,
1065
+ "multiple": false,
1066
+ "type": "option"
1067
+ },
1068
+ "parameter": {
1069
+ "char": "p",
1070
+ "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
1071
+ "name": "parameter",
1072
+ "default": [],
1073
+ "hasDynamicHelp": false,
1074
+ "multiple": true,
1075
+ "type": "option"
1076
+ },
1077
+ "workspace": {
1078
+ "char": "w",
1079
+ "description": "workspace used during init",
1080
+ "name": "workspace",
1081
+ "required": true,
1082
+ "hasDynamicHelp": false,
1083
+ "multiple": false,
1084
+ "type": "option"
1085
+ }
1086
+ },
1087
+ "hasDynamicHelp": false,
1088
+ "hiddenAliases": [],
1089
+ "id": "uninit",
1090
+ "pluginAlias": "hereya-cli",
1091
+ "pluginName": "hereya-cli",
1092
+ "pluginType": "core",
1093
+ "strict": true,
1094
+ "enableJsonFlag": false,
1095
+ "isESM": true,
1096
+ "relativePath": [
1097
+ "dist",
1098
+ "commands",
1099
+ "uninit",
1100
+ "index.js"
1101
+ ]
1102
+ },
1045
1103
  "undeploy": {
1046
1104
  "aliases": [],
1047
1105
  "args": {},
@@ -1192,64 +1250,6 @@
1192
1250
  "index.js"
1193
1251
  ]
1194
1252
  },
1195
- "uninit": {
1196
- "aliases": [],
1197
- "args": {
1198
- "project": {
1199
- "description": "project name",
1200
- "name": "project",
1201
- "required": true
1202
- }
1203
- },
1204
- "description": "Destroy template infrastructure and uninitialize a project.",
1205
- "examples": [
1206
- "<%= config.bin %> <%= command.id %> myProject -w dev",
1207
- "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
1208
- ],
1209
- "flags": {
1210
- "chdir": {
1211
- "description": "directory to run command in",
1212
- "name": "chdir",
1213
- "required": false,
1214
- "hasDynamicHelp": false,
1215
- "multiple": false,
1216
- "type": "option"
1217
- },
1218
- "parameter": {
1219
- "char": "p",
1220
- "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
1221
- "name": "parameter",
1222
- "default": [],
1223
- "hasDynamicHelp": false,
1224
- "multiple": true,
1225
- "type": "option"
1226
- },
1227
- "workspace": {
1228
- "char": "w",
1229
- "description": "workspace used during init",
1230
- "name": "workspace",
1231
- "required": true,
1232
- "hasDynamicHelp": false,
1233
- "multiple": false,
1234
- "type": "option"
1235
- }
1236
- },
1237
- "hasDynamicHelp": false,
1238
- "hiddenAliases": [],
1239
- "id": "uninit",
1240
- "pluginAlias": "hereya-cli",
1241
- "pluginName": "hereya-cli",
1242
- "pluginType": "core",
1243
- "strict": true,
1244
- "enableJsonFlag": false,
1245
- "isESM": true,
1246
- "relativePath": [
1247
- "dist",
1248
- "commands",
1249
- "uninit",
1250
- "index.js"
1251
- ]
1252
- },
1253
1253
  "app:deploy": {
1254
1254
  "aliases": [],
1255
1255
  "args": {
@@ -1701,46 +1701,19 @@
1701
1701
  "index.js"
1702
1702
  ]
1703
1703
  },
1704
- "docker:run": {
1704
+ "devenv:config": {
1705
1705
  "aliases": [],
1706
- "args": {
1707
- "image": {
1708
- "description": "Docker image to run",
1709
- "name": "image",
1710
- "required": true
1711
- }
1712
- },
1713
- "description": "Run a Docker container with hereya env vars injected as -e flags.",
1706
+ "args": {},
1707
+ "description": "Configure SSH for a dev environment and display connection details. On-demand devenvs use a ProxyCommand that wakes the instance on first connection.",
1714
1708
  "examples": [
1715
- "<%= config.bin %> <%= command.id %> myapp:latest",
1716
- "<%= config.bin %> <%= command.id %> -w staging myapp:latest",
1717
- "<%= config.bin %> <%= command.id %> -p 3000 myapp:latest",
1718
- "<%= config.bin %> <%= command.id %> myapp:latest -- --rm -v ./data:/data"
1709
+ "<%= config.bin %> <%= command.id %> -w my-workspace"
1719
1710
  ],
1720
1711
  "flags": {
1721
- "chdir": {
1722
- "description": "directory to run command in",
1723
- "name": "chdir",
1724
- "required": false,
1725
- "hasDynamicHelp": false,
1726
- "multiple": false,
1727
- "type": "option"
1728
- },
1729
- "port": {
1730
- "char": "p",
1731
- "description": "port to forward and set as PORT env var (default: 8080)",
1732
- "name": "port",
1733
- "required": false,
1734
- "default": 8080,
1735
- "hasDynamicHelp": false,
1736
- "multiple": false,
1737
- "type": "option"
1738
- },
1739
1712
  "workspace": {
1740
1713
  "char": "w",
1741
- "description": "name of the workspace to use",
1714
+ "description": "name of the workspace to configure SSH for",
1742
1715
  "name": "workspace",
1743
- "required": false,
1716
+ "required": true,
1744
1717
  "hasDynamicHelp": false,
1745
1718
  "multiple": false,
1746
1719
  "type": "option"
@@ -1748,57 +1721,73 @@
1748
1721
  },
1749
1722
  "hasDynamicHelp": false,
1750
1723
  "hiddenAliases": [],
1751
- "id": "docker:run",
1724
+ "id": "devenv:config",
1752
1725
  "pluginAlias": "hereya-cli",
1753
1726
  "pluginName": "hereya-cli",
1754
1727
  "pluginType": "core",
1755
- "strict": false,
1728
+ "strict": true,
1756
1729
  "enableJsonFlag": false,
1757
1730
  "isESM": true,
1758
1731
  "relativePath": [
1759
1732
  "dist",
1760
1733
  "commands",
1761
- "docker",
1762
- "run",
1734
+ "devenv",
1735
+ "config",
1763
1736
  "index.js"
1764
1737
  ]
1765
1738
  },
1766
- "env:set": {
1739
+ "devenv:install": {
1767
1740
  "aliases": [],
1768
- "args": {
1769
- "name": {
1770
- "description": "name of the environment variable to set",
1771
- "name": "name"
1772
- }
1773
- },
1774
- "description": "Set an user-defined environment variable for the project",
1741
+ "args": {},
1742
+ "description": "Provision a remote dev environment on a workspace.",
1775
1743
  "examples": [
1776
- "<%= config.bin %> <%= command.id %> FOO -v bar",
1777
- "<%= config.bin %> <%= command.id %> FOO -v bar -w dev"
1744
+ "<%= config.bin %> <%= command.id %> -w my-workspace -p instanceType=t3.large"
1778
1745
  ],
1779
1746
  "flags": {
1780
- "chdir": {
1781
- "description": "project root directory",
1782
- "name": "chdir",
1747
+ "debug": {
1748
+ "description": "enable debug mode",
1749
+ "name": "debug",
1750
+ "allowNo": false,
1751
+ "type": "boolean"
1752
+ },
1753
+ "on-behalf-of": {
1754
+ "description": "email of an org member to install the devenv for; the baked Hereya token will carry their identity (requires OWNER or ADMIN role)",
1755
+ "name": "on-behalf-of",
1783
1756
  "required": false,
1784
1757
  "hasDynamicHelp": false,
1785
1758
  "multiple": false,
1786
1759
  "type": "option"
1787
1760
  },
1788
- "value": {
1761
+ "parameter": {
1762
+ "char": "p",
1763
+ "description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
1764
+ "name": "parameter",
1765
+ "default": [],
1766
+ "hasDynamicHelp": false,
1767
+ "multiple": true,
1768
+ "type": "option"
1769
+ },
1770
+ "parameter-file": {
1771
+ "char": "f",
1772
+ "description": "path to a file containing parameters for the package",
1773
+ "name": "parameter-file",
1774
+ "hasDynamicHelp": false,
1775
+ "multiple": false,
1776
+ "type": "option"
1777
+ },
1778
+ "version": {
1789
1779
  "char": "v",
1790
- "description": "value of the environment variable",
1791
- "name": "value",
1792
- "required": true,
1780
+ "description": "version of the dev environment package",
1781
+ "name": "version",
1793
1782
  "hasDynamicHelp": false,
1794
1783
  "multiple": false,
1795
1784
  "type": "option"
1796
1785
  },
1797
1786
  "workspace": {
1798
1787
  "char": "w",
1799
- "description": "name of the workspace to print the env vars for",
1788
+ "description": "name of the workspace to provision the dev environment on",
1800
1789
  "name": "workspace",
1801
- "required": false,
1790
+ "required": true,
1802
1791
  "hasDynamicHelp": false,
1803
1792
  "multiple": false,
1804
1793
  "type": "option"
@@ -1806,7 +1795,7 @@
1806
1795
  },
1807
1796
  "hasDynamicHelp": false,
1808
1797
  "hiddenAliases": [],
1809
- "id": "env:set",
1798
+ "id": "devenv:install",
1810
1799
  "pluginAlias": "hereya-cli",
1811
1800
  "pluginName": "hereya-cli",
1812
1801
  "pluginType": "core",
@@ -1816,53 +1805,200 @@
1816
1805
  "relativePath": [
1817
1806
  "dist",
1818
1807
  "commands",
1819
- "env",
1820
- "set",
1808
+ "devenv",
1809
+ "install",
1821
1810
  "index.js"
1822
1811
  ]
1823
1812
  },
1824
- "flow:add": {
1813
+ "devenv:sleep": {
1825
1814
  "aliases": [],
1826
- "args": {
1827
- "package": {
1828
- "description": "\n The package to add, specified as a GitHub repository in the format owner/repository.\n To change the registry URL, set the HEREYA_REGISTRY_URL environment variable, so that it points to $HEREYA_REGISTRY_URL/owner/repository.\n For local packages, use the format local/path/to/package where path/to/package is the path to the package on your local machine.\n ",
1829
- "name": "package",
1830
- "required": true
1831
- }
1832
- },
1833
- "description": "Add a package to the project in a git branch-based workspace",
1815
+ "args": {},
1816
+ "description": "Stop the dev environment instance for a workspace (lifecycle=on-demand only).",
1834
1817
  "examples": [
1835
- "<%= config.bin %> <%= command.id %> cloudy/docker_postgres",
1836
- "<%= config.bin %> <%= command.id %> cloudy/docker_postgres --profile staging",
1837
- "<%= config.bin %> <%= command.id %> cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin"
1818
+ "<%= config.bin %> <%= command.id %> -w my-workspace"
1838
1819
  ],
1839
1820
  "flags": {
1840
- "chdir": {
1841
- "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
1842
- "name": "chdir",
1843
- "required": false,
1844
- "hasDynamicHelp": false,
1845
- "multiple": false,
1846
- "type": "option"
1847
- },
1848
1821
  "debug": {
1849
1822
  "description": "enable debug mode",
1850
1823
  "name": "debug",
1851
1824
  "allowNo": false,
1852
1825
  "type": "boolean"
1853
1826
  },
1854
- "parameter": {
1855
- "char": "p",
1856
- "description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
1857
- "name": "parameter",
1858
- "default": [],
1859
- "hasDynamicHelp": false,
1860
- "multiple": true,
1861
- "type": "option"
1862
- },
1863
- "profile": {
1864
- "description": "profile to use for the workspace (will be appended to workspace name)",
1865
- "name": "profile",
1827
+ "workspace": {
1828
+ "char": "w",
1829
+ "description": "name of the workspace whose dev environment should be stopped",
1830
+ "name": "workspace",
1831
+ "required": true,
1832
+ "hasDynamicHelp": false,
1833
+ "multiple": false,
1834
+ "type": "option"
1835
+ }
1836
+ },
1837
+ "hasDynamicHelp": false,
1838
+ "hiddenAliases": [],
1839
+ "id": "devenv:sleep",
1840
+ "pluginAlias": "hereya-cli",
1841
+ "pluginName": "hereya-cli",
1842
+ "pluginType": "core",
1843
+ "strict": true,
1844
+ "enableJsonFlag": false,
1845
+ "isESM": true,
1846
+ "relativePath": [
1847
+ "dist",
1848
+ "commands",
1849
+ "devenv",
1850
+ "sleep",
1851
+ "index.js"
1852
+ ]
1853
+ },
1854
+ "devenv:ssh": {
1855
+ "aliases": [],
1856
+ "args": {},
1857
+ "description": "SSH into a dev environment instance.",
1858
+ "examples": [
1859
+ "<%= config.bin %> <%= command.id %> -w my-workspace"
1860
+ ],
1861
+ "flags": {
1862
+ "workspace": {
1863
+ "char": "w",
1864
+ "description": "name of the workspace to SSH into",
1865
+ "name": "workspace",
1866
+ "required": true,
1867
+ "hasDynamicHelp": false,
1868
+ "multiple": false,
1869
+ "type": "option"
1870
+ }
1871
+ },
1872
+ "hasDynamicHelp": false,
1873
+ "hiddenAliases": [],
1874
+ "id": "devenv:ssh",
1875
+ "pluginAlias": "hereya-cli",
1876
+ "pluginName": "hereya-cli",
1877
+ "pluginType": "core",
1878
+ "strict": true,
1879
+ "enableJsonFlag": false,
1880
+ "isESM": true,
1881
+ "relativePath": [
1882
+ "dist",
1883
+ "commands",
1884
+ "devenv",
1885
+ "ssh",
1886
+ "index.js"
1887
+ ]
1888
+ },
1889
+ "devenv:ssh-proxy": {
1890
+ "aliases": [],
1891
+ "args": {},
1892
+ "description": "Internal: SSH ProxyCommand for on-demand devenvs (wake + connect).",
1893
+ "flags": {
1894
+ "workspace": {
1895
+ "char": "w",
1896
+ "description": "name of the workspace to proxy SSH for",
1897
+ "name": "workspace",
1898
+ "required": true,
1899
+ "hasDynamicHelp": false,
1900
+ "multiple": false,
1901
+ "type": "option"
1902
+ }
1903
+ },
1904
+ "hasDynamicHelp": false,
1905
+ "hidden": true,
1906
+ "hiddenAliases": [],
1907
+ "id": "devenv:ssh-proxy",
1908
+ "pluginAlias": "hereya-cli",
1909
+ "pluginName": "hereya-cli",
1910
+ "pluginType": "core",
1911
+ "strict": true,
1912
+ "enableJsonFlag": false,
1913
+ "isESM": true,
1914
+ "relativePath": [
1915
+ "dist",
1916
+ "commands",
1917
+ "devenv",
1918
+ "ssh-proxy",
1919
+ "index.js"
1920
+ ]
1921
+ },
1922
+ "devenv:uninstall": {
1923
+ "aliases": [],
1924
+ "args": {},
1925
+ "description": "Destroy and remove the dev environment from a workspace.",
1926
+ "examples": [
1927
+ "<%= config.bin %> <%= command.id %> -w my-workspace"
1928
+ ],
1929
+ "flags": {
1930
+ "debug": {
1931
+ "description": "enable debug mode",
1932
+ "name": "debug",
1933
+ "allowNo": false,
1934
+ "type": "boolean"
1935
+ },
1936
+ "workspace": {
1937
+ "char": "w",
1938
+ "description": "name of the workspace to remove the dev environment from",
1939
+ "name": "workspace",
1940
+ "required": true,
1941
+ "hasDynamicHelp": false,
1942
+ "multiple": false,
1943
+ "type": "option"
1944
+ }
1945
+ },
1946
+ "hasDynamicHelp": false,
1947
+ "hiddenAliases": [],
1948
+ "id": "devenv:uninstall",
1949
+ "pluginAlias": "hereya-cli",
1950
+ "pluginName": "hereya-cli",
1951
+ "pluginType": "core",
1952
+ "strict": true,
1953
+ "enableJsonFlag": false,
1954
+ "isESM": true,
1955
+ "relativePath": [
1956
+ "dist",
1957
+ "commands",
1958
+ "devenv",
1959
+ "uninstall",
1960
+ "index.js"
1961
+ ]
1962
+ },
1963
+ "docker:run": {
1964
+ "aliases": [],
1965
+ "args": {
1966
+ "image": {
1967
+ "description": "Docker image to run",
1968
+ "name": "image",
1969
+ "required": true
1970
+ }
1971
+ },
1972
+ "description": "Run a Docker container with hereya env vars injected as -e flags.",
1973
+ "examples": [
1974
+ "<%= config.bin %> <%= command.id %> myapp:latest",
1975
+ "<%= config.bin %> <%= command.id %> -w staging myapp:latest",
1976
+ "<%= config.bin %> <%= command.id %> -p 3000 myapp:latest",
1977
+ "<%= config.bin %> <%= command.id %> myapp:latest -- --rm -v ./data:/data"
1978
+ ],
1979
+ "flags": {
1980
+ "chdir": {
1981
+ "description": "directory to run command in",
1982
+ "name": "chdir",
1983
+ "required": false,
1984
+ "hasDynamicHelp": false,
1985
+ "multiple": false,
1986
+ "type": "option"
1987
+ },
1988
+ "port": {
1989
+ "char": "p",
1990
+ "description": "port to forward and set as PORT env var (default: 8080)",
1991
+ "name": "port",
1992
+ "required": false,
1993
+ "default": 8080,
1994
+ "hasDynamicHelp": false,
1995
+ "multiple": false,
1996
+ "type": "option"
1997
+ },
1998
+ "workspace": {
1999
+ "char": "w",
2000
+ "description": "name of the workspace to use",
2001
+ "name": "workspace",
1866
2002
  "required": false,
1867
2003
  "hasDynamicHelp": false,
1868
2004
  "multiple": false,
@@ -1871,7 +2007,65 @@
1871
2007
  },
1872
2008
  "hasDynamicHelp": false,
1873
2009
  "hiddenAliases": [],
1874
- "id": "flow:add",
2010
+ "id": "docker:run",
2011
+ "pluginAlias": "hereya-cli",
2012
+ "pluginName": "hereya-cli",
2013
+ "pluginType": "core",
2014
+ "strict": false,
2015
+ "enableJsonFlag": false,
2016
+ "isESM": true,
2017
+ "relativePath": [
2018
+ "dist",
2019
+ "commands",
2020
+ "docker",
2021
+ "run",
2022
+ "index.js"
2023
+ ]
2024
+ },
2025
+ "env:set": {
2026
+ "aliases": [],
2027
+ "args": {
2028
+ "name": {
2029
+ "description": "name of the environment variable to set",
2030
+ "name": "name"
2031
+ }
2032
+ },
2033
+ "description": "Set an user-defined environment variable for the project",
2034
+ "examples": [
2035
+ "<%= config.bin %> <%= command.id %> FOO -v bar",
2036
+ "<%= config.bin %> <%= command.id %> FOO -v bar -w dev"
2037
+ ],
2038
+ "flags": {
2039
+ "chdir": {
2040
+ "description": "project root directory",
2041
+ "name": "chdir",
2042
+ "required": false,
2043
+ "hasDynamicHelp": false,
2044
+ "multiple": false,
2045
+ "type": "option"
2046
+ },
2047
+ "value": {
2048
+ "char": "v",
2049
+ "description": "value of the environment variable",
2050
+ "name": "value",
2051
+ "required": true,
2052
+ "hasDynamicHelp": false,
2053
+ "multiple": false,
2054
+ "type": "option"
2055
+ },
2056
+ "workspace": {
2057
+ "char": "w",
2058
+ "description": "name of the workspace to print the env vars for",
2059
+ "name": "workspace",
2060
+ "required": false,
2061
+ "hasDynamicHelp": false,
2062
+ "multiple": false,
2063
+ "type": "option"
2064
+ }
2065
+ },
2066
+ "hasDynamicHelp": false,
2067
+ "hiddenAliases": [],
2068
+ "id": "env:set",
1875
2069
  "pluginAlias": "hereya-cli",
1876
2070
  "pluginName": "hereya-cli",
1877
2071
  "pluginType": "core",
@@ -1881,8 +2075,8 @@
1881
2075
  "relativePath": [
1882
2076
  "dist",
1883
2077
  "commands",
1884
- "flow",
1885
- "add",
2078
+ "env",
2079
+ "set",
1886
2080
  "index.js"
1887
2081
  ]
1888
2082
  },
@@ -1914,14 +2108,79 @@
1914
2108
  "description": "seconds idle before exit; omit to keep running indefinitely",
1915
2109
  "name": "idleTimeout",
1916
2110
  "hasDynamicHelp": false,
1917
- "multiple": false,
2111
+ "multiple": false,
2112
+ "type": "option"
2113
+ },
2114
+ "workspace": {
2115
+ "char": "w",
2116
+ "description": "name of the workspace to poll jobs for",
2117
+ "name": "workspace",
2118
+ "required": true,
2119
+ "hasDynamicHelp": false,
2120
+ "multiple": false,
2121
+ "type": "option"
2122
+ }
2123
+ },
2124
+ "hasDynamicHelp": false,
2125
+ "hiddenAliases": [],
2126
+ "id": "executor:start",
2127
+ "pluginAlias": "hereya-cli",
2128
+ "pluginName": "hereya-cli",
2129
+ "pluginType": "core",
2130
+ "strict": true,
2131
+ "enableJsonFlag": false,
2132
+ "isESM": true,
2133
+ "relativePath": [
2134
+ "dist",
2135
+ "commands",
2136
+ "executor",
2137
+ "start",
2138
+ "index.js"
2139
+ ]
2140
+ },
2141
+ "flow:add": {
2142
+ "aliases": [],
2143
+ "args": {
2144
+ "package": {
2145
+ "description": "\n The package to add, specified as a GitHub repository in the format owner/repository.\n To change the registry URL, set the HEREYA_REGISTRY_URL environment variable, so that it points to $HEREYA_REGISTRY_URL/owner/repository.\n For local packages, use the format local/path/to/package where path/to/package is the path to the package on your local machine.\n ",
2146
+ "name": "package",
2147
+ "required": true
2148
+ }
2149
+ },
2150
+ "description": "Add a package to the project in a git branch-based workspace",
2151
+ "examples": [
2152
+ "<%= config.bin %> <%= command.id %> cloudy/docker_postgres",
2153
+ "<%= config.bin %> <%= command.id %> cloudy/docker_postgres --profile staging",
2154
+ "<%= config.bin %> <%= command.id %> cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin"
2155
+ ],
2156
+ "flags": {
2157
+ "chdir": {
2158
+ "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
2159
+ "name": "chdir",
2160
+ "required": false,
2161
+ "hasDynamicHelp": false,
2162
+ "multiple": false,
2163
+ "type": "option"
2164
+ },
2165
+ "debug": {
2166
+ "description": "enable debug mode",
2167
+ "name": "debug",
2168
+ "allowNo": false,
2169
+ "type": "boolean"
2170
+ },
2171
+ "parameter": {
2172
+ "char": "p",
2173
+ "description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
2174
+ "name": "parameter",
2175
+ "default": [],
2176
+ "hasDynamicHelp": false,
2177
+ "multiple": true,
1918
2178
  "type": "option"
1919
2179
  },
1920
- "workspace": {
1921
- "char": "w",
1922
- "description": "name of the workspace to poll jobs for",
1923
- "name": "workspace",
1924
- "required": true,
2180
+ "profile": {
2181
+ "description": "profile to use for the workspace (will be appended to workspace name)",
2182
+ "name": "profile",
2183
+ "required": false,
1925
2184
  "hasDynamicHelp": false,
1926
2185
  "multiple": false,
1927
2186
  "type": "option"
@@ -1929,7 +2188,7 @@
1929
2188
  },
1930
2189
  "hasDynamicHelp": false,
1931
2190
  "hiddenAliases": [],
1932
- "id": "executor:start",
2191
+ "id": "flow:add",
1933
2192
  "pluginAlias": "hereya-cli",
1934
2193
  "pluginName": "hereya-cli",
1935
2194
  "pluginType": "core",
@@ -1939,8 +2198,8 @@
1939
2198
  "relativePath": [
1940
2199
  "dist",
1941
2200
  "commands",
1942
- "executor",
1943
- "start",
2201
+ "flow",
2202
+ "add",
1944
2203
  "index.js"
1945
2204
  ]
1946
2205
  },
@@ -2385,6 +2644,37 @@
2385
2644
  "index.js"
2386
2645
  ]
2387
2646
  },
2647
+ "workspace:delete": {
2648
+ "aliases": [],
2649
+ "args": {
2650
+ "name": {
2651
+ "description": "name of the workspace to delete",
2652
+ "name": "name",
2653
+ "required": true
2654
+ }
2655
+ },
2656
+ "description": "Delete a workspace if it exists.",
2657
+ "examples": [
2658
+ "<%= config.bin %> <%= command.id %> dev"
2659
+ ],
2660
+ "flags": {},
2661
+ "hasDynamicHelp": false,
2662
+ "hiddenAliases": [],
2663
+ "id": "workspace:delete",
2664
+ "pluginAlias": "hereya-cli",
2665
+ "pluginName": "hereya-cli",
2666
+ "pluginType": "core",
2667
+ "strict": true,
2668
+ "enableJsonFlag": false,
2669
+ "isESM": true,
2670
+ "relativePath": [
2671
+ "dist",
2672
+ "commands",
2673
+ "workspace",
2674
+ "delete",
2675
+ "index.js"
2676
+ ]
2677
+ },
2388
2678
  "workspace:env": {
2389
2679
  "aliases": [],
2390
2680
  "args": {
@@ -2435,37 +2725,6 @@
2435
2725
  "index.js"
2436
2726
  ]
2437
2727
  },
2438
- "workspace:delete": {
2439
- "aliases": [],
2440
- "args": {
2441
- "name": {
2442
- "description": "name of the workspace to delete",
2443
- "name": "name",
2444
- "required": true
2445
- }
2446
- },
2447
- "description": "Delete a workspace if it exists.",
2448
- "examples": [
2449
- "<%= config.bin %> <%= command.id %> dev"
2450
- ],
2451
- "flags": {},
2452
- "hasDynamicHelp": false,
2453
- "hiddenAliases": [],
2454
- "id": "workspace:delete",
2455
- "pluginAlias": "hereya-cli",
2456
- "pluginName": "hereya-cli",
2457
- "pluginType": "core",
2458
- "strict": true,
2459
- "enableJsonFlag": false,
2460
- "isESM": true,
2461
- "relativePath": [
2462
- "dist",
2463
- "commands",
2464
- "workspace",
2465
- "delete",
2466
- "index.js"
2467
- ]
2468
- },
2469
2728
  "workspace:install": {
2470
2729
  "aliases": [],
2471
2730
  "args": {
@@ -2680,199 +2939,60 @@
2680
2939
  "index.js"
2681
2940
  ]
2682
2941
  },
2683
- "devenv:config": {
2942
+ "devenv:project:init": {
2684
2943
  "aliases": [],
2685
- "args": {},
2686
- "description": "Configure SSH for a dev environment and display connection details. On-demand devenvs use a ProxyCommand that wakes the instance on first connection.",
2687
- "examples": [
2688
- "<%= config.bin %> <%= command.id %> -w my-workspace"
2689
- ],
2690
- "flags": {
2691
- "workspace": {
2692
- "char": "w",
2693
- "description": "name of the workspace to configure SSH for",
2694
- "name": "workspace",
2695
- "required": true,
2696
- "hasDynamicHelp": false,
2697
- "multiple": false,
2698
- "type": "option"
2944
+ "args": {
2945
+ "project": {
2946
+ "description": "project name",
2947
+ "name": "project",
2948
+ "required": true
2699
2949
  }
2700
2950
  },
2701
- "hasDynamicHelp": false,
2702
- "hiddenAliases": [],
2703
- "id": "devenv:config",
2704
- "pluginAlias": "hereya-cli",
2705
- "pluginName": "hereya-cli",
2706
- "pluginType": "core",
2707
- "strict": true,
2708
- "enableJsonFlag": false,
2709
- "isESM": true,
2710
- "relativePath": [
2711
- "dist",
2712
- "commands",
2713
- "devenv",
2714
- "config",
2715
- "index.js"
2716
- ]
2717
- },
2718
- "devenv:install": {
2719
- "aliases": [],
2720
- "args": {},
2721
- "description": "Provision a remote dev environment on a workspace.",
2951
+ "description": "Initialize a project on a remote dev environment.",
2722
2952
  "examples": [
2723
- "<%= config.bin %> <%= command.id %> -w my-workspace -p instanceType=t3.large"
2953
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
2954
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter",
2955
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
2724
2956
  ],
2725
2957
  "flags": {
2726
- "debug": {
2727
- "description": "enable debug mode",
2728
- "name": "debug",
2729
- "allowNo": false,
2730
- "type": "boolean"
2731
- },
2732
- "on-behalf-of": {
2733
- "description": "email of an org member to install the devenv for; the baked Hereya token will carry their identity (requires OWNER or ADMIN role)",
2734
- "name": "on-behalf-of",
2958
+ "deploy-workspace": {
2959
+ "char": "d",
2960
+ "description": "workspace used for deployment (required when using a template)",
2961
+ "name": "deploy-workspace",
2735
2962
  "required": false,
2736
2963
  "hasDynamicHelp": false,
2737
2964
  "multiple": false,
2738
2965
  "type": "option"
2739
2966
  },
2740
- "parameter": {
2741
- "char": "p",
2742
- "description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
2743
- "name": "parameter",
2744
- "default": [],
2745
- "hasDynamicHelp": false,
2746
- "multiple": true,
2747
- "type": "option"
2748
- },
2749
- "parameter-file": {
2750
- "char": "f",
2751
- "description": "path to a file containing parameters for the package",
2752
- "name": "parameter-file",
2753
- "hasDynamicHelp": false,
2754
- "multiple": false,
2755
- "type": "option"
2756
- },
2757
- "version": {
2758
- "char": "v",
2759
- "description": "version of the dev environment package",
2760
- "name": "version",
2761
- "hasDynamicHelp": false,
2762
- "multiple": false,
2763
- "type": "option"
2764
- },
2765
- "workspace": {
2766
- "char": "w",
2767
- "description": "name of the workspace to provision the dev environment on",
2768
- "name": "workspace",
2769
- "required": true,
2770
- "hasDynamicHelp": false,
2771
- "multiple": false,
2772
- "type": "option"
2773
- }
2774
- },
2775
- "hasDynamicHelp": false,
2776
- "hiddenAliases": [],
2777
- "id": "devenv:install",
2778
- "pluginAlias": "hereya-cli",
2779
- "pluginName": "hereya-cli",
2780
- "pluginType": "core",
2781
- "strict": true,
2782
- "enableJsonFlag": false,
2783
- "isESM": true,
2784
- "relativePath": [
2785
- "dist",
2786
- "commands",
2787
- "devenv",
2788
- "install",
2789
- "index.js"
2790
- ]
2791
- },
2792
- "devenv:sleep": {
2793
- "aliases": [],
2794
- "args": {},
2795
- "description": "Stop the dev environment instance for a workspace (lifecycle=on-demand only).",
2796
- "examples": [
2797
- "<%= config.bin %> <%= command.id %> -w my-workspace"
2798
- ],
2799
- "flags": {
2800
- "debug": {
2801
- "description": "enable debug mode",
2802
- "name": "debug",
2803
- "allowNo": false,
2804
- "type": "boolean"
2805
- },
2806
- "workspace": {
2807
- "char": "w",
2808
- "description": "name of the workspace whose dev environment should be stopped",
2809
- "name": "workspace",
2810
- "required": true,
2811
- "hasDynamicHelp": false,
2812
- "multiple": false,
2813
- "type": "option"
2814
- }
2815
- },
2816
- "hasDynamicHelp": false,
2817
- "hiddenAliases": [],
2818
- "id": "devenv:sleep",
2819
- "pluginAlias": "hereya-cli",
2820
- "pluginName": "hereya-cli",
2821
- "pluginType": "core",
2822
- "strict": true,
2823
- "enableJsonFlag": false,
2824
- "isESM": true,
2825
- "relativePath": [
2826
- "dist",
2827
- "commands",
2828
- "devenv",
2829
- "sleep",
2830
- "index.js"
2831
- ]
2832
- },
2833
- "devenv:ssh": {
2834
- "aliases": [],
2835
- "args": {},
2836
- "description": "SSH into a dev environment instance.",
2837
- "examples": [
2838
- "<%= config.bin %> <%= command.id %> -w my-workspace"
2839
- ],
2840
- "flags": {
2841
- "workspace": {
2842
- "char": "w",
2843
- "description": "name of the workspace to SSH into",
2844
- "name": "workspace",
2845
- "required": true,
2967
+ "force": {
2968
+ "char": "f",
2969
+ "description": "continue even if folder already exists",
2970
+ "name": "force",
2971
+ "allowNo": false,
2972
+ "type": "boolean"
2973
+ },
2974
+ "parameter": {
2975
+ "char": "p",
2976
+ "description": "parameter for the template, in the form of 'key=value'. Can be specified multiple times.",
2977
+ "name": "parameter",
2978
+ "required": false,
2979
+ "default": [],
2980
+ "hasDynamicHelp": false,
2981
+ "multiple": true,
2982
+ "type": "option"
2983
+ },
2984
+ "template": {
2985
+ "char": "t",
2986
+ "description": "template package to scaffold the project from",
2987
+ "name": "template",
2988
+ "required": false,
2846
2989
  "hasDynamicHelp": false,
2847
2990
  "multiple": false,
2848
2991
  "type": "option"
2849
- }
2850
- },
2851
- "hasDynamicHelp": false,
2852
- "hiddenAliases": [],
2853
- "id": "devenv:ssh",
2854
- "pluginAlias": "hereya-cli",
2855
- "pluginName": "hereya-cli",
2856
- "pluginType": "core",
2857
- "strict": true,
2858
- "enableJsonFlag": false,
2859
- "isESM": true,
2860
- "relativePath": [
2861
- "dist",
2862
- "commands",
2863
- "devenv",
2864
- "ssh",
2865
- "index.js"
2866
- ]
2867
- },
2868
- "devenv:ssh-proxy": {
2869
- "aliases": [],
2870
- "args": {},
2871
- "description": "Internal: SSH ProxyCommand for on-demand devenvs (wake + connect).",
2872
- "flags": {
2992
+ },
2873
2993
  "workspace": {
2874
2994
  "char": "w",
2875
- "description": "name of the workspace to proxy SSH for",
2995
+ "description": "name of the workspace",
2876
2996
  "name": "workspace",
2877
2997
  "required": true,
2878
2998
  "hasDynamicHelp": false,
@@ -2881,9 +3001,8 @@
2881
3001
  }
2882
3002
  },
2883
3003
  "hasDynamicHelp": false,
2884
- "hidden": true,
2885
3004
  "hiddenAliases": [],
2886
- "id": "devenv:ssh-proxy",
3005
+ "id": "devenv:project:init",
2887
3006
  "pluginAlias": "hereya-cli",
2888
3007
  "pluginName": "hereya-cli",
2889
3008
  "pluginType": "core",
@@ -2894,27 +3013,36 @@
2894
3013
  "dist",
2895
3014
  "commands",
2896
3015
  "devenv",
2897
- "ssh-proxy",
3016
+ "project",
3017
+ "init",
2898
3018
  "index.js"
2899
3019
  ]
2900
3020
  },
2901
- "devenv:uninstall": {
3021
+ "devenv:project:uninit": {
2902
3022
  "aliases": [],
2903
- "args": {},
2904
- "description": "Destroy and remove the dev environment from a workspace.",
3023
+ "args": {
3024
+ "project": {
3025
+ "description": "project name",
3026
+ "name": "project",
3027
+ "required": true
3028
+ }
3029
+ },
3030
+ "description": "Uninitialize a project on a remote dev environment.",
2905
3031
  "examples": [
2906
- "<%= config.bin %> <%= command.id %> -w my-workspace"
3032
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
3033
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace --force"
2907
3034
  ],
2908
3035
  "flags": {
2909
- "debug": {
2910
- "description": "enable debug mode",
2911
- "name": "debug",
3036
+ "force": {
3037
+ "char": "f",
3038
+ "description": "also remove the project directory after uninit",
3039
+ "name": "force",
2912
3040
  "allowNo": false,
2913
3041
  "type": "boolean"
2914
3042
  },
2915
3043
  "workspace": {
2916
3044
  "char": "w",
2917
- "description": "name of the workspace to remove the dev environment from",
3045
+ "description": "name of the workspace",
2918
3046
  "name": "workspace",
2919
3047
  "required": true,
2920
3048
  "hasDynamicHelp": false,
@@ -2924,7 +3052,7 @@
2924
3052
  },
2925
3053
  "hasDynamicHelp": false,
2926
3054
  "hiddenAliases": [],
2927
- "id": "devenv:uninstall",
3055
+ "id": "devenv:project:uninit",
2928
3056
  "pluginAlias": "hereya-cli",
2929
3057
  "pluginName": "hereya-cli",
2930
3058
  "pluginType": "core",
@@ -2935,7 +3063,8 @@
2935
3063
  "dist",
2936
3064
  "commands",
2937
3065
  "devenv",
2938
- "uninstall",
3066
+ "project",
3067
+ "uninit",
2939
3068
  "index.js"
2940
3069
  ]
2941
3070
  },
@@ -3122,39 +3251,6 @@
3122
3251
  "index.js"
3123
3252
  ]
3124
3253
  },
3125
- "workspace:executor:token": {
3126
- "aliases": [],
3127
- "args": {},
3128
- "description": "Generate a workspace-scoped executor token for the remote executor",
3129
- "flags": {
3130
- "workspace": {
3131
- "char": "w",
3132
- "description": "name of the workspace",
3133
- "name": "workspace",
3134
- "required": true,
3135
- "hasDynamicHelp": false,
3136
- "multiple": false,
3137
- "type": "option"
3138
- }
3139
- },
3140
- "hasDynamicHelp": false,
3141
- "hiddenAliases": [],
3142
- "id": "workspace:executor:token",
3143
- "pluginAlias": "hereya-cli",
3144
- "pluginName": "hereya-cli",
3145
- "pluginType": "core",
3146
- "strict": true,
3147
- "enableJsonFlag": false,
3148
- "isESM": true,
3149
- "relativePath": [
3150
- "dist",
3151
- "commands",
3152
- "workspace",
3153
- "executor",
3154
- "token",
3155
- "index.js"
3156
- ]
3157
- },
3158
3254
  "workspace:executor:install": {
3159
3255
  "aliases": [],
3160
3256
  "args": {},
@@ -3228,29 +3324,11 @@
3228
3324
  "index.js"
3229
3325
  ]
3230
3326
  },
3231
- "workspace:executor:uninstall": {
3327
+ "workspace:executor:token": {
3232
3328
  "aliases": [],
3233
3329
  "args": {},
3234
- "description": "Uninstall the remote executor from a workspace.\n\nBoth modes (always-on and ephemeral) are backed by the same package\n(hereya/remote-executor-aws). The --mode flag is informational only and\ncontrols log output.",
3330
+ "description": "Generate a workspace-scoped executor token for the remote executor",
3235
3331
  "flags": {
3236
- "debug": {
3237
- "description": "enable debug mode",
3238
- "name": "debug",
3239
- "allowNo": false,
3240
- "type": "boolean"
3241
- },
3242
- "mode": {
3243
- "description": "executor mode used at install time (informational only)",
3244
- "name": "mode",
3245
- "default": "always-on",
3246
- "hasDynamicHelp": false,
3247
- "multiple": false,
3248
- "options": [
3249
- "ephemeral",
3250
- "always-on"
3251
- ],
3252
- "type": "option"
3253
- },
3254
3332
  "workspace": {
3255
3333
  "char": "w",
3256
3334
  "description": "name of the workspace",
@@ -3263,7 +3341,7 @@
3263
3341
  },
3264
3342
  "hasDynamicHelp": false,
3265
3343
  "hiddenAliases": [],
3266
- "id": "workspace:executor:uninstall",
3344
+ "id": "workspace:executor:token",
3267
3345
  "pluginAlias": "hereya-cli",
3268
3346
  "pluginName": "hereya-cli",
3269
3347
  "pluginType": "core",
@@ -3275,110 +3353,32 @@
3275
3353
  "commands",
3276
3354
  "workspace",
3277
3355
  "executor",
3278
- "uninstall",
3356
+ "token",
3279
3357
  "index.js"
3280
3358
  ]
3281
3359
  },
3282
- "devenv:project:init": {
3360
+ "workspace:executor:uninstall": {
3283
3361
  "aliases": [],
3284
- "args": {
3285
- "project": {
3286
- "description": "project name",
3287
- "name": "project",
3288
- "required": true
3289
- }
3290
- },
3291
- "description": "Initialize a project on a remote dev environment.",
3292
- "examples": [
3293
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
3294
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter",
3295
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
3296
- ],
3362
+ "args": {},
3363
+ "description": "Uninstall the remote executor from a workspace.\n\nBoth modes (always-on and ephemeral) are backed by the same package\n(hereya/remote-executor-aws). The --mode flag is informational only and\ncontrols log output.",
3297
3364
  "flags": {
3298
- "deploy-workspace": {
3299
- "char": "d",
3300
- "description": "workspace used for deployment (required when using a template)",
3301
- "name": "deploy-workspace",
3302
- "required": false,
3303
- "hasDynamicHelp": false,
3304
- "multiple": false,
3305
- "type": "option"
3306
- },
3307
- "force": {
3308
- "char": "f",
3309
- "description": "continue even if folder already exists",
3310
- "name": "force",
3365
+ "debug": {
3366
+ "description": "enable debug mode",
3367
+ "name": "debug",
3311
3368
  "allowNo": false,
3312
3369
  "type": "boolean"
3313
3370
  },
3314
- "parameter": {
3315
- "char": "p",
3316
- "description": "parameter for the template, in the form of 'key=value'. Can be specified multiple times.",
3317
- "name": "parameter",
3318
- "required": false,
3319
- "default": [],
3320
- "hasDynamicHelp": false,
3321
- "multiple": true,
3322
- "type": "option"
3323
- },
3324
- "template": {
3325
- "char": "t",
3326
- "description": "template package to scaffold the project from",
3327
- "name": "template",
3328
- "required": false,
3329
- "hasDynamicHelp": false,
3330
- "multiple": false,
3331
- "type": "option"
3332
- },
3333
- "workspace": {
3334
- "char": "w",
3335
- "description": "name of the workspace",
3336
- "name": "workspace",
3337
- "required": true,
3371
+ "mode": {
3372
+ "description": "executor mode used at install time (informational only)",
3373
+ "name": "mode",
3374
+ "default": "always-on",
3338
3375
  "hasDynamicHelp": false,
3339
3376
  "multiple": false,
3377
+ "options": [
3378
+ "ephemeral",
3379
+ "always-on"
3380
+ ],
3340
3381
  "type": "option"
3341
- }
3342
- },
3343
- "hasDynamicHelp": false,
3344
- "hiddenAliases": [],
3345
- "id": "devenv:project:init",
3346
- "pluginAlias": "hereya-cli",
3347
- "pluginName": "hereya-cli",
3348
- "pluginType": "core",
3349
- "strict": true,
3350
- "enableJsonFlag": false,
3351
- "isESM": true,
3352
- "relativePath": [
3353
- "dist",
3354
- "commands",
3355
- "devenv",
3356
- "project",
3357
- "init",
3358
- "index.js"
3359
- ]
3360
- },
3361
- "devenv:project:uninit": {
3362
- "aliases": [],
3363
- "args": {
3364
- "project": {
3365
- "description": "project name",
3366
- "name": "project",
3367
- "required": true
3368
- }
3369
- },
3370
- "description": "Uninitialize a project on a remote dev environment.",
3371
- "examples": [
3372
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
3373
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace --force"
3374
- ],
3375
- "flags": {
3376
- "force": {
3377
- "char": "f",
3378
- "description": "also remove the project directory after uninit",
3379
- "name": "force",
3380
- "allowNo": false,
3381
- "type": "boolean"
3382
3382
  },
3383
3383
  "workspace": {
3384
3384
  "char": "w",
@@ -3392,7 +3392,7 @@
3392
3392
  },
3393
3393
  "hasDynamicHelp": false,
3394
3394
  "hiddenAliases": [],
3395
- "id": "devenv:project:uninit",
3395
+ "id": "workspace:executor:uninstall",
3396
3396
  "pluginAlias": "hereya-cli",
3397
3397
  "pluginName": "hereya-cli",
3398
3398
  "pluginType": "core",
@@ -3402,12 +3402,12 @@
3402
3402
  "relativePath": [
3403
3403
  "dist",
3404
3404
  "commands",
3405
- "devenv",
3406
- "project",
3407
- "uninit",
3405
+ "workspace",
3406
+ "executor",
3407
+ "uninstall",
3408
3408
  "index.js"
3409
3409
  ]
3410
3410
  }
3411
3411
  },
3412
- "version": "0.100.5"
3412
+ "version": "0.100.6"
3413
3413
  }