-
Notifications
You must be signed in to change notification settings - Fork 17
/
wasmer.sh
1458 lines (1375 loc) · 84.2 KB
/
wasmer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
# Automatic generated, DON'T MODIFY IT.
# @flag -V --version Print version info and exit
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# {{ wasmer login
# @cmd Login into a wasmer.io-like registry
# @flag --no-browser Variable to login without opening a browser
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @flag -q --quiet Do not print progress messages
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg token The API token to use when communicating with the registry (inferred from the environment by default)
login() {
:;
}
# }} wasmer login
# {{ wasmer publish
# @cmd Publish a package to a registry [alias: package publish]
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --dry-run Run the publish logic without sending anything to the registry server
# @flag --quiet Run the publish command without any output
# @option --namespace <PACKAGE_NAMESPACE> Override the namespace of the package to upload
# @option --name <PACKAGE_NAME> Override the name of the package to upload
# @option --version <PACKAGE_VERSION> Override the package version of the uploaded package in the wasmer.toml
# @flag --no-validate Skip validation of the uploaded package
# @option --wait[none|container|native-executables|bindings|all] Wait for package to be available on the registry before exiting
# @option --timeout Timeout (in seconds) for the publish query to the registry.
# @flag --bump Whether or not the patch field of the version of the package - if any - should be bumped
# @flag --non-interactive Do not prompt for user input
# @flag -h --help Print help (see a summary with '-h')
# @arg path Directory containing the `wasmer.toml`, or a custom *.toml manifest file.
publish() {
:;
}
# }} wasmer publish
# {{ wasmer cache
# @cmd Manage the local Wasmer cache
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --token The API token to use when communicating with the registry (inferred from the environment by default)
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
cache() {
:;
}
# {{{ wasmer cache clean
# @cmd Clear the cache
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
cache::clean() {
:;
}
# }}} wasmer cache clean
# {{{ wasmer cache dir
# @cmd Display the location of the cache
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
cache::dir() {
:;
}
# }}} wasmer cache dir
# }} wasmer cache
# {{ wasmer validate
# @cmd Validate a WebAssembly binary
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag --llvm Use LLVM compiler
# @flag -q --quiet Do not print progress messages
# @flag --enable-verifier Enable compiler internal verification.
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @flag -h --help Print help (see a summary with '-h')
# @arg file! File to validate as WebAssembly
validate() {
:;
}
# }} wasmer validate
# {{ wasmer compile
# @cmd Compile a WebAssembly binary
# @option -o <OUTPUT PATH> Output file
# @option --target <TARGET_TRIPLE> Compilation Target triple
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --llvm Use LLVM compiler
# @flag --enable-verifier Enable compiler internal verification.
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @option -m <CPU_FEATURES>
# @option --hash-algorithm <HASH_ALGORITHM> Hashing algorithm to be used for module hash
# @flag -h --help Print help (see a summary with '-h')
# @arg file! Input file
compile() {
:;
}
# }} wasmer compile
# {{ wasmer create-exe
# @cmd Compile a WebAssembly binary into a native executable
# @option -o <OUTPUT PATH> Output file
# @option --debug-dir <DEBUG PATH> Optional directorey used for debugging: if present, will output the zig command for reproducing issues in a debug directory
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --precompiled-atom <FILE:PREFIX:PATH> Prefix for every input file, e.g. "wat2wasm:sha256abc123" would prefix every function in the wat2wasm input object with the "sha256abc123" hash
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --target <TARGET_TRIPLE> Compilation Target triple
# @option --color[auto|always|never] When to display colored output
# @option --use-wasmer-release <URL_OR_RELEASE_VERSION> Can specify either a release version (such as "3.0.1") or a URL to a tarball to use for linking.
# @option -m --cpu-features <CPU_FEATURES>
# @option -l --libraries Additional libraries to link against.
# @flag --use-system-linker Use the system linker instead of zig for linking
# @option --library-path <LIBRARY_PATH> Cross-compilation library path (path to libwasmer.a / wasmer.lib)
# @option --tarball Cross-compilation tarball library path
# @option --zig-binary-path <ZIG_BINARY_PATH> Specify `zig` binary path (defaults to `zig` in $PATH if not present)
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @flag --llvm Use LLVM compiler
# @flag --enable-verifier Enable compiler internal verification.
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @option --hash-algorithm <HASH_ALGORITHM> Hashing algorithm to be used for module hash
# @flag -h --help Print help (see a summary with '-h')
# @arg file! Input file
create-exe() {
:;
}
# }} wasmer create-exe
# {{ wasmer create-obj
# @cmd Compile a WebAssembly binary into an object file
# @option -o <OUTPUT_PATH> Output file or directory if the input is a pirita file
# @option --debug-dir <DEBUG PATH> Optional directorey used for debugging: if present, will output the files to a debug instead of a temp directory
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --prefix Prefix for the function names in the input file in the compiled object file.
# @flag -q --quiet Do not print progress messages
# @option --atom Atom name to compile when compiling multi-atom pirita files
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @option --target <TARGET_TRIPLE> Compilation Target triple
# @option -m --cpu-features <CPU_FEATURES>
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @flag --llvm Use LLVM compiler
# @flag --enable-verifier Enable compiler internal verification.
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @flag -h --help Print help (see a summary with '-h')
# @arg file! Input file
create-obj() {
:;
}
# }} wasmer create-obj
# {{ wasmer gen-c-header
# @cmd Generate the C static_defs.h header file for the input .wasm module
# @option --prefix Prefix hash (default: SHA256 of input .wasm file)
# @option --atom For pirita files: optional atom name to compile
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option -o <OUTPUT PATH> Output file
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --target <TARGET_TRIPLE> Compilation Target triple
# @option --color[auto|always|never] When to display colored output
# @option -m --cpu-features <CPU_FEATURES>
# @flag -h --help Print help (see a summary with '-h')
# @arg file! Input file
gen-c-header() {
:;
}
# }} wasmer gen-c-header
# {{ wasmer config
# @cmd Get various configuration information needed to compile programs which use Wasmer
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --token The API token to use when communicating with the registry (inferred from the environment by default)
# @option --color[auto|always|never] When to display colored output
# @flag --prefix Print the installation prefix
# @flag --bindir Directory containing Wasmer executables
# @flag --includedir Directory containing Wasmer headers
# @flag --libdir Directory containing Wasmer libraries
# @flag --libs Libraries needed to link against Wasmer components
# @flag --cflags C compiler flags for files that include Wasmer headers
# @flag --config-path Print the path to the wasmer configuration file where all settings are stored
# @flag --pkg-config Outputs the necessary details for compiling and linking a program to Wasmer, using the `pkg-config` format
# @flag -h --help Print help (see a summary with '-h')
config() {
:;
}
# {{{ wasmer config get
# @cmd `wasmer config get $KEY`
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::get() {
:;
}
# {{{{ wasmer config get registry.url
# @cmd Print the registry URL of the currently active registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::get::registry.url() {
:;
}
# }}}} wasmer config get registry.url
# {{{{ wasmer config get registry.token
# @cmd Print the token for the currently active registry or nothing if not logged in
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::get::registry.token() {
:;
}
# }}}} wasmer config get registry.token
# {{{{ wasmer config get telemetry.enabled
# @cmd Print whether telemetry is currently enabled
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::get::telemetry.enabled() {
:;
}
# }}}} wasmer config get telemetry.enabled
# {{{{ wasmer config get update-notifications.enabled
# @cmd Print whether update notifications are enabled
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::get::update-notifications.enabled() {
:;
}
# }}}} wasmer config get update-notifications.enabled
# {{{{ wasmer config get proxy.url
# @cmd Print the proxy URL
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::get::proxy.url() {
:;
}
# }}}} wasmer config get proxy.url
# }}} wasmer config get
# {{{ wasmer config set
# @cmd `wasmer config set $KEY $VALUE`
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
config::set() {
:;
}
# {{{{ wasmer config set registry.url
# @cmd Set the registry URL of the currently active registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg url! Url of the registry
config::set::registry.url() {
:;
}
# }}}} wasmer config set registry.url
# {{{{ wasmer config set registry.token
# @cmd Set the token for the currently active registry or nothing if not logged in
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg token! Token to set
config::set::registry.token() {
:;
}
# }}}} wasmer config set registry.token
# {{{{ wasmer config set telemetry.enabled
# @cmd Set whether telemetry is currently enabled
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg enabled![true|false] Whether to enable telemetry
config::set::telemetry.enabled() {
:;
}
# }}}} wasmer config set telemetry.enabled
# {{{{ wasmer config set update-notifications.enabled
# @cmd Set whether update notifications are enabled
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg enabled![true|false] Whether to enable update notifications
config::set::update-notifications.enabled() {
:;
}
# }}}} wasmer config set update-notifications.enabled
# {{{{ wasmer config set proxy.url
# @cmd Set the active proxy URL
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg url! Set if a proxy URL should be used (empty = unset proxy)
config::set::proxy.url() {
:;
}
# }}}} wasmer config set proxy.url
# }}} wasmer config set
# }} wasmer config
# {{ wasmer self-update
# @cmd Update wasmer to the latest version
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
self-update() {
:;
}
# }} wasmer self-update
# {{ wasmer inspect
# @cmd Inspect a WebAssembly file
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag --llvm Use LLVM compiler
# @flag -q --quiet Do not print progress messages
# @flag --enable-verifier Enable compiler internal verification.
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @flag -h --help Print help (see a summary with '-h')
# @arg file! File to validate as WebAssembly
inspect() {
:;
}
# }} wasmer inspect
# {{ wasmer init
# @cmd Initializes a new wasmer.toml file
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --token The API token to use when communicating with the registry (inferred from the environment by default)
# @option --color[auto|always|never] When to display colored output
# @flag --lib Initialize wasmer.toml for a library package
# @flag --bin Initialize wasmer.toml for a binary package
# @flag --empty Initialize an empty wasmer.toml
# @flag --overwrite Force overwriting the wasmer.toml, even if it already exists
# @flag --quiet Don't display debug output
# @option --namespace Namespace to init with, default = current logged in user or _
# @option --package-name <PACKAGE_NAME> Package name to init with, default = Cargo.toml name or current directory name
# @option --version Version of the initialized package
# @option --manifest-path <MANIFEST_PATH> If the `manifest-path` is a Cargo.toml, use that file to initialize the wasmer.toml
# @option --template Add default dependencies for common packages
# @option --include Include file paths into the target container filesystem
# @flag -h --help Print help (see a summary with '-h')
# @arg package_path Directory of the output file name.
init() {
:;
}
# }} wasmer init
# {{ wasmer wast
# @cmd Run spec testsuite
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag --llvm Use LLVM compiler
# @flag -q --quiet Do not print progress messages
# @flag --enable-verifier Enable compiler internal verification.
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @flag -f --fail-fast A flag to indicate wast stop at the first error or continue
# @option --hash-algorithm <HASH_ALGORITHM> Hashing algorithm to be used for module hash
# @flag -h --help Print help (see a summary with '-h')
# @arg file! Wast file to run
wast() {
:;
}
# }} wasmer wast
# {{ wasmer binfmt
# @cmd Unregister and/or register wasmer as binfmt interpreter
# @option --binfmt-misc <BINFMT_MISC> Mount point of binfmt_misc fs
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
binfmt() {
:;
}
# {{{ wasmer binfmt register
# @cmd Register wasmer as binfmt interpreter
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
binfmt::register() {
:;
}
# }}} wasmer binfmt register
# {{{ wasmer binfmt unregister
# @cmd Unregister a binfmt interpreter for wasm32
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
binfmt::unregister() {
:;
}
# }}} wasmer binfmt unregister
# {{{ wasmer binfmt reregister
# @cmd Soft unregister, and register
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
binfmt::reregister() {
:;
}
# }}} wasmer binfmt reregister
# }} wasmer binfmt
# {{ wasmer whoami
# @cmd Shows the current logged in user for the current active registry
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --token The API token to use when communicating with the registry (inferred from the environment by default)
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
whoami() {
:;
}
# }} wasmer whoami
# {{ wasmer add
# @cmd Add a Wasmer package's bindings to your application
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --token The API token to use when communicating with the registry (inferred from the environment by default)
# @option --color[auto|always|never] When to display colored output
# @flag --npm Add the JavaScript bindings using "npm install"
# @flag --yarn Add the JavaScript bindings using "yarn add"
# @flag --pnpm Add the JavaScript bindings using "pnpm add"
# @flag --dev Add the package as a dev-dependency
# @flag --pip Add the Python bindings using "pip install"
# @flag -h --help Print help (see a summary with '-h')
# @arg packages* The packages to add (e.g. "wasmer/wasmer-pack@0.5.0" or "python/python")
add() {
:;
}
# }} wasmer add
# {{ wasmer run
# @cmd Run a WebAssembly file or Wasmer container
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --registry The registry to fetch packages from (inferred from the environment by default)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --token The API token to use when communicating with the registry (inferred from the environment by default)
# @option --color[auto|always|never] When to display colored output
# @flag --singlepass Use Singlepass compiler
# @flag --cranelift Use Cranelift compiler
# @flag --llvm Use LLVM compiler
# @flag --enable-verifier Enable compiler internal verification.
# @option --llvm-debug-dir <LLVM_DEBUG_DIR> LLVM debug directory, where IR and object files will be written to.
# @flag --enable-simd Enable support for the SIMD proposal
# @flag --disable-threads Disable support for the threads proposal
# @flag --enable-threads Deprecated, threads are enabled by default
# @flag --enable-reference-types Enable support for the reference types proposal
# @flag --enable-multi-value Enable support for the multi value proposal
# @flag --enable-bulk-memory Enable support for the bulk memory proposal
# @flag --enable-all Enable support for all pre-standard proposals
# @option --dir WASI pre-opened directory
# @option --mapdir <GUEST_DIR:HOST_DIR> Map a host directory to a different location for the Wasm module
# @option --env <KEY=VALUE> Pass custom environment variables
# @flag --forward-host-env Forward all host env variables to guest
# @option --use List of other containers this module depends on
# @option --include-webc <WEBC> List of webc packages that are explicitly included for execution Note: these packages will be used instead of those in the registry
# @option --map-command <MAPCMD> List of injected atoms
# @flag --net Enable networking with the host network.
# @flag --no-tty Disables the TTY bridge
# @flag --enable-async-threads Enables asynchronous threading
# @option --enable-cpu-backoff <ENABLE_CPU_BACKOFF> Enables an exponential backoff (measured in milli-seconds) of the process CPU usage when there are no active run tokens (when set holds the maximum amount of time that it will pause the CPU) (default = off)
# @option --journal <JOURNALS> Specifies one or more journal files that Wasmer will use to restore and save the state of the WASM process as it executes.
# @flag --enable-compaction Flag that indicates if the journal will be automatically compacted as it fills up and when the process exits
# @flag --without-compact-on-drop Tells the compactor not to compact when the journal log file is closed
# @option --with-compact-on-growth <WITH_COMPACT_ON_GROWTH> Tells the compactor to compact when it grows by a certain factor of its original size.
# @option --snapshot-on <SNAPSHOT_ON> Indicates what events will cause a snapshot to be taken and written to the journal file.
# @option --snapshot-period <SNAPSHOT_INTERVAL> Adds a periodic interval (measured in milli-seconds) that the runtime will automatically take snapshots of the running process and write them to the journal.
# @flag --http-client Allow instances to send http requests.
# @flag --deny-multiple-wasi-versions Require WASI modules to only import 1 version of WASI
# @option -a --addr The address to serve on
# @option --stack-size <STACK_SIZE> Set the default stack size (default is 1048576)
# @option -e --entrypoint The function or command to invoke
# @option --COREDUMP_PATH Generate a coredump at this path if a WebAssembly trap occurs
# @option --hash-algorithm <HASH_ALGORITHM> Hashing algorithm to be used for module hash
# @flag -h --help Print help (see a summary with '-h')
# @arg input! The file, URL, or package to run
# @arg args* Command-line arguments passed to the package
run() {
:;
}
# }} wasmer run
# {{ wasmer journal
# @cmd Manage journals (compacting, inspecting, filtering, ...)
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
journal() {
:;
}
# {{{ wasmer journal compact
# @cmd Compacts a journal into a smaller size by removed redundant or duplicate events
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg journal_path! Path to the journal that will be compacted
journal::compact() {
:;
}
# }}} wasmer journal compact
# {{{ wasmer journal export
# @cmd Exports the contents of a journal to stdout as JSON objects
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg journal_path! Path to the journal that will be printed
journal::export() {
:;
}
# }}} wasmer journal export
# {{{ wasmer journal import
# @cmd Imports the events into a journal as JSON objects
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg journal_path! Path to the journal that will be printed
journal::import() {
:;
}
# }}} wasmer journal import
# {{{ wasmer journal inspect
# @cmd Inspects the contents of a journal and summarizes it to `stdout`
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg journal_path! Path to the journal that will be printed
journal::inspect() {
:;
}
# }}} wasmer journal inspect
# {{{ wasmer journal filter
# @cmd Filters out certain events from a journal
# @option -f --filter <FILTERS> Filters to be applied to the output journal, filter options are - 'mem' | 'memory' -> removes all WASM memory related events - 'thread' | 'threads' -> removes all events related to the state of the threads - 'fs' | 'file' -> removes file system mutation events - 'core' -> removes core operating system operations such as TTY - 'snap' | 'snapshot' -> removes the snapshots from the journal - 'net' | 'network' -> removes network socket and interface events
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg source_path! Path to the journal that will be read
# @arg target_path! Path to the journal that will be the output of the filter
journal::filter() {
:;
}
# }}} wasmer journal filter
# {{{ wasmer journal extract
# @cmd Extracts an element of a journal
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg journal_path! Path to the journal that will be compacted
journal::extract() {
:;
}
# {{{{ wasmer journal extract memory
# @cmd
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg memory_file_path! Path to the memory file that will be updated using this journal
journal::extract::memory() {
:;
}
# }}}} wasmer journal extract memory
# }}} wasmer journal extract
# }} wasmer journal
# {{ wasmer package
# @cmd Package related commands
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
package() {
:;
}
# {{{ wasmer package download
# @cmd Download a package from the registry
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --validate Verify that the downloaded file is a valid package
# @option -o --out-path <OUT_PATH> Path where the package file should be written to.
# @flag --quiet Run the download command without any output
# @flag -h --help Print help (see a summary with '-h')
# @arg package! The package to download
package::download() {
:;
}
# }}} wasmer package download
# {{{ wasmer package build
# @cmd Build a container from a package manifest
# @option -o --out Output path for the package file.
# @flag --quiet Run the publish command without any output
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag --check Only checks whether the package could be built successfully
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg package Path of the package or wasmer.toml manifest.
package::build() {
:;
}
# }}} wasmer package build
# {{{ wasmer package tag
# @cmd Tag an existing package
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --dry-run Run the publish logic without sending anything to the registry server
# @flag --quiet Run the publish command without any output
# @option --namespace <PACKAGE_NAMESPACE> Override the namespace of the package to upload
# @option --name <PACKAGE_NAME> Override the name of the package to upload
# @option --version <PACKAGE_VERSION> Override the package version of the uploaded package in the wasmer.toml
# @option --timeout Timeout (in seconds) for the publish query to the registry.
# @flag --bump Whether or not the patch field of the version of the package - if any - should be bumped
# @flag --non-interactive Do not prompt for user input
# @option --path <PACKAGE_PATH> Directory containing the `wasmer.toml`, or a custom *.toml manifest file.
# @option --wait[none|container|native-executables|bindings|all] Wait for package to be available on the registry before exiting
# @flag -h --help Print help (see a summary with '-h')
# @arg hash! The hash of the package to tag
# @arg package_ident The package to tag
package::tag() {
:;
}
# }}} wasmer package tag
# {{{ wasmer package push
# @cmd Push a package to the registry
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --dry-run Run the publish logic without sending anything to the registry server
# @flag --quiet Run the publish command without any output
# @option --namespace <PACKAGE_NAMESPACE> Override the namespace of the package to upload
# @option --name <PACKAGE_NAME> Override the name of the package to upload.
# @option --timeout Timeout (in seconds) for the publish query to the registry.
# @flag --non-interactive Do not prompt for user input
# @flag -h --help Print help (see a summary with '-h')
# @arg path Directory containing the `wasmer.toml`, or a custom *.toml manifest file.
package::push() {
:;
}
# }}} wasmer package push
# {{{ wasmer package publish
# @cmd Publish (push and tag) a package to the registry
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --dry-run Run the publish logic without sending anything to the registry server
# @flag --quiet Run the publish command without any output
# @option --namespace <PACKAGE_NAMESPACE> Override the namespace of the package to upload
# @option --name <PACKAGE_NAME> Override the name of the package to upload
# @option --version <PACKAGE_VERSION> Override the package version of the uploaded package in the wasmer.toml
# @flag --no-validate Skip validation of the uploaded package
# @option --wait[none|container|native-executables|bindings|all] Wait for package to be available on the registry before exiting
# @option --timeout Timeout (in seconds) for the publish query to the registry.
# @flag --bump Whether or not the patch field of the version of the package - if any - should be bumped
# @flag --non-interactive Do not prompt for user input
# @flag -h --help Print help (see a summary with '-h')
# @arg path Directory containing the `wasmer.toml`, or a custom *.toml manifest file.
package::publish() {
:;
}
# }}} wasmer package publish
# }} wasmer package
# {{ wasmer container
# @cmd Container related commands.
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
container() {
:;
}
# {{{ wasmer container unpack
# @cmd Extract contents of a container to a directory
# @option -o --out-dir <OUT_DIR> The output directory
# @flag --overwrite Overwrite existing directories/files
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag --quiet Run the unpack command without any output
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
# @arg package_path! Path to the package
container::unpack() {
:;
}
# }}} wasmer container unpack
# }} wasmer container
# {{ wasmer deploy
# @cmd Deploy apps to Wasmer Edge [alias: app deploy]
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @option -f --format[yaml|json|table] Output format.
# @flag --no-validate Skip local schema validation
# @flag --non-interactive Do not prompt for user input
# @flag --publish-package Automatically publish the package referenced by this app.
# @option --dir The path to the directory containing the `app.yaml` file
# @option --path The path to the `app.yaml` file
# @flag --no-wait Do not wait for the app to become reachable
# @flag --no-default Do not make the new app version the default (active) version.
# @flag --no-persist-id Do not persist the app version ID in the app.yaml
# @option --owner Specify the owner (user or namespace) of the app.
# @option --app-name <name> Specify the name (user or namespace) of the app to be deployed.
# @flag --bump Whether or not to automatically bump the package version if publishing
# @flag --quiet Don't print any message.
# @option --template A reference to the template to use when creating an app to deploy.
# @option --package Name of the package to use when creating an app to deploy
# @flag --use-local-manifest Whether or not to search (and use) a local manifest when creating an app to deploy
# @flag -h --help Print help (see a summary with '-h')
deploy() {
:;
}
# }} wasmer deploy
# {{ wasmer app
# @cmd Create and manage Wasmer Edge apps
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag -q --quiet Do not print progress messages
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag -h --help Print help (see a summary with '-h')
app() {
:;
}
# {{{ wasmer app deploy
# @cmd Deploy an app to Wasmer Edge
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @option -f --format[yaml|json|table] Output format.
# @flag --no-validate Skip local schema validation
# @flag --non-interactive Do not prompt for user input
# @flag --publish-package Automatically publish the package referenced by this app.
# @option --dir The path to the directory containing the `app.yaml` file
# @option --path The path to the `app.yaml` file
# @flag --no-wait Do not wait for the app to become reachable
# @flag --no-default Do not make the new app version the default (active) version.
# @flag --no-persist-id Do not persist the app version ID in the app.yaml
# @option --owner Specify the owner (user or namespace) of the app.
# @option --app-name <name> Specify the name (user or namespace) of the app to be deployed.
# @flag --bump Whether or not to automatically bump the package version if publishing
# @flag --quiet Don't print any message.
# @option --template A reference to the template to use when creating an app to deploy.
# @option --package Name of the package to use when creating an app to deploy
# @flag --use-local-manifest Whether or not to search (and use) a local manifest when creating an app to deploy
# @flag -h --help Print help (see a summary with '-h')
app::deploy() {
:;
}
# }}} wasmer app deploy
# {{{ wasmer app create
# @cmd Create a new Edge app
# @option --template A reference to the template to use.
# @option --package Name of the package to use
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @flag --use-local-manifest Whether or not to search (and use) a local manifest
# @flag --deploy Whether or not to deploy the application once it is created.
# @option --log-format <LOG_FORMAT> The format to use when generating logs
# @option --color[auto|always|never] When to display colored output
# @flag --no-validate Skip local schema validation
# @flag --non-interactive Do not prompt for user input
# @flag --offline Do not interact with any APIs
# @option --owner The owner of the app
# @option --name <APP_NAME> The name of the app (can be changed later)
# @option --dir <APP_DIR_PATH> The path to the directory where the config file for the application will be written to
# @flag --no-wait Do not wait for the app to become reachable if deployed
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @option --wasmer-dir <WASMER_DIR> Set Wasmer's home directory
# @option --cache-dir <CACHE_DIR> The directory cached artefacts are saved to
# @option -f --format[yaml|json|table] Output format.
# @option --new-package-name <NEW_PACKAGE_NAME> Name to use when creating a new package from a template
# @flag --quiet Don't print any message
# @flag -h --help Print help (see a summary with '-h')
app::create() {
:;
}
# }}} wasmer app create
# {{{ wasmer app get
# @cmd Retrieve detailed informations about an app
# @option --token The (optional) authorization token to pass to the registry
# @option --registry Change the current registry
# @flag -v --verbose* Generate verbose output (repeat for more verbosity)
# @option -f --format[yaml|json|table] Output format.
# @flag -q --quiet Do not print progress messages