@api-now/cli 1.2.1 → 1.4.0
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 +6 -1
- package/dist/index.js +26 -132
- package/dist/templates/login.html +414 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,9 +29,10 @@ Once installed, the CLI is available as the `apinow` command.
|
|
|
29
29
|
|
|
30
30
|
## Usage & Commands
|
|
31
31
|
|
|
32
|
-
All commands support the following global options:
|
|
32
|
+
All commands support the following global options (which can be specified before or after any subcommand):
|
|
33
33
|
- `--api-url <url>`: Override the target API Server URL (Default: `http://localhost:8080`). Note that the platform is actively under development and the final default URL will be set once the platform is officially released.
|
|
34
34
|
- `--format <text|json>`: Define the output layout (Default: `text`).
|
|
35
|
+
- `--debug`: Enable debug/verbose logging.
|
|
35
36
|
|
|
36
37
|
### 1. Configuration (`config`)
|
|
37
38
|
Read and write persistent CLI configurations stored in the OS settings folder depending on the platform:
|
|
@@ -39,6 +40,10 @@ Read and write persistent CLI configurations stored in the OS settings folder de
|
|
|
39
40
|
- **macOS**: `~/Library/Preferences/apinow-cli/config.json`
|
|
40
41
|
- **Windows**: `%APPDATA%\apinow-cli\config.json`
|
|
41
42
|
|
|
43
|
+
> [!TIP]
|
|
44
|
+
> **Local Project Configuration**:
|
|
45
|
+
> The CLI and MCP server both support local project-level configuration overrides. If a file named `apinow.json` or `.apinowrc.json` is found in the current working directory or any parent directories, its settings are loaded and merged, with local keys overriding global config settings. This is useful for project-specific settings (like pointing to a local development API URL) without changing global config files.
|
|
46
|
+
|
|
42
47
|
```bash
|
|
43
48
|
# Get a configuration property (e.g. apiUrl, defaultOrg)
|
|
44
49
|
apinow config get <key>
|