Skip to content

Commit 7956415

Browse files
feat(chore): support arc as an additional CLI entry point (#2269)
* feat(chore): support arc as an additional CLI entry point GH-2268 * docs(cli): add the entry point through arc GH-2268 * docs(cli): add the arc entry point GH-2268 * docs(cli): add the 'arc' entry point of CLI GH-2268 * docs(cli): add the 'arc' entry point of CLI GH-2268
1 parent f2102cb commit 7956415

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

packages/cli/README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,40 @@ To install sourceloop-cli, run
99
```shell
1010
npm install @sourceloop/cli
1111
```
12+
Once the above command is executed, you will be able to access the CLI commands directly from your terminal. You can use either `sl` or `arc` as shorthand to run any of the `sourceloop` commands listed below. A sample usage is provided for reference:
1213

1314
## Usage
1415

1516
<!-- usage -->
1617
```sh-session
1718
$ npm install -g @sourceloop/cli
18-
$ sl COMMAND
19+
$ sl COMMAND or arc COMMAND
1920
running command...
20-
$ sl (-v|--version|version)
21+
$ sl (-v|--version|version) or arc (-v|--version|version)
2122
@sourceloop/cli/9.2.3 linux-x64 node-v18.20.5
22-
$ sl --help [COMMAND]
23+
$ sl --help [COMMAND] or arc --help [COMMAND]
2324
USAGE
24-
$ sl COMMAND
25+
$ sl COMMAND or arc COMMAND
2526
...
2627
```
2728
<!-- usagestop -->
2829

2930
## Commands
3031

3132
<!-- commands -->
32-
* [`sl autocomplete [SHELL]`](#sl-autocomplete-shell)
33+
* [`sl autocomplete [SHELL]`](#sl-autocomplete-shell)
34+
3335
* [`sl cdk`](#sl-cdk)
36+
3437
* [`sl extension [NAME]`](#sl-extension-name)
38+
3539
* [`sl help [COMMAND]`](#sl-help-command)
40+
3641
* [`sl microservice [NAME]`](#sl-microservice-name)
42+
3743
* [`sl scaffold [NAME]`](#sl-scaffold-name)
38-
* [`sl update`](#sl-update)
44+
45+
* [`sl update`](#sl-update)
3946

4047
## `sl autocomplete [SHELL]`
4148

@@ -53,8 +60,11 @@ OPTIONS
5360
5461
EXAMPLES
5562
$ sl autocomplete
63+
5664
$ sl autocomplete bash
65+
5766
$ sl autocomplete zsh
67+
5868
$ sl autocomplete --refresh-cache
5969
```
6070

@@ -203,4 +213,4 @@ OPTIONS
203213
```
204214

205215
_See code: [src/commands/update.ts](https://github.com/sourcefuse/loopback4-microservice-catalog/blob/v9.2.3/src/commands/update.ts)_
206-
<!-- commandsstop -->
216+
<!-- commandsstop -->

packages/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "9.2.3",
44
"description": "Custom ARC CLI.",
55
"bin": {
6-
"sl": "./bin/run"
6+
"arc": "./bin/run",
7+
"sl":"./bin/run"
78
},
89
"files": [
910
"/oclif.manifest.json",

0 commit comments

Comments
 (0)