@uipath/cli 0.1.5

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 (3) hide show
  1. package/README.md +195 -0
  2. package/dist/index.js +197540 -0
  3. package/package.json +52 -0
package/README.md ADDED
@@ -0,0 +1,195 @@
1
+ # UiPath CLI (`uip`)
2
+
3
+ A command-line interface tool for interacting with UiPath Cloud services. The CLI provides authentication, session management, and a plugin system for extending functionality with additional tools.
4
+
5
+ ## Installation
6
+
7
+ ### Using npm
8
+
9
+ ```bash
10
+ npm install -g @uipath/cli
11
+ ```
12
+
13
+ ### Using bun
14
+
15
+ ```bash
16
+ bun install -g @uipath/cli
17
+ ```
18
+
19
+ After installation, the `uip` command will be available globally.
20
+
21
+ ## Quick Start
22
+
23
+ 1. **Login to UiPath Cloud**
24
+ ```bash
25
+ uip login
26
+ ```
27
+
28
+ 2. **Check your login status**
29
+ ```bash
30
+ uip login-status
31
+ ```
32
+
33
+ 3. **View available commands**
34
+ ```bash
35
+ uip --help
36
+ ```
37
+
38
+ ## Commands
39
+
40
+ ### Authentication
41
+
42
+ #### `uip login`
43
+
44
+ Authenticate with UiPath Cloud using interactive OAuth login.
45
+
46
+ **Options:**
47
+ - `-f, --file <folder>` - Path to credentials folder (default: `.uipath`)
48
+ - `--authority <url>` - Custom authority URL
49
+ - `--client-id <id>` - Custom Client ID
50
+ - `-s, --scope <scopes>` - Custom scopes (space separated)
51
+ - `-t, --tenant <name>` - Tenant name (non-interactive mode)
52
+ - `--it, --interactive` - Interactively select tenant from list
53
+
54
+ **Examples:**
55
+ ```bash
56
+ # Basic interactive login
57
+ uip login
58
+
59
+ # Login with custom credentials folder
60
+ uip login -f /path/to/my-folder
61
+
62
+ # Login with specific tenant
63
+ uip login -t my-tenant-name
64
+
65
+ # Interactive tenant selection
66
+ uip login --interactive
67
+ ```
68
+
69
+ #### `uip login-status`
70
+
71
+ Display current login status and session information.
72
+
73
+ **Options:**
74
+ - `-f, --file <folder>` - Path to credentials folder (default: `.uipath`)
75
+
76
+ **Example:**
77
+ ```bash
78
+ uip login-status
79
+ ```
80
+
81
+ **Output:**
82
+ ```
83
+ ✅ Logged in
84
+ Organization ID: abc123...
85
+ Base URL: https://cloud.uipath.com
86
+ ```
87
+
88
+ ### Tool Management
89
+
90
+ The CLI supports a plugin system that allows you to extend functionality by installing additional tools.
91
+
92
+ #### `uip tools installed`
93
+
94
+ List all currently installed tools.
95
+
96
+ **Example:**
97
+ ```bash
98
+ uip tools installed
99
+ ```
100
+
101
+ **Output:**
102
+ ```
103
+ 🔧 Installed Tools:
104
+
105
+ ✓ automation-tool v1.0.0
106
+ Command: uip automation
107
+ Automate workflows and processes
108
+ ```
109
+
110
+ #### `uip tools search [query]`
111
+
112
+ Search for available tools in the configured registry.
113
+
114
+ **Example:**
115
+ ```bash
116
+ # Search for tools
117
+ uip tools search automation
118
+
119
+ # Interactive search (prompts for query)
120
+ uip tools search
121
+ ```
122
+
123
+ **Output:**
124
+ ```
125
+ 🔍 Searching for 'automation'...
126
+
127
+ 📦 Found: @uipath/automation-tool (v1.0.0)
128
+ Description: Automate workflows and processes
129
+ Publisher: uipath
130
+
131
+ To install: uip tools install <package-name>
132
+ ```
133
+
134
+ #### `uip tools install <package-name>`
135
+
136
+ Install a tool from the registry.
137
+
138
+ **Example:**
139
+ ```bash
140
+ uip tools install @uipath/automation-tool
141
+ ```
142
+
143
+ **Output:**
144
+ ```
145
+ 📦 Installing '@uipath/automation-tool'...
146
+ ✅ Successfully installed @uipath/automation-tool
147
+ ```
148
+
149
+ ## Getting Help
150
+
151
+ - View all available commands: `uip --help`
152
+ - View help for a specific command: `uip <command> --help`
153
+ - View version: `uip --version`
154
+
155
+ ## Troubleshooting
156
+
157
+ ### Not logged in error
158
+
159
+ If you see `❌ Not logged in`, run `uip login` to authenticate.
160
+
161
+ ### Tool not found after installation
162
+
163
+ After installing a new tool with `uip tools install`, you may need to restart your terminal or CLI session for the tool to become available.
164
+
165
+ ### Authentication issues
166
+
167
+ If you're having trouble logging in, try:
168
+ 1. Check your internet connection
169
+ 2. Verify your credentials
170
+ 3. Use `uip login --interactive` to manually select your tenant
171
+
172
+ ## For Developers
173
+
174
+ ### Development Setup
175
+
176
+ To work on the CLI locally:
177
+
178
+ ```bash
179
+ # Install dependencies
180
+ bun install
181
+
182
+ # Run in development mode
183
+ bun run index.ts
184
+
185
+ # Build the project
186
+ bun run build
187
+
188
+ # Run tests
189
+ bun test
190
+ ```
191
+
192
+ ### Contributing
193
+
194
+ For bug reports and feature requests, please visit the [GitHub repository](https://github.com/UiPath/uipcli).
195
+