-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpocketbase.sh
156 lines (147 loc) · 10.3 KB
/
pocketbase.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
#!/usr/bin/env bash
# Automatic generated, DON'T MODIFY IT.
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @flag -h --help help for pocketbase
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
# @flag -v --version version for pocketbase
# {{ pocketbase admin
# @cmd Manages admin accounts
# @flag -h --help help for admin
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
admin() {
:;
}
# {{{ pocketbase admin create
# @cmd Creates a new admin account
# @flag -h --help help for create
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
admin::create() {
:;
}
# }}} pocketbase admin create
# {{{ pocketbase admin delete
# @cmd Deletes an existing admin account
# @flag -h --help help for delete
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
admin::delete() {
:;
}
# }}} pocketbase admin delete
# {{{ pocketbase admin update
# @cmd Changes the password of a single admin account
# @flag -h --help help for update
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
admin::update() {
:;
}
# }}} pocketbase admin update
# }} pocketbase admin
# {{ pocketbase migrate
# @cmd Executes app DB migration scripts
# @flag -h --help help for migrate
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
migrate() {
:;
}
# }} pocketbase migrate
# {{ pocketbase serve
# @cmd Starts the web server (default to 127.0.0.1:8090 if no domain is specified)
# @flag -h --help help for serve
# @option --http <string> TCP address to listen for the HTTP server (if domain args are specified - default to 0.0.0.0:80, otherwise - default to 127.0.0.1:8090)
# @option --https <string> TCP address to listen for the HTTPS server (if domain args are specified - default to 0.0.0.0:443, otherwise - default to empty string, aka.
# @option --origins* <string> CORS allowed domain origins list (default [*])
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
# @arg domain*
serve() {
:;
}
# }} pocketbase serve
# {{ pocketbase update
# @cmd Automatically updates the current app executable with the latest available version
# @flag --backup Creates a pb_data backup at the end of the update process (default true)
# @flag -h --help help for update
# @flag --automigrate enable/disable auto migrations (default true)
# @flag --dev enable dev mode, aka.
# @option --dir <dir> the PocketBase data directory (default "pb_data")
# @option --encryptionEnv <string> the env variable whose value of 32 characters will be used as encryption key for the app settings (default none)
# @option --hooksDir <dir> the directory with the JS app hooks
# @option --hooksPool <int> the total prewarm goja.Runtime instances for the JS app hooks execution (default 25)
# @flag --hooksWatch auto restart the app on pb_hooks file change (default true)
# @flag --indexFallback fallback the request to index.html on missing static path (eg.
# @option --migrationsDir <dir> the directory with the user defined migrations
# @option --publicDir <path> the directory to serve static files (default "pb_public")
# @option --queryTimeout <int> the default SELECT queries timeout in seconds (default 30)
update() {
:;
}
# }} pocketbase update
command eval "$(argc --argc-eval "$0" "$@")"