@micropage-sh/cli 2.6.2 → 2.6.3
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 +5 -5
- package/package.json +2 -2
- package/src/index.js +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# micropage CLI
|
|
2
2
|
|
|
3
|
-
Command-line interface for [micropage.sh](https://
|
|
3
|
+
Command-line interface for [micropage.sh](https://micropage.sh): keep your `.page` files in git and create, edit, publish and manage your sites from the terminal.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -48,7 +48,7 @@ nano landing.page
|
|
|
48
48
|
# Push local content as a draft build
|
|
49
49
|
micropage push
|
|
50
50
|
|
|
51
|
-
# Publish the current draft (deploys
|
|
51
|
+
# Publish the current draft (deploys it live)
|
|
52
52
|
micropage publish
|
|
53
53
|
|
|
54
54
|
# Pull the latest remote build content to landing.page
|
|
@@ -115,7 +115,7 @@ See [`micropage posts`](#posts) below for the full command set.
|
|
|
115
115
|
|---|---|
|
|
116
116
|
| `micropage projects list [--json]` | List your projects |
|
|
117
117
|
| `micropage projects show [id] [--json]` | Show project + latest build details |
|
|
118
|
-
| `micropage projects create <name> [-d domain]` | Create a project and init local folder. Omit `-d` to let the API assign `{slugified-name}-{6 hex}` (unique
|
|
118
|
+
| `micropage projects create <name> [-d domain]` | Create a project and init local folder. Omit `-d` to let the API assign `{slugified-name}-{6 hex}` (unique `<slug>.micropage.sh` label, max 58 chars). Use `-d` only to override the slug. |
|
|
119
119
|
| `micropage projects fetch <uuid\|domain>` | Fetch an existing project and init local folder (includes storage → `./assets` sync) |
|
|
120
120
|
| `micropage projects pull` | Pull latest build raw content → `landing.page`, then sync `./assets` with project storage (1:1) |
|
|
121
121
|
| `micropage projects delete [-y]` | Delete project (remote + local `.micropage/`) |
|
|
@@ -132,7 +132,7 @@ When you create a new project, the CLI also scaffolds:
|
|
|
132
132
|
| Command | Description |
|
|
133
133
|
|---|---|
|
|
134
134
|
| `micropage push` | Merge local `.page` files and save as a draft build |
|
|
135
|
-
| `micropage publish` | Push then deploy
|
|
135
|
+
| `micropage publish` | Push then deploy the site live |
|
|
136
136
|
| `micropage builds list [--json]` | List builds for the current project |
|
|
137
137
|
| `micropage builds redeploy [version]` | Re-publish an older build as a new deploy |
|
|
138
138
|
| `micropage builds download [version] [-o file]` | Download a deployed build archive as a `.zip` file |
|
|
@@ -227,7 +227,7 @@ If the project folder contains a root-level `llms.txt`, its contents are publish
|
|
|
227
227
|
Each project folder has a `.micropage/project.json` file that stores:
|
|
228
228
|
- `projectId` — the Supabase project ID
|
|
229
229
|
- `buildId` — the ID of the last draft/deployed build (auto-updated by push/pull)
|
|
230
|
-
- `domain` — the
|
|
230
|
+
- `domain` — the project slug; the site lives at `<domain>.micropage.sh`
|
|
231
231
|
- `name` — the project name
|
|
232
232
|
|
|
233
233
|
Add `.micropage/` to your `.gitignore` if you share the content folder.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micropage-sh/cli",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"description": "CLI
|
|
3
|
+
"version": "2.6.3",
|
|
4
|
+
"description": "Micropage CLI: keep your .page files in git and publish static sites from the terminal",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"micropage": "bin/micropage.js"
|
package/src/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const program = new Command();
|
|
|
19
19
|
|
|
20
20
|
program
|
|
21
21
|
.name('micropage')
|
|
22
|
-
.description('CLI
|
|
22
|
+
.description('Micropage CLI: keep your .page files in git and publish static sites from the terminal')
|
|
23
23
|
.version(version);
|
|
24
24
|
|
|
25
25
|
// ---------------------------------------------------------------------------
|
|
@@ -65,7 +65,7 @@ projectCmd
|
|
|
65
65
|
.description('Create a new project and init local folder')
|
|
66
66
|
.option(
|
|
67
67
|
'-d, --domain <domain>',
|
|
68
|
-
'
|
|
68
|
+
'Choose the project slug, which sets its address <domain>.micropage.sh (default: server generates name-slug + 6 hex, max 58 chars)',
|
|
69
69
|
)
|
|
70
70
|
.action((name, opts) => projects.create(name, opts));
|
|
71
71
|
|
|
@@ -87,7 +87,7 @@ projectCmd
|
|
|
87
87
|
|
|
88
88
|
projectCmd
|
|
89
89
|
.command('publish')
|
|
90
|
-
.description('Push local content and publish
|
|
90
|
+
.description('Push local content and publish it live — alias for `micropage publish`')
|
|
91
91
|
.option('-w, --watch', 'Stream build/deploy events after triggering publish')
|
|
92
92
|
.action((opts) => builds.publish(opts));
|
|
93
93
|
|
|
@@ -152,7 +152,7 @@ program
|
|
|
152
152
|
|
|
153
153
|
program
|
|
154
154
|
.command('publish')
|
|
155
|
-
.description('Push local content and publish
|
|
155
|
+
.description('Push local content and publish it live')
|
|
156
156
|
.option('-w, --watch', 'Stream build/deploy events after triggering publish')
|
|
157
157
|
.action((opts) => builds.publish(opts));
|
|
158
158
|
|