metav-cli 0.1.0__tar.gz
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.
- metav_cli-0.1.0/PKG-INFO +212 -0
- metav_cli-0.1.0/cli_anything/metav/README.md +185 -0
- metav_cli-0.1.0/metav_cli.egg-info/PKG-INFO +212 -0
- metav_cli-0.1.0/metav_cli.egg-info/SOURCES.txt +11 -0
- metav_cli-0.1.0/metav_cli.egg-info/dependency_links.txt +1 -0
- metav_cli-0.1.0/metav_cli.egg-info/entry_points.txt +2 -0
- metav_cli-0.1.0/metav_cli.egg-info/namespace_packages.txt +1 -0
- metav_cli-0.1.0/metav_cli.egg-info/requires.txt +7 -0
- metav_cli-0.1.0/metav_cli.egg-info/top_level.txt +1 -0
- metav_cli-0.1.0/pyproject.toml +52 -0
- metav_cli-0.1.0/setup.cfg +4 -0
- metav_cli-0.1.0/setup.py +32 -0
metav_cli-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: metav-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool for MetaV Visual Dashboard Platform
|
|
5
|
+
Author: MetaV Team
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/justinzzc/metav-cli
|
|
8
|
+
Project-URL: Documentation, https://github.com/justinzzc/metav-cli#readme
|
|
9
|
+
Keywords: metav,cli,dashboard,visualization
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
Requires-Dist: click>=8.0.0
|
|
21
|
+
Requires-Dist: requests>=2.28.0
|
|
22
|
+
Requires-Dist: cryptography>=41.0.0
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
26
|
+
Dynamic: requires-python
|
|
27
|
+
|
|
28
|
+
# MetaV CLI (metav-cli)
|
|
29
|
+
|
|
30
|
+
Command-line interface for MetaV Visual Dashboard Platform.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
### Prerequisites
|
|
35
|
+
|
|
36
|
+
- Python 3.8+
|
|
37
|
+
- MetaV server running
|
|
38
|
+
|
|
39
|
+
### Install CLI
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cd agent-harness
|
|
43
|
+
pip install -e .
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Configuration
|
|
47
|
+
|
|
48
|
+
Set environment variables or use command-line options:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
export METAV_BASE_URL=http://localhost:10517/metav
|
|
52
|
+
export METAV_AUTHKEY=your_auth_key_here
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Or use command-line options:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
metav-cli --base-url http://localhost:10517/metav --authkey your_key app list
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Usage
|
|
62
|
+
|
|
63
|
+
### Authentication
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Login with username/password
|
|
67
|
+
metav-cli auth login -u username -p password
|
|
68
|
+
|
|
69
|
+
# Set authkey
|
|
70
|
+
metav-cli auth set-authkey your_auth_key
|
|
71
|
+
|
|
72
|
+
# Check status
|
|
73
|
+
metav-cli auth status
|
|
74
|
+
|
|
75
|
+
# Logout
|
|
76
|
+
metav-cli auth logout
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Application Management
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# List applications
|
|
83
|
+
metav-cli app list
|
|
84
|
+
metav-cli app list --page 1 --page-size 50 --keyword search
|
|
85
|
+
|
|
86
|
+
# Get application details
|
|
87
|
+
metav-cli app get <app_id>
|
|
88
|
+
|
|
89
|
+
# Create application
|
|
90
|
+
metav-cli app create --name "My Dashboard" --remark "Created via CLI"
|
|
91
|
+
|
|
92
|
+
# Update application
|
|
93
|
+
metav-cli app update <app_id> --name "New Name" --remark "Updated"
|
|
94
|
+
|
|
95
|
+
# Delete application
|
|
96
|
+
metav-cli app delete <app_id> --force
|
|
97
|
+
|
|
98
|
+
# Export/Import
|
|
99
|
+
metav-cli app export <app_id> --output myapp.zip
|
|
100
|
+
metav-cli app import myapp.zip
|
|
101
|
+
|
|
102
|
+
# Copy application
|
|
103
|
+
metav-cli app copy <app_id> --name "Copy of My Dashboard"
|
|
104
|
+
|
|
105
|
+
# Release/Publish
|
|
106
|
+
metav-cli app release <app_id>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Page Management
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# List pages
|
|
113
|
+
metav-cli page list --app-id <app_id>
|
|
114
|
+
|
|
115
|
+
# Get page details
|
|
116
|
+
metav-cli page get <page_id>
|
|
117
|
+
|
|
118
|
+
# Create page
|
|
119
|
+
metav-cli page create --app-id <app_id> --name "New Page"
|
|
120
|
+
|
|
121
|
+
# Delete page
|
|
122
|
+
metav-cli page delete <page_id> --force
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### DataSource Management
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# List data sources
|
|
129
|
+
metav-cli datasource list
|
|
130
|
+
metav-cli datasource list --page-size 100
|
|
131
|
+
|
|
132
|
+
# List all data sources
|
|
133
|
+
metav-cli datasource list-all
|
|
134
|
+
|
|
135
|
+
# Get data source
|
|
136
|
+
metav-cli datasource get <datasource_id>
|
|
137
|
+
|
|
138
|
+
# Create data source
|
|
139
|
+
metav-cli datasource create --name "My API" --type restful --config '{"url": "/api/data"}'
|
|
140
|
+
|
|
141
|
+
# Delete data source
|
|
142
|
+
metav-cli datasource delete <datasource_id> --force
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Dashboard Operations
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Create dashboard from pageSchema
|
|
149
|
+
metav-cli dashboard create --app-name "My Dashboard" --schema schema.json --remark "AI created"
|
|
150
|
+
|
|
151
|
+
# List components
|
|
152
|
+
metav-cli dashboard components
|
|
153
|
+
|
|
154
|
+
# Get dashboard info
|
|
155
|
+
metav-cli dashboard info <app_id>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Information Commands
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# Current user info
|
|
162
|
+
metav-cli info user
|
|
163
|
+
|
|
164
|
+
# Show configuration
|
|
165
|
+
metav-cli info config
|
|
166
|
+
|
|
167
|
+
# Show session info
|
|
168
|
+
metav-cli info session
|
|
169
|
+
|
|
170
|
+
# Show environment variables
|
|
171
|
+
metav-cli info env
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### JSON Output
|
|
175
|
+
|
|
176
|
+
Use `--json` flag for machine-readable output:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
metav-cli app list --json
|
|
180
|
+
metav-cli app get <app_id> --json
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Interactive REPL
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
metav-cli repl
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## REPL Commands
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
metav> app list # List applications
|
|
193
|
+
metav> dashboard components # List components
|
|
194
|
+
metav> auth status # Show auth status
|
|
195
|
+
metav> info config # Show configuration
|
|
196
|
+
metav> exit # Exit REPL
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Session Management
|
|
200
|
+
|
|
201
|
+
The CLI stores session data in `~/.metav_session.json`:
|
|
202
|
+
|
|
203
|
+
- Authentication token
|
|
204
|
+
- User info
|
|
205
|
+
- Default base URL
|
|
206
|
+
- Default app/page IDs
|
|
207
|
+
|
|
208
|
+
## Exit Codes
|
|
209
|
+
|
|
210
|
+
- `0`: Success
|
|
211
|
+
- `1`: API error
|
|
212
|
+
- `2`: Configuration error
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# MetaV CLI (metav-cli)
|
|
2
|
+
|
|
3
|
+
Command-line interface for MetaV Visual Dashboard Platform.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Prerequisites
|
|
8
|
+
|
|
9
|
+
- Python 3.8+
|
|
10
|
+
- MetaV server running
|
|
11
|
+
|
|
12
|
+
### Install CLI
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
cd agent-harness
|
|
16
|
+
pip install -e .
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Configuration
|
|
20
|
+
|
|
21
|
+
Set environment variables or use command-line options:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
export METAV_BASE_URL=http://localhost:10517/metav
|
|
25
|
+
export METAV_AUTHKEY=your_auth_key_here
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or use command-line options:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
metav-cli --base-url http://localhost:10517/metav --authkey your_key app list
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
### Authentication
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Login with username/password
|
|
40
|
+
metav-cli auth login -u username -p password
|
|
41
|
+
|
|
42
|
+
# Set authkey
|
|
43
|
+
metav-cli auth set-authkey your_auth_key
|
|
44
|
+
|
|
45
|
+
# Check status
|
|
46
|
+
metav-cli auth status
|
|
47
|
+
|
|
48
|
+
# Logout
|
|
49
|
+
metav-cli auth logout
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Application Management
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# List applications
|
|
56
|
+
metav-cli app list
|
|
57
|
+
metav-cli app list --page 1 --page-size 50 --keyword search
|
|
58
|
+
|
|
59
|
+
# Get application details
|
|
60
|
+
metav-cli app get <app_id>
|
|
61
|
+
|
|
62
|
+
# Create application
|
|
63
|
+
metav-cli app create --name "My Dashboard" --remark "Created via CLI"
|
|
64
|
+
|
|
65
|
+
# Update application
|
|
66
|
+
metav-cli app update <app_id> --name "New Name" --remark "Updated"
|
|
67
|
+
|
|
68
|
+
# Delete application
|
|
69
|
+
metav-cli app delete <app_id> --force
|
|
70
|
+
|
|
71
|
+
# Export/Import
|
|
72
|
+
metav-cli app export <app_id> --output myapp.zip
|
|
73
|
+
metav-cli app import myapp.zip
|
|
74
|
+
|
|
75
|
+
# Copy application
|
|
76
|
+
metav-cli app copy <app_id> --name "Copy of My Dashboard"
|
|
77
|
+
|
|
78
|
+
# Release/Publish
|
|
79
|
+
metav-cli app release <app_id>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Page Management
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# List pages
|
|
86
|
+
metav-cli page list --app-id <app_id>
|
|
87
|
+
|
|
88
|
+
# Get page details
|
|
89
|
+
metav-cli page get <page_id>
|
|
90
|
+
|
|
91
|
+
# Create page
|
|
92
|
+
metav-cli page create --app-id <app_id> --name "New Page"
|
|
93
|
+
|
|
94
|
+
# Delete page
|
|
95
|
+
metav-cli page delete <page_id> --force
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### DataSource Management
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# List data sources
|
|
102
|
+
metav-cli datasource list
|
|
103
|
+
metav-cli datasource list --page-size 100
|
|
104
|
+
|
|
105
|
+
# List all data sources
|
|
106
|
+
metav-cli datasource list-all
|
|
107
|
+
|
|
108
|
+
# Get data source
|
|
109
|
+
metav-cli datasource get <datasource_id>
|
|
110
|
+
|
|
111
|
+
# Create data source
|
|
112
|
+
metav-cli datasource create --name "My API" --type restful --config '{"url": "/api/data"}'
|
|
113
|
+
|
|
114
|
+
# Delete data source
|
|
115
|
+
metav-cli datasource delete <datasource_id> --force
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Dashboard Operations
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Create dashboard from pageSchema
|
|
122
|
+
metav-cli dashboard create --app-name "My Dashboard" --schema schema.json --remark "AI created"
|
|
123
|
+
|
|
124
|
+
# List components
|
|
125
|
+
metav-cli dashboard components
|
|
126
|
+
|
|
127
|
+
# Get dashboard info
|
|
128
|
+
metav-cli dashboard info <app_id>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Information Commands
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Current user info
|
|
135
|
+
metav-cli info user
|
|
136
|
+
|
|
137
|
+
# Show configuration
|
|
138
|
+
metav-cli info config
|
|
139
|
+
|
|
140
|
+
# Show session info
|
|
141
|
+
metav-cli info session
|
|
142
|
+
|
|
143
|
+
# Show environment variables
|
|
144
|
+
metav-cli info env
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### JSON Output
|
|
148
|
+
|
|
149
|
+
Use `--json` flag for machine-readable output:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
metav-cli app list --json
|
|
153
|
+
metav-cli app get <app_id> --json
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Interactive REPL
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
metav-cli repl
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## REPL Commands
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
metav> app list # List applications
|
|
166
|
+
metav> dashboard components # List components
|
|
167
|
+
metav> auth status # Show auth status
|
|
168
|
+
metav> info config # Show configuration
|
|
169
|
+
metav> exit # Exit REPL
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Session Management
|
|
173
|
+
|
|
174
|
+
The CLI stores session data in `~/.metav_session.json`:
|
|
175
|
+
|
|
176
|
+
- Authentication token
|
|
177
|
+
- User info
|
|
178
|
+
- Default base URL
|
|
179
|
+
- Default app/page IDs
|
|
180
|
+
|
|
181
|
+
## Exit Codes
|
|
182
|
+
|
|
183
|
+
- `0`: Success
|
|
184
|
+
- `1`: API error
|
|
185
|
+
- `2`: Configuration error
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: metav-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool for MetaV Visual Dashboard Platform
|
|
5
|
+
Author: MetaV Team
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/justinzzc/metav-cli
|
|
8
|
+
Project-URL: Documentation, https://github.com/justinzzc/metav-cli#readme
|
|
9
|
+
Keywords: metav,cli,dashboard,visualization
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
Requires-Dist: click>=8.0.0
|
|
21
|
+
Requires-Dist: requests>=2.28.0
|
|
22
|
+
Requires-Dist: cryptography>=41.0.0
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
26
|
+
Dynamic: requires-python
|
|
27
|
+
|
|
28
|
+
# MetaV CLI (metav-cli)
|
|
29
|
+
|
|
30
|
+
Command-line interface for MetaV Visual Dashboard Platform.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
### Prerequisites
|
|
35
|
+
|
|
36
|
+
- Python 3.8+
|
|
37
|
+
- MetaV server running
|
|
38
|
+
|
|
39
|
+
### Install CLI
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cd agent-harness
|
|
43
|
+
pip install -e .
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Configuration
|
|
47
|
+
|
|
48
|
+
Set environment variables or use command-line options:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
export METAV_BASE_URL=http://localhost:10517/metav
|
|
52
|
+
export METAV_AUTHKEY=your_auth_key_here
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Or use command-line options:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
metav-cli --base-url http://localhost:10517/metav --authkey your_key app list
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Usage
|
|
62
|
+
|
|
63
|
+
### Authentication
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Login with username/password
|
|
67
|
+
metav-cli auth login -u username -p password
|
|
68
|
+
|
|
69
|
+
# Set authkey
|
|
70
|
+
metav-cli auth set-authkey your_auth_key
|
|
71
|
+
|
|
72
|
+
# Check status
|
|
73
|
+
metav-cli auth status
|
|
74
|
+
|
|
75
|
+
# Logout
|
|
76
|
+
metav-cli auth logout
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Application Management
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# List applications
|
|
83
|
+
metav-cli app list
|
|
84
|
+
metav-cli app list --page 1 --page-size 50 --keyword search
|
|
85
|
+
|
|
86
|
+
# Get application details
|
|
87
|
+
metav-cli app get <app_id>
|
|
88
|
+
|
|
89
|
+
# Create application
|
|
90
|
+
metav-cli app create --name "My Dashboard" --remark "Created via CLI"
|
|
91
|
+
|
|
92
|
+
# Update application
|
|
93
|
+
metav-cli app update <app_id> --name "New Name" --remark "Updated"
|
|
94
|
+
|
|
95
|
+
# Delete application
|
|
96
|
+
metav-cli app delete <app_id> --force
|
|
97
|
+
|
|
98
|
+
# Export/Import
|
|
99
|
+
metav-cli app export <app_id> --output myapp.zip
|
|
100
|
+
metav-cli app import myapp.zip
|
|
101
|
+
|
|
102
|
+
# Copy application
|
|
103
|
+
metav-cli app copy <app_id> --name "Copy of My Dashboard"
|
|
104
|
+
|
|
105
|
+
# Release/Publish
|
|
106
|
+
metav-cli app release <app_id>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Page Management
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# List pages
|
|
113
|
+
metav-cli page list --app-id <app_id>
|
|
114
|
+
|
|
115
|
+
# Get page details
|
|
116
|
+
metav-cli page get <page_id>
|
|
117
|
+
|
|
118
|
+
# Create page
|
|
119
|
+
metav-cli page create --app-id <app_id> --name "New Page"
|
|
120
|
+
|
|
121
|
+
# Delete page
|
|
122
|
+
metav-cli page delete <page_id> --force
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### DataSource Management
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# List data sources
|
|
129
|
+
metav-cli datasource list
|
|
130
|
+
metav-cli datasource list --page-size 100
|
|
131
|
+
|
|
132
|
+
# List all data sources
|
|
133
|
+
metav-cli datasource list-all
|
|
134
|
+
|
|
135
|
+
# Get data source
|
|
136
|
+
metav-cli datasource get <datasource_id>
|
|
137
|
+
|
|
138
|
+
# Create data source
|
|
139
|
+
metav-cli datasource create --name "My API" --type restful --config '{"url": "/api/data"}'
|
|
140
|
+
|
|
141
|
+
# Delete data source
|
|
142
|
+
metav-cli datasource delete <datasource_id> --force
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Dashboard Operations
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Create dashboard from pageSchema
|
|
149
|
+
metav-cli dashboard create --app-name "My Dashboard" --schema schema.json --remark "AI created"
|
|
150
|
+
|
|
151
|
+
# List components
|
|
152
|
+
metav-cli dashboard components
|
|
153
|
+
|
|
154
|
+
# Get dashboard info
|
|
155
|
+
metav-cli dashboard info <app_id>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Information Commands
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# Current user info
|
|
162
|
+
metav-cli info user
|
|
163
|
+
|
|
164
|
+
# Show configuration
|
|
165
|
+
metav-cli info config
|
|
166
|
+
|
|
167
|
+
# Show session info
|
|
168
|
+
metav-cli info session
|
|
169
|
+
|
|
170
|
+
# Show environment variables
|
|
171
|
+
metav-cli info env
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### JSON Output
|
|
175
|
+
|
|
176
|
+
Use `--json` flag for machine-readable output:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
metav-cli app list --json
|
|
180
|
+
metav-cli app get <app_id> --json
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Interactive REPL
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
metav-cli repl
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## REPL Commands
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
metav> app list # List applications
|
|
193
|
+
metav> dashboard components # List components
|
|
194
|
+
metav> auth status # Show auth status
|
|
195
|
+
metav> info config # Show configuration
|
|
196
|
+
metav> exit # Exit REPL
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Session Management
|
|
200
|
+
|
|
201
|
+
The CLI stores session data in `~/.metav_session.json`:
|
|
202
|
+
|
|
203
|
+
- Authentication token
|
|
204
|
+
- User info
|
|
205
|
+
- Default base URL
|
|
206
|
+
- Default app/page IDs
|
|
207
|
+
|
|
208
|
+
## Exit Codes
|
|
209
|
+
|
|
210
|
+
- `0`: Success
|
|
211
|
+
- `1`: API error
|
|
212
|
+
- `2`: Configuration error
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
pyproject.toml
|
|
2
|
+
setup.py
|
|
3
|
+
cli_anything/metav/README.md
|
|
4
|
+
cli_anything/metav/README.md
|
|
5
|
+
metav_cli.egg-info/PKG-INFO
|
|
6
|
+
metav_cli.egg-info/SOURCES.txt
|
|
7
|
+
metav_cli.egg-info/dependency_links.txt
|
|
8
|
+
metav_cli.egg-info/entry_points.txt
|
|
9
|
+
metav_cli.egg-info/namespace_packages.txt
|
|
10
|
+
metav_cli.egg-info/requires.txt
|
|
11
|
+
metav_cli.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cli_anything
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "metav-cli"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "CLI tool for MetaV Visual Dashboard Platform"
|
|
5
|
+
readme = "cli_anything/metav/README.md"
|
|
6
|
+
requires-python = ">=3.8"
|
|
7
|
+
license = {text = "MIT"}
|
|
8
|
+
authors = [
|
|
9
|
+
{name = "MetaV Team"}
|
|
10
|
+
]
|
|
11
|
+
keywords = ["metav", "cli", "dashboard", "visualization"]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 3 - Alpha",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.8",
|
|
18
|
+
"Programming Language :: Python :: 3.9",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
dependencies = [
|
|
24
|
+
"click>=8.0.0",
|
|
25
|
+
"requests>=2.28.0",
|
|
26
|
+
"cryptography>=41.0.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
dev = [
|
|
31
|
+
"pytest>=7.0.0",
|
|
32
|
+
"pytest-cov>=4.0.0",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
metav-cli = "cli_anything.metav.metav_cli:main"
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Homepage = "https://github.com/justinzzc/metav-cli"
|
|
40
|
+
Documentation = "https://github.com/justinzzc/metav-cli#readme"
|
|
41
|
+
|
|
42
|
+
[build-system]
|
|
43
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
44
|
+
build-backend = "setuptools.build_meta"
|
|
45
|
+
|
|
46
|
+
[tool.setuptools.packages.find]
|
|
47
|
+
where = ["."]
|
|
48
|
+
include = ["cli_anything.metav*"]
|
|
49
|
+
namespaces = false
|
|
50
|
+
|
|
51
|
+
[tool.setuptools.package-data]
|
|
52
|
+
"cli_anything.metav" = ["skills/*.md", "utils/*.py", "tests/*.md"]
|
metav_cli-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Setup configuration for cli-anything-metav."""
|
|
2
|
+
|
|
3
|
+
from setuptools import setup, find_namespace_packages
|
|
4
|
+
|
|
5
|
+
setup(
|
|
6
|
+
name="cli-anything-metav",
|
|
7
|
+
version="0.0.1",
|
|
8
|
+
description="CLI harness for MetaV - Visual Dashboard Platform",
|
|
9
|
+
long_description=open("cli_anything/metav/README.md", encoding="utf-8").read(),
|
|
10
|
+
long_description_content_type="text/markdown",
|
|
11
|
+
author="MetaV Team",
|
|
12
|
+
python_requires=">=3.8",
|
|
13
|
+
packages=find_namespace_packages(include=["cli_anything.*"]),
|
|
14
|
+
package_data={
|
|
15
|
+
"cli_anything.metav": ["skills/*.md", "utils/*.py"],
|
|
16
|
+
},
|
|
17
|
+
namespace_packages=["cli_anything"],
|
|
18
|
+
entry_points={
|
|
19
|
+
"console_scripts": [
|
|
20
|
+
"metav-cli=cli_anything.metav.metav_cli:cli",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
classifiers=[
|
|
24
|
+
"Development Status :: 3 - Alpha",
|
|
25
|
+
"Intended Audience :: Developers",
|
|
26
|
+
"Programming Language :: Python :: 3",
|
|
27
|
+
"Programming Language :: Python :: 3.8",
|
|
28
|
+
"Programming Language :: Python :: 3.9",
|
|
29
|
+
"Programming Language :: Python :: 3.10",
|
|
30
|
+
"Programming Language :: Python :: 3.11",
|
|
31
|
+
],
|
|
32
|
+
)
|