hereya-cli 0.69.3 → 0.71.0

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.
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g hereya-cli
21
21
  $ hereya COMMAND
22
22
  running command...
23
23
  $ hereya (--version)
24
- hereya-cli/0.69.3 linux-x64 node-v24.14.0
24
+ hereya-cli/0.71.0 linux-x64 node-v24.14.0
25
25
  $ hereya --help [COMMAND]
26
26
  USAGE
27
27
  $ hereya COMMAND
@@ -38,6 +38,11 @@ USAGE
38
38
  * [`hereya config use-backend TYPE`](#hereya-config-use-backend-type)
39
39
  * [`hereya delete-state`](#hereya-delete-state)
40
40
  * [`hereya deploy`](#hereya-deploy)
41
+ * [`hereya devenv config`](#hereya-devenv-config)
42
+ * [`hereya devenv install`](#hereya-devenv-install)
43
+ * [`hereya devenv project init PROJECT`](#hereya-devenv-project-init-project)
44
+ * [`hereya devenv ssh`](#hereya-devenv-ssh)
45
+ * [`hereya devenv uninstall`](#hereya-devenv-uninstall)
41
46
  * [`hereya doc PACKAGE`](#hereya-doc-package)
42
47
  * [`hereya docker run IMAGE`](#hereya-docker-run-image)
43
48
  * [`hereya down`](#hereya-down)
@@ -110,7 +115,7 @@ EXAMPLES
110
115
  $ hereya add cloudy/docker_postgres
111
116
  ```
112
117
 
113
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/add/index.ts)_
118
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/add/index.ts)_
114
119
 
115
120
  ## `hereya bootstrap INFRASTRUCTURETYPE`
116
121
 
@@ -135,7 +140,7 @@ EXAMPLES
135
140
  $ hereya bootstrap local
136
141
  ```
137
142
 
138
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/bootstrap/index.ts)_
143
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/bootstrap/index.ts)_
139
144
 
140
145
  ## `hereya config export-backend [FILE]`
141
146
 
@@ -157,7 +162,7 @@ EXAMPLES
157
162
  $ hereya config export-backend ./path/to/export.json
158
163
  ```
159
164
 
160
- _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/config/export-backend/index.ts)_
165
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/config/export-backend/index.ts)_
161
166
 
162
167
  ## `hereya config get-backend`
163
168
 
@@ -174,7 +179,7 @@ EXAMPLES
174
179
  $ hereya config get-backend
175
180
  ```
176
181
 
177
- _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/config/get-backend/index.ts)_
182
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/config/get-backend/index.ts)_
178
183
 
179
184
  ## `hereya config import-backend FILE`
180
185
 
@@ -194,7 +199,7 @@ EXAMPLES
194
199
  $ hereya config import-backend ./path/to/cloud-backend.json
195
200
  ```
196
201
 
197
- _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/config/import-backend/index.ts)_
202
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/config/import-backend/index.ts)_
198
203
 
199
204
  ## `hereya config use-backend TYPE`
200
205
 
@@ -216,7 +221,7 @@ EXAMPLES
216
221
  $ hereya config use-backend local
217
222
  ```
218
223
 
219
- _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/config/use-backend/index.ts)_
224
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/config/use-backend/index.ts)_
220
225
 
221
226
  ## `hereya delete-state`
222
227
 
@@ -242,7 +247,7 @@ EXAMPLES
242
247
  $ hereya delete-state --workspace staging
243
248
  ```
244
249
 
245
- _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/delete-state/index.ts)_
250
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/delete-state/index.ts)_
246
251
 
247
252
  ## `hereya deploy`
248
253
 
@@ -267,7 +272,117 @@ EXAMPLES
267
272
  $ hereya deploy
268
273
  ```
269
274
 
270
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/deploy/index.ts)_
275
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/deploy/index.ts)_
276
+
277
+ ## `hereya devenv config`
278
+
279
+ Configure SSH for a dev environment and display connection details.
280
+
281
+ ```
282
+ USAGE
283
+ $ hereya devenv config -w <value>
284
+
285
+ FLAGS
286
+ -w, --workspace=<value> (required) name of the workspace to configure SSH for
287
+
288
+ DESCRIPTION
289
+ Configure SSH for a dev environment and display connection details.
290
+
291
+ EXAMPLES
292
+ $ hereya devenv config -w my-workspace
293
+ ```
294
+
295
+ _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/devenv/config/index.ts)_
296
+
297
+ ## `hereya devenv install`
298
+
299
+ Provision a remote dev environment on a workspace.
300
+
301
+ ```
302
+ USAGE
303
+ $ hereya devenv install -w <value> [--debug] [-p <value>...] [-f <value>] [-v <value>]
304
+
305
+ FLAGS
306
+ -f, --parameter-file=<value> path to a file containing parameters for the package
307
+ -p, --parameter=<value>... [default: ] parameter for the package, in the form of 'key=value'. Can be specified
308
+ multiple times.
309
+ -v, --version=<value> version of the dev environment package
310
+ -w, --workspace=<value> (required) name of the workspace to provision the dev environment on
311
+ --debug enable debug mode
312
+
313
+ DESCRIPTION
314
+ Provision a remote dev environment on a workspace.
315
+
316
+ EXAMPLES
317
+ $ hereya devenv install -w my-workspace -p instanceType=t3.large
318
+ ```
319
+
320
+ _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/devenv/install/index.ts)_
321
+
322
+ ## `hereya devenv project init PROJECT`
323
+
324
+ Initialize a project on a remote dev environment.
325
+
326
+ ```
327
+ USAGE
328
+ $ hereya devenv project init PROJECT -w <value> [-f]
329
+
330
+ ARGUMENTS
331
+ PROJECT project name
332
+
333
+ FLAGS
334
+ -f, --force continue even if folder already exists
335
+ -w, --workspace=<value> (required) name of the workspace
336
+
337
+ DESCRIPTION
338
+ Initialize a project on a remote dev environment.
339
+
340
+ EXAMPLES
341
+ $ hereya devenv project init my-app -w my-workspace
342
+ ```
343
+
344
+ _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/devenv/project/init/index.ts)_
345
+
346
+ ## `hereya devenv ssh`
347
+
348
+ SSH into a dev environment instance.
349
+
350
+ ```
351
+ USAGE
352
+ $ hereya devenv ssh -w <value>
353
+
354
+ FLAGS
355
+ -w, --workspace=<value> (required) name of the workspace to SSH into
356
+
357
+ DESCRIPTION
358
+ SSH into a dev environment instance.
359
+
360
+ EXAMPLES
361
+ $ hereya devenv ssh -w my-workspace
362
+ ```
363
+
364
+ _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/devenv/ssh/index.ts)_
365
+
366
+ ## `hereya devenv uninstall`
367
+
368
+ Destroy and remove the dev environment from a workspace.
369
+
370
+ ```
371
+ USAGE
372
+ $ hereya devenv uninstall -w <value> [--debug]
373
+
374
+ FLAGS
375
+ -w, --workspace=<value> (required) name of the workspace to remove the dev environment from
376
+ --debug enable debug mode
377
+
378
+ DESCRIPTION
379
+ Destroy and remove the dev environment from a workspace.
380
+
381
+ EXAMPLES
382
+ $ hereya devenv uninstall -w my-workspace
383
+ ```
384
+
385
+ _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/devenv/uninstall/index.ts)_
271
386
 
272
387
  ## `hereya doc PACKAGE`
273
388
 
@@ -300,7 +415,7 @@ EXAMPLES
300
415
  $ hereya doc my-package --no-doc
301
416
  ```
302
417
 
303
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/doc/index.ts)_
418
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/doc/index.ts)_
304
419
 
305
420
  ## `hereya docker run IMAGE`
306
421
 
@@ -331,7 +446,7 @@ EXAMPLES
331
446
  $ hereya docker run myapp:latest -- --rm -v ./data:/data
332
447
  ```
333
448
 
334
- _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/docker/run/index.ts)_
449
+ _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/docker/run/index.ts)_
335
450
 
336
451
  ## `hereya down`
337
452
 
@@ -358,7 +473,7 @@ EXAMPLES
358
473
  $ hereya down
359
474
  ```
360
475
 
361
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/down/index.ts)_
476
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/down/index.ts)_
362
477
 
363
478
  ## `hereya env [NAME]`
364
479
 
@@ -389,7 +504,7 @@ EXAMPLES
389
504
  $ hereya env -w dev -l
390
505
  ```
391
506
 
392
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/env/index.ts)_
507
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/env/index.ts)_
393
508
 
394
509
  ## `hereya env set [NAME]`
395
510
 
@@ -416,7 +531,7 @@ EXAMPLES
416
531
  $ hereya env set FOO -v bar -w dev
417
532
  ```
418
533
 
419
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/env/set/index.ts)_
534
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/env/set/index.ts)_
420
535
 
421
536
  ## `hereya executor start`
422
537
 
@@ -449,7 +564,7 @@ EXAMPLES
449
564
  HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
450
565
  ```
451
566
 
452
- _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/executor/start/index.ts)_
567
+ _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/executor/start/index.ts)_
453
568
 
454
569
  ## `hereya flow add PACKAGE`
455
570
 
@@ -487,7 +602,7 @@ EXAMPLES
487
602
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
488
603
  ```
489
604
 
490
- _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/add/index.ts)_
605
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/add/index.ts)_
491
606
 
492
607
  ## `hereya flow docker run IMAGE`
493
608
 
@@ -517,7 +632,7 @@ EXAMPLES
517
632
  $ hereya flow docker run --pin myapp:latest -- --rm
518
633
  ```
519
634
 
520
- _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/docker/run/index.ts)_
635
+ _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/docker/run/index.ts)_
521
636
 
522
637
  ## `hereya flow down`
523
638
 
@@ -551,7 +666,7 @@ EXAMPLES
551
666
  $ hereya flow down --pin
552
667
  ```
553
668
 
554
- _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/down/index.ts)_
669
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/down/index.ts)_
555
670
 
556
671
  ## `hereya flow env [NAME]`
557
672
 
@@ -585,7 +700,7 @@ EXAMPLES
585
700
  $ hereya flow env -l
586
701
  ```
587
702
 
588
- _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/env/index.ts)_
703
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/env/index.ts)_
589
704
 
590
705
  ## `hereya flow provid PACKAGE`
591
706
 
@@ -614,7 +729,7 @@ EXAMPLES
614
729
  $ hereya flow provid hereya/postgres --pin
615
730
  ```
616
731
 
617
- _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/provid/index.ts)_
732
+ _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/provid/index.ts)_
618
733
 
619
734
  ## `hereya flow remove PACKAGE`
620
735
 
@@ -644,7 +759,7 @@ EXAMPLES
644
759
  $ hereya flow remove cloudy/docker_postgres --profile staging
645
760
  ```
646
761
 
647
- _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/remove/index.ts)_
762
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/remove/index.ts)_
648
763
 
649
764
  ## `hereya flow run CMD`
650
765
 
@@ -673,7 +788,7 @@ EXAMPLES
673
788
  $ hereya flow run --pin -- npm test
674
789
  ```
675
790
 
676
- _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/run/index.ts)_
791
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/run/index.ts)_
677
792
 
678
793
  ## `hereya flow up`
679
794
 
@@ -707,7 +822,7 @@ EXAMPLES
707
822
  $ hereya flow up --pin
708
823
  ```
709
824
 
710
- _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/flow/up/index.ts)_
825
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/flow/up/index.ts)_
711
826
 
712
827
  ## `hereya help [COMMAND]`
713
828
 
@@ -764,7 +879,7 @@ EXAMPLES
764
879
  $ hereya import org/my-package -f state.tfstate -w my-workspace
765
880
  ```
766
881
 
767
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/import/index.ts)_
882
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/import/index.ts)_
768
883
 
769
884
  ## `hereya init PROJECT`
770
885
 
@@ -790,7 +905,7 @@ EXAMPLES
790
905
  $ hereya init myProject -w=defaultWorkspace --chdir=./myProject
791
906
  ```
792
907
 
793
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/init/index.ts)_
908
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/init/index.ts)_
794
909
 
795
910
  ## `hereya login [URL]`
796
911
 
@@ -819,7 +934,7 @@ EXAMPLES
819
934
  $ hereya login --token=your-token https://cloud.hereya.dev
820
935
  ```
821
936
 
822
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/login/index.ts)_
937
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/login/index.ts)_
823
938
 
824
939
  ## `hereya logout`
825
940
 
@@ -836,7 +951,7 @@ EXAMPLES
836
951
  $ hereya logout
837
952
  ```
838
953
 
839
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/logout/index.ts)_
954
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/logout/index.ts)_
840
955
 
841
956
  ## `hereya provid PACKAGE`
842
957
 
@@ -864,7 +979,7 @@ EXAMPLES
864
979
  $ hereya provid hereya/postgres --workspace staging
865
980
  ```
866
981
 
867
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/provid/index.ts)_
982
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/provid/index.ts)_
868
983
 
869
984
  ## `hereya publish`
870
985
 
@@ -887,7 +1002,7 @@ EXAMPLES
887
1002
  $ hereya publish --chdir=/path/to/package
888
1003
  ```
889
1004
 
890
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/publish/index.ts)_
1005
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/publish/index.ts)_
891
1006
 
892
1007
  ## `hereya remove PACKAGE`
893
1008
 
@@ -915,7 +1030,7 @@ EXAMPLES
915
1030
  $ hereya remove cloudy/docker_postgres
916
1031
  ```
917
1032
 
918
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/remove/index.ts)_
1033
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/remove/index.ts)_
919
1034
 
920
1035
  ## `hereya run CMD`
921
1036
 
@@ -941,7 +1056,7 @@ EXAMPLES
941
1056
  $ hereya run -w uat -- node index.js
942
1057
  ```
943
1058
 
944
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/run/index.ts)_
1059
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/run/index.ts)_
945
1060
 
946
1061
  ## `hereya search QUERY`
947
1062
 
@@ -972,7 +1087,7 @@ EXAMPLES
972
1087
  $ hereya search database --json
973
1088
  ```
974
1089
 
975
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/search/index.ts)_
1090
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/search/index.ts)_
976
1091
 
977
1092
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
978
1093
 
@@ -997,7 +1112,7 @@ EXAMPLES
997
1112
  $ hereya unbootstrap local
998
1113
  ```
999
1114
 
1000
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/unbootstrap/index.ts)_
1115
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/unbootstrap/index.ts)_
1001
1116
 
1002
1117
  ## `hereya undeploy`
1003
1118
 
@@ -1022,7 +1137,7 @@ EXAMPLES
1022
1137
  $ hereya undeploy
1023
1138
  ```
1024
1139
 
1025
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/undeploy/index.ts)_
1140
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/undeploy/index.ts)_
1026
1141
 
1027
1142
  ## `hereya up`
1028
1143
 
@@ -1049,7 +1164,7 @@ EXAMPLES
1049
1164
  $ hereya up
1050
1165
  ```
1051
1166
 
1052
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/up/index.ts)_
1167
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/up/index.ts)_
1053
1168
 
1054
1169
  ## `hereya workspace create NAME`
1055
1170
 
@@ -1074,7 +1189,7 @@ EXAMPLES
1074
1189
  $ hereya workspace create dev
1075
1190
  ```
1076
1191
 
1077
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/create/index.ts)_
1192
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/create/index.ts)_
1078
1193
 
1079
1194
  ## `hereya workspace delete NAME`
1080
1195
 
@@ -1094,7 +1209,7 @@ EXAMPLES
1094
1209
  $ hereya workspace delete dev
1095
1210
  ```
1096
1211
 
1097
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/delete/index.ts)_
1212
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/delete/index.ts)_
1098
1213
 
1099
1214
  ## `hereya workspace env [NAME]`
1100
1215
 
@@ -1120,7 +1235,7 @@ EXAMPLES
1120
1235
  $ hereya workspace env myEnv -w dev
1121
1236
  ```
1122
1237
 
1123
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/env/index.ts)_
1238
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/env/index.ts)_
1124
1239
 
1125
1240
  ## `hereya workspace env set`
1126
1241
 
@@ -1144,7 +1259,7 @@ EXAMPLES
1144
1259
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1145
1260
  ```
1146
1261
 
1147
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/env/set/index.ts)_
1262
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/env/set/index.ts)_
1148
1263
 
1149
1264
  ## `hereya workspace env unset`
1150
1265
 
@@ -1165,7 +1280,7 @@ EXAMPLES
1165
1280
  $ hereya workspace env unset -w my-workspace -n myVar
1166
1281
  ```
1167
1282
 
1168
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/env/unset/index.ts)_
1283
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/env/unset/index.ts)_
1169
1284
 
1170
1285
  ## `hereya workspace executor install`
1171
1286
 
@@ -1184,7 +1299,7 @@ DESCRIPTION
1184
1299
  Install a remote executor into a workspace
1185
1300
  ```
1186
1301
 
1187
- _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/executor/install/index.ts)_
1302
+ _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/executor/install/index.ts)_
1188
1303
 
1189
1304
  ## `hereya workspace executor token`
1190
1305
 
@@ -1201,7 +1316,7 @@ DESCRIPTION
1201
1316
  Generate a workspace-scoped executor token for the remote executor
1202
1317
  ```
1203
1318
 
1204
- _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/executor/token/index.ts)_
1319
+ _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/executor/token/index.ts)_
1205
1320
 
1206
1321
  ## `hereya workspace executor uninstall`
1207
1322
 
@@ -1219,7 +1334,7 @@ DESCRIPTION
1219
1334
  Uninstall the remote executor from a workspace
1220
1335
  ```
1221
1336
 
1222
- _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/executor/uninstall/index.ts)_
1337
+ _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/executor/uninstall/index.ts)_
1223
1338
 
1224
1339
  ## `hereya workspace install PACKAGE`
1225
1340
 
@@ -1246,7 +1361,7 @@ EXAMPLES
1246
1361
  $ hereya workspace install hereya/aws-cognito
1247
1362
  ```
1248
1363
 
1249
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/install/index.ts)_
1364
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/install/index.ts)_
1250
1365
 
1251
1366
  ## `hereya workspace list`
1252
1367
 
@@ -1270,7 +1385,7 @@ EXAMPLES
1270
1385
  $ hereya workspace list --org personal
1271
1386
  ```
1272
1387
 
1273
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/list/index.ts)_
1388
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/list/index.ts)_
1274
1389
 
1275
1390
  ## `hereya workspace set-profile PROFILE`
1276
1391
 
@@ -1294,7 +1409,7 @@ EXAMPLES
1294
1409
  $ hereya workspace set-profile prod-profile -w production
1295
1410
  ```
1296
1411
 
1297
- _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/set-profile/index.ts)_
1412
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/set-profile/index.ts)_
1298
1413
 
1299
1414
  ## `hereya workspace uninstall PACKAGE`
1300
1415
 
@@ -1321,5 +1436,5 @@ EXAMPLES
1321
1436
  $ hereya workspace uninstall hereya/aws-cognito
1322
1437
  ```
1323
1438
 
1324
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.69.3/src/commands/workspace/uninstall/index.ts)_
1439
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.71.0/src/commands/workspace/uninstall/index.ts)_
1325
1440
  <!-- commandsstop -->
@@ -0,0 +1,9 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class DevenvConfig extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ workspace: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
7
+ };
8
+ run(): Promise<void>;
9
+ }
@@ -0,0 +1,59 @@
1
+ import { Command, Flags } from '@oclif/core';
2
+ import fs from 'node:fs/promises';
3
+ import os from 'node:os';
4
+ import path from 'node:path';
5
+ import { getBackend } from '../../../backend/index.js';
6
+ import { getExecutorForWorkspace } from '../../../executor/context.js';
7
+ import { setKeyFilePermissions, setSshDirPermissions } from '../../../lib/ssh-utils.js';
8
+ export default class DevenvConfig extends Command {
9
+ static description = 'Configure SSH for a dev environment and display connection details.';
10
+ static examples = [
11
+ '<%= config.bin %> <%= command.id %> -w my-workspace',
12
+ ];
13
+ static flags = {
14
+ workspace: Flags.string({
15
+ char: 'w',
16
+ description: 'name of the workspace to configure SSH for',
17
+ required: true,
18
+ }),
19
+ };
20
+ async run() {
21
+ const { flags } = await this.parse(DevenvConfig);
22
+ const { workspace } = flags;
23
+ const backend = await getBackend();
24
+ const getWorkspaceEnvOutput = await backend.getWorkspaceEnv({ workspace });
25
+ if (!getWorkspaceEnvOutput.success) {
26
+ this.error(getWorkspaceEnvOutput.reason);
27
+ }
28
+ let { env } = getWorkspaceEnvOutput;
29
+ const executor$ = await getExecutorForWorkspace(workspace);
30
+ if (!executor$.success) {
31
+ this.error(executor$.reason);
32
+ }
33
+ const { executor } = executor$;
34
+ env = await executor.resolveEnvValues({ env });
35
+ const sshHost = env.devEnvSshHost;
36
+ const sshPrivateKey = env.devEnvSshPrivateKey;
37
+ const sshUser = env.devEnvSshUser;
38
+ const sshHostDns = env.devEnvSshHostDns;
39
+ if (!sshHost || !sshPrivateKey || !sshUser) {
40
+ this.error('devEnvSshHost, devEnvSshPrivateKey, and devEnvSshUser must be set in the workspace environment');
41
+ }
42
+ const host = sshHostDns || sshHost;
43
+ const sshDir = path.join(os.homedir(), '.ssh');
44
+ const sanitizedWorkspace = workspace.replaceAll('/', '-');
45
+ const keyFilePath = path.join(sshDir, `hereya-devenv-${sanitizedWorkspace}`);
46
+ await fs.mkdir(sshDir, { recursive: true });
47
+ await setSshDirPermissions(sshDir);
48
+ await fs.writeFile(keyFilePath, sshPrivateKey);
49
+ await setKeyFilePermissions(keyFilePath);
50
+ this.log('SSH connection configured successfully.');
51
+ this.log('');
52
+ this.log('Fill in the Claude Code SSH connection form with:');
53
+ this.log('');
54
+ this.log(` Name: ${workspace}`);
55
+ this.log(` SSH Host: ${sshUser}@${host}`);
56
+ this.log(` SSH Port: 22`);
57
+ this.log(` Identity File: ${keyFilePath}`);
58
+ }
59
+ }
@@ -0,0 +1,13 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class DevenvInstall extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
+ parameter: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
8
+ 'parameter-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ workspace: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
+ };
12
+ run(): Promise<void>;
13
+ }