You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4,13 +4,15 @@ FLB (Fleetbase CLI) is a command-line interface tool designed for managing Fleet
4
4
5
5
## Features
6
6
7
-
- Publish Fleetbase Extensions to a specified registry.
8
-
- Unpublish Extensions from the registry.
9
-
- Automatically convert `composer.json` to `package.json` for PHP packages.
10
-
- Scaffold new Fleetbase extensions.
11
-
- Set registry token to a fleetbase instance.
12
-
- Install and Uninstall extensions.
13
-
- Flexible registry configuration.
7
+
- Register and manage Registry Developer Accounts for self-hosted instances
8
+
- Publish Fleetbase Extensions to a specified registry
9
+
- Unpublish Extensions from the registry
10
+
- Install Fleetbase using Docker
11
+
- Automatically convert `composer.json` to `package.json` for PHP packages
12
+
- Scaffold new Fleetbase extensions
13
+
- Set registry token to a Fleetbase instance
14
+
- Install and Uninstall extensions
15
+
- Flexible registry configuration
14
16
15
17
## Installation
16
18
@@ -20,8 +22,148 @@ To install FLB, run the following command:
20
22
npm install -g @fleetbase/cli
21
23
```
22
24
25
+
## Quick Start: Developer Account Registration
26
+
27
+
If you're using a self-hosted Fleetbase instance and want to publish or install extensions, you'll need to register a Registry Developer Account. Follow these steps:
28
+
29
+
### Step 1: Register Your Account
30
+
31
+
```bash
32
+
flb register --host localhost:8000
33
+
```
34
+
35
+
You'll be prompted for:
36
+
-**Username**: Your desired username (alphanumeric, hyphens, and underscores only)
37
+
-**Email**: Your email address
38
+
-**Password**: A secure password (minimum 8 characters)
39
+
-**Name**: Your display name (optional)
40
+
41
+
### Step 2: Verify Your Email
42
+
43
+
Check your email for a verification code, then run:
Generate a new registry authentication token or regenerate an existing one. Useful for existing accounts created before automatic token generation, or if you need to regenerate your token for security reasons.
132
+
133
+
```bash
134
+
flb generate-token
135
+
```
136
+
137
+
**Options:**
138
+
-`-e, --email <email>`: Email address
139
+
-`-p, --password <password>`: Password
140
+
-`-h, --host <host>`: API host (default: `https://api.fleetbase.io`)
**Note:** This command requires your account to be verified. Each time you generate a token, it replaces the previous one.
148
+
149
+
### Installing Fleetbase
150
+
151
+
Install Fleetbase using Docker with a single command.
152
+
153
+
```bash
154
+
flb install-fleetbase
155
+
```
156
+
157
+
**Options:**
158
+
-`--host <host>`: Host or IP address to bind to (default: `localhost`)
159
+
-`--environment <environment>`: Environment: `development` or `production` (default: `development`)
160
+
-`--directory <directory>`: Installation directory (default: current directory)
161
+
162
+
**Example:**
163
+
```bash
164
+
flb install-fleetbase --host 0.0.0.0 --environment production --directory /opt/fleetbase
165
+
```
166
+
25
167
### Publishing a Extension
26
168
27
169
To publish a extension, navigate to the extension directory and run:
@@ -46,31 +188,44 @@ flb unpublish [extension]
46
188
47
189
### Setup Registry Auth Token
48
190
49
-
To install purchased extensions you must setup authorization first which is linked to your Fleetbase account. You can generate a registry token at [https://console.fleetbase.io/extensions/developers/credentials](https://console.fleetbase.io/extensions/developers/credentials)
191
+
To install purchased extensions you must setup authorization first which is linked to your Fleetbase account. For cloud users, you can generate a registry token at [https://console.fleetbase.io/extensions/developers/credentials](https://console.fleetbase.io/extensions/developers/credentials). For self-hosted users, use the `flb register` and `flb verify` commands to get your token.
50
192
51
193
To setup registry auth use:
52
194
53
195
```bash
54
-
flb set-auth [token] --path /fleetbase
196
+
flb set-auth [token]
55
197
```
56
198
57
-
-`-p, --path`: (Optional) The path to the fleetbase instance directory. Defaults to the current directory.
199
+
**Options:**
200
+
-`-p, --path <path>`: Path of the Fleetbase instance to install setup for (default: `.`)
201
+
-`-r, --registry <url>`: Registry URL the credentials are for (default: `https://registry.fleetbase.io`)
FLB can be configured via command-line options. The most common options include:
174
345
175
-
-`-r, --registry [url]`: Specify a custom registry URL.
346
+
-`-r, --registry [url]`: Specify a custom registry URL
347
+
-`-h, --host [url]`: Specify the API host for developer account operations
348
+
349
+
## Self-Hosted vs Cloud
350
+
351
+
### Self-Hosted Users
352
+
353
+
If you're running Fleetbase on your own infrastructure:
354
+
355
+
1. Use `flb register` to create a Registry Developer Account
356
+
2. Verify your email with `flb verify`
357
+
3. Use the provided token with `flb set-auth`
358
+
4. Specify `--host` parameter for all commands to point to your instance
359
+
360
+
### Cloud Users
361
+
362
+
If you're using Fleetbase Cloud (console.fleetbase.io):
363
+
364
+
1. Generate a registry token from the Console at [Extensions > Developers > Credentials](https://console.fleetbase.io/extensions/developers/credentials)
365
+
2. Use the token with `flb set-auth`
366
+
3. No need to specify `--host` parameter (defaults to cloud)
0 commit comments