@telara-cli/cli 0.1.0 → 0.1.1

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 CHANGED
@@ -1,25 +1,128 @@
1
- # @telera/cli
1
+ # @telara-cli/cli
2
2
 
3
- Install the Telara CLI via npm.
3
+ The official CLI for [Telara](https://telara.dev) manage MCP configurations, API keys, and agent tool integrations from your terminal.
4
4
 
5
5
  ## Installation
6
6
 
7
+ ```bash
8
+ npm install -g @telara-cli/cli
7
9
  ```
8
- npm install -g @telera/cli
9
- ```
10
10
 
11
- ## Usage
11
+ ### Alternative methods
12
+
13
+ ```bash
14
+ # macOS / Linux
15
+ curl -fsSL https://get.telara.dev/install.sh | sh
12
16
 
17
+ # Windows (PowerShell)
18
+ irm https://get.telara.dev/windows | iex
19
+
20
+ # Homebrew
21
+ brew install Telara-Labs/tap/telara
13
22
  ```
23
+
24
+ ## Quick start
25
+
26
+ ```bash
27
+ # 1. Authenticate
14
28
  telara login
29
+
30
+ # 2. Set up your agent tools (auto-detects installed tools)
15
31
  telara setup
16
- telara --help
32
+
33
+ # 3. Verify everything is working
34
+ telara doctor
17
35
  ```
18
36
 
19
- ## Alternative installation
37
+ ## Commands
20
38
 
21
- ```
22
- macOS/Linux: curl -fsSL https://get.telara.ai/install.sh | sh
23
- Windows: irm https://get.telara.ai/windows | iex
24
- Homebrew: brew install telera-ai/tap/telara
25
- ```
39
+ ### Authentication
40
+
41
+ | Command | Description |
42
+ |---------|-------------|
43
+ | `telara login` | Authenticate via browser (device flow) or `--token` |
44
+ | `telara logout` | Revoke token and remove local credentials |
45
+ | `telara whoami` | Show current user, org, and active context |
46
+
47
+ ### MCP configuration management
48
+
49
+ | Command | Description |
50
+ |---------|-------------|
51
+ | `telara config list` | List accessible MCP configurations |
52
+ | `telara config show <name>` | Show config details, data sources, and MCP URL |
53
+ | `telara config keys <name>` | List API keys for a configuration |
54
+ | `telara config generate-key <name>` | Generate a new API key (`--expires 30d\|90d\|1yr\|never`) |
55
+ | `telara config revoke-key <id>` | Revoke an API key |
56
+ | `telara config rotate-key <ctx>` | Rotate the key for a saved context |
57
+
58
+ ### Agent tool setup
59
+
60
+ | Command | Description |
61
+ |---------|-------------|
62
+ | `telara setup` | Interactive setup — auto-detects installed tools |
63
+ | `telara setup claude-code` | Configure Claude Code (`--managed` for enterprise) |
64
+ | `telara setup cursor` | Configure Cursor |
65
+ | `telara setup windsurf` | Configure Windsurf |
66
+ | `telara setup vscode` | Configure VS Code (project scope) |
67
+ | `telara setup all` | Configure all detected tools |
68
+ | `telara init` | Write project-scoped MCP config for detected tools |
69
+
70
+ ### Contexts
71
+
72
+ Contexts are named (config + API key) pairs for easy switching between environments.
73
+
74
+ | Command | Description |
75
+ |---------|-------------|
76
+ | `telara context list` | List saved contexts |
77
+ | `telara context create <name>` | Create a new context with a generated API key |
78
+ | `telara context use <name>` | Switch active context |
79
+ | `telara context current` | Show active context details and MCP URL |
80
+ | `telara context delete <name>` | Delete a saved context |
81
+
82
+ ### Provisioning
83
+
84
+ Generate MCP access keys for specific deployment scenarios.
85
+
86
+ | Command | Description |
87
+ |---------|-------------|
88
+ | `telara provision claude-web` | Generate key for Claude.ai (Anthropic Organization Connector) |
89
+ | `telara provision ci` | Generate key for CI/CD environments (GitHub Actions, GitLab CI) |
90
+ | `telara provision managed` | Generate managed config for enterprise MDM/GPO deployment |
91
+
92
+ ### Diagnostics
93
+
94
+ | Command | Description |
95
+ |---------|-------------|
96
+ | `telara doctor` | Check auth, connectivity, tool configs, contexts, and security |
97
+ | `telara version` | Print version, commit, and build date |
98
+ | `telara update` | Update CLI to the latest version |
99
+
100
+ ## Global flags
101
+
102
+ | Flag | Description |
103
+ |------|-------------|
104
+ | `--api-url` | Override the Telara API base URL |
105
+ | `--context` | Use a specific context for this command |
106
+ | `-v, --verbose` | Print full HTTP responses on errors |
107
+
108
+ ## Supported agent tools
109
+
110
+ - **Claude Code** (global or managed scope)
111
+ - **Cursor** (global scope)
112
+ - **Windsurf** (global scope)
113
+ - **VS Code** (project scope)
114
+
115
+ ## Requirements
116
+
117
+ - Node.js >= 14 (for npm installation)
118
+ - macOS, Linux, or Windows
119
+ - x86_64 or ARM64 architecture
120
+
121
+ ## Documentation
122
+
123
+ - [Telara docs](https://telara.dev/docs)
124
+ - [CLI installation guide](https://telara.dev/docs/cli/install)
125
+
126
+ ## License
127
+
128
+ MIT
package/bin/telara CHANGED
@@ -3,9 +3,9 @@
3
3
  // If this script is still running, the postinstall step did not complete successfully.
4
4
  console.error('telara binary not found.');
5
5
  console.error('The postinstall step may have failed. Try reinstalling:');
6
- console.error(' npm install -g @telera/cli');
6
+ console.error(' npm install -g @telara-cli/cli');
7
7
  console.error('');
8
8
  console.error('Or install manually:');
9
- console.error(' macOS/Linux: curl -fsSL https://get.telara.ai/install.sh | sh');
10
- console.error(' Windows: irm https://get.telara.ai/windows | iex');
9
+ console.error(' macOS/Linux: curl -fsSL https://get.telara.dev/install.sh | sh');
10
+ console.error(' Windows: irm https://get.telara.dev/windows | iex');
11
11
  process.exit(1);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telara-cli/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Telara CLI — manage your MCP configurations",
5
- "homepage": "https://telara.ai",
5
+ "homepage": "https://telara.dev",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/Telara-Labs/Telara-CLI"
@@ -12,9 +12,9 @@ const { execSync } = require('child_process');
12
12
  const pkg = require('../package.json');
13
13
  const version = process.env.TELARA_VERSION || pkg.version;
14
14
 
15
- const PRIMARY_BASE_URL = 'https://get.telara.ai/download';
15
+ const PRIMARY_BASE_URL = 'https://get.telara.dev/download';
16
16
  const FALLBACK_BASE_URL = 'https://github.com/Telara-Labs/Telara-CLI/releases/download';
17
- const MANUAL_INSTALL_URL = 'https://telara.ai/docs/cli/install';
17
+ const MANUAL_INSTALL_URL = 'https://telara.dev/docs/cli/install';
18
18
 
19
19
  function getPlatformInfo() {
20
20
  const platform = process.platform;
@@ -214,7 +214,7 @@ async function main() {
214
214
  console.log(`telara installed successfully.`);
215
215
  console.log('');
216
216
  console.log('Get started:');
217
- console.log(' 1. Generate a token at https://app.telara.ai/settings?tab=developer');
217
+ console.log(' 1. Generate a token at https://app.telara.dev/settings?tab=developer');
218
218
  console.log(' 2. telara login --token <your-token>');
219
219
  console.log(' 3. telara setup claude-code');
220
220
  } finally {
@@ -232,8 +232,8 @@ main().catch((err) => {
232
232
  console.error('telara install failed: ' + err.message);
233
233
  console.error('');
234
234
  console.error('Install manually:');
235
- console.error(' macOS/Linux: curl -fsSL https://get.telara.ai/install.sh | sh');
236
- console.error(' Windows: irm https://get.telara.ai/windows | iex');
235
+ console.error(' macOS/Linux: curl -fsSL https://get.telara.dev/install.sh | sh');
236
+ console.error(' Windows: irm https://get.telara.dev/windows | iex');
237
237
  console.error(' More options: ' + MANUAL_INSTALL_URL);
238
238
  console.error('');
239
239
  process.exit(1);