@blocofy/cli 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/bin/blocofy.mjs +4 -3
  2. package/package.json +1 -1
package/bin/blocofy.mjs CHANGED
@@ -9,6 +9,7 @@
9
9
  * livereload. No monorepo required.
10
10
  */
11
11
  import { existsSync } from "node:fs";
12
+ import { createRequire } from "node:module";
12
13
  import { resolve } from "node:path";
13
14
  import { createInterface } from "node:readline/promises";
14
15
 
@@ -23,7 +24,7 @@ import { isAffirmative, livePushDecision } from "../lib/confirm.mjs";
23
24
  import { hyperlink, openUrl } from "../lib/term.mjs";
24
25
  import { isValidToken, isValidUrl, normalizeUrl } from "../lib/validate.mjs";
25
26
 
26
- const VERSION = "0.1.14";
27
+ const VERSION = createRequire(import.meta.url)("../package.json").version;
27
28
  const args = process.argv.slice(2);
28
29
 
29
30
  /** Human label for a resolved site: "Name (slug)" or just the slug. */
@@ -50,13 +51,13 @@ Usage
50
51
  --port <n> local port (default 3030)
51
52
  --no-sync local preview only (skip draft sync + remote views)
52
53
 
53
- blocofy theme pull [dir] [--draft]
54
+ blocofy theme pull [dir] [--draft] [--instance <handle>]
54
55
  Download the live theme to disk. (dir defaults to cwd)
55
56
  --draft pull the draft theme (what 'theme dev' syncs into) instead of live
56
57
  --instance <handle> pull a specific theme by its handle (from the admin
57
58
  panel theme card, or \`blocofy status\`)
58
59
 
59
- blocofy theme push [dir] [--draft] [--yes]
60
+ blocofy theme push [dir] [--draft] [--yes] [--instance <handle>]
60
61
  Write the local theme to the LIVE site IMMEDIATELY (create/update; no delete,
61
62
  no preview). Asks for confirmation first; non-interactive shells must pass --yes.
62
63
  --draft write to a draft theme instead — preview & publish it from the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocofy/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Develop your Blocofy theme locally against live data with instant preview — login, theme dev, pull, push.",
5
5
  "type": "module",
6
6
  "license": "MIT",