@ant0/cli 0.0.0-stage → 0.3.22-beta.3
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/LICENSE +28 -0
- package/README.md +97 -2
- package/dist/api/generated/schema.d.ts +11600 -0
- package/dist/api/generated/schema.js +6 -0
- package/dist/api/index.d.ts +219 -0
- package/dist/api/index.js +342 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.js +12 -0
- package/dist/bulk.d.ts +38 -0
- package/dist/bulk.js +66 -0
- package/dist/commands/account.d.ts +48 -0
- package/dist/commands/account.js +337 -0
- package/dist/commands/api-keys.d.ts +5 -0
- package/dist/commands/api-keys.js +310 -0
- package/dist/commands/browsers.d.ts +4 -0
- package/dist/commands/browsers.js +165 -0
- package/dist/commands/daemon.d.ts +15 -0
- package/dist/commands/daemon.js +202 -0
- package/dist/commands/events.d.ts +8 -0
- package/dist/commands/events.js +81 -0
- package/dist/commands/extensions.d.ts +4 -0
- package/dist/commands/extensions.js +74 -0
- package/dist/commands/profiles.d.ts +36 -0
- package/dist/commands/profiles.js +552 -0
- package/dist/commands/proxies.d.ts +23 -0
- package/dist/commands/proxies.js +170 -0
- package/dist/commands/sync.d.ts +4 -0
- package/dist/commands/sync.js +435 -0
- package/dist/commands/team.d.ts +7 -0
- package/dist/commands/team.js +403 -0
- package/dist/commands/trash.d.ts +10 -0
- package/dist/commands/trash.js +54 -0
- package/dist/commands/workspace.d.ts +10 -0
- package/dist/commands/workspace.js +56 -0
- package/dist/context.d.ts +111 -0
- package/dist/context.js +300 -0
- package/dist/errors.d.ts +27 -0
- package/dist/errors.js +96 -0
- package/dist/format.d.ts +23 -0
- package/dist/format.js +85 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +35 -0
- package/dist/inventory.d.ts +50 -0
- package/dist/inventory.js +202 -0
- package/dist/management-transport.d.ts +3 -0
- package/dist/management-transport.js +90 -0
- package/dist/native-terminal.d.ts +50 -0
- package/dist/native-terminal.js +228 -0
- package/dist/program.d.ts +10 -0
- package/dist/program.js +185 -0
- package/dist/runtime-types.d.ts +20 -0
- package/dist/runtime-types.js +2 -0
- package/dist/set.d.ts +15 -0
- package/dist/set.js +87 -0
- package/dist/shared/parse-error.d.ts +6 -0
- package/dist/shared/parse-error.js +8 -0
- package/dist/shared/proxy-parse.d.ts +42 -0
- package/dist/shared/proxy-parse.js +238 -0
- package/dist/shared/proxy-types.d.ts +21 -0
- package/dist/shared/proxy-types.js +2 -0
- package/dist/shared/recovery-code.d.ts +7 -0
- package/dist/shared/recovery-code.js +53 -0
- package/dist/version.d.ts +8 -0
- package/dist/version.js +18 -0
- package/licenses/README.md +5 -0
- package/licenses/THIRD_PARTY_NOTICES +96 -0
- package/package.json +63 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, RENEWBYTE LABS LTD
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://ant0.link"><img src=".github/assets/banner.png" alt="Ant0 command line" width="100%"></a>
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="LICENSE"><img alt="Licence: BSD-3-Clause" src="https://img.shields.io/badge/licence-BSD--3--Clause-49d158?labelColor=131714"></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@ant0/cli"><img alt="npm" src="https://img.shields.io/npm/v/@ant0/cli?color=49d158&labelColor=131714"></a>
|
|
8
|
+
<a href="https://docs.ant0.link/cli"><img alt="Docs" src="https://img.shields.io/badge/docs-docs.ant0.link-49d158?labelColor=131714"></a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
# Ant0 CLI
|
|
12
|
+
|
|
13
|
+
**The `ant0` command line. Start, stop and list Ant0 browser profiles from a shell.**
|
|
14
|
+
|
|
15
|
+
When a profile starts, `ant0` prints its DevTools WebSocket, so Playwright or any other CDP client
|
|
16
|
+
can connect. The same tool also runs the [Ant0 MCP server](https://github.com/Ant0-Browser/ant0-mcp)
|
|
17
|
+
(`ant0 mcp serve --stdio`).
|
|
18
|
+
|
|
19
|
+
> Part of [Ant0](https://ant0.link), a browser for automation and agents. The CLI talks to the Ant0
|
|
20
|
+
> app on your computer. The app is free for 5 profiles and needs a free account.
|
|
21
|
+
|
|
22
|
+
## Requirements
|
|
23
|
+
|
|
24
|
+
- The Ant0 app, installed, running and signed in: [download](https://ant0.link/download). It runs on
|
|
25
|
+
Windows 10 or 11 (64-bit) and 64-bit Ubuntu 24.04 or Debian 13 or newer.
|
|
26
|
+
- Node.js 24 or newer, to run the npm package. The Ant0 app also includes an `ant0` command that needs no separate Node.js.
|
|
27
|
+
|
|
28
|
+
The CLI doesn't start the app or sign in for you. `ant0 daemon start` starts the background daemon
|
|
29
|
+
(`ant0d`) that the app installs, and `ant0 login` signs in from a terminal.
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install --global @ant0/cli
|
|
35
|
+
ant0 --version
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The npm package version follows the Ant0 app release it was built from. `ant0 daemon start` and
|
|
39
|
+
`ant0 daemon status` warn when the running daemon's major.minor version differs from the CLI's.
|
|
40
|
+
`ant0 daemon start` looks for the daemon in `ANT0D_BIN`, then on `PATH`, then where the app installs it.
|
|
41
|
+
|
|
42
|
+
## Quickstart
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
ant0 profiles ls
|
|
46
|
+
ant0 profiles start "Shop DE" # prints the DevTools WebSocket
|
|
47
|
+
ant0 profiles stop "Shop DE"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
`ant0` finds the app through the Ant0 data folder. Use `--home` (or `ANT0_HOME`) for a different
|
|
51
|
+
folder, and `--port` (or `ANT0D_PORT`) for a different port. Add `--json` for machine-readable output.
|
|
52
|
+
|
|
53
|
+
To give a script less access than the app's own token, use an API key with only the scopes it needs:
|
|
54
|
+
`--credential-file <path>`, or the `ANT0_API_KEY` environment variable.
|
|
55
|
+
|
|
56
|
+
## Commands
|
|
57
|
+
|
|
58
|
+
| Command | What it does |
|
|
59
|
+
| --------------------------------------- | ------------------------------------------------------- |
|
|
60
|
+
| `daemon` | Start, stop and inspect the local daemon |
|
|
61
|
+
| `browsers` | Installed Ant0 Browser releases |
|
|
62
|
+
| `profiles` | Create, edit, start and stop browser profiles |
|
|
63
|
+
| `trash` | Profiles waiting in the trash |
|
|
64
|
+
| `proxies` | Shared proxies |
|
|
65
|
+
| `extensions` | The extension library shared by profiles |
|
|
66
|
+
| `events` | Tail the event stream |
|
|
67
|
+
| `login`, `logout`, `account`, `licence` | Sign in and out, and show the account and licence state |
|
|
68
|
+
| `workspace` | List and select account workspaces |
|
|
69
|
+
| `sync` | Encrypted profile sync and transfers |
|
|
70
|
+
| `team` | Folders, members and invitations |
|
|
71
|
+
| `api-keys`, `key-status` | Manage delegated API keys and read their status |
|
|
72
|
+
| `mcp` | Serve the local MCP server (`ant0 mcp serve --stdio`) |
|
|
73
|
+
|
|
74
|
+
Run `ant0 <command> --help` for the subcommands and options.
|
|
75
|
+
|
|
76
|
+
## Documentation
|
|
77
|
+
|
|
78
|
+
- [CLI and MCP guide](https://docs.ant0.link/cli)
|
|
79
|
+
- [API reference](https://docs.ant0.link/api)
|
|
80
|
+
- [All docs](https://docs.ant0.link) · [Changelog](https://ant0.link/changelog)
|
|
81
|
+
|
|
82
|
+
## Support
|
|
83
|
+
|
|
84
|
+
Questions and bugs go in [Issues](../../issues). For your account or billing, use the
|
|
85
|
+
[contact page](https://ant0.link/contact).
|
|
86
|
+
|
|
87
|
+
## Security
|
|
88
|
+
|
|
89
|
+
Please don't report security problems in public issues. See the organisation's
|
|
90
|
+
[security policy](https://github.com/Ant0-Browser/.github/blob/main/SECURITY.md), or use
|
|
91
|
+
**Security → Report a vulnerability** on this repository.
|
|
92
|
+
|
|
93
|
+
## Licence
|
|
94
|
+
|
|
95
|
+
BSD-3-Clause. See [LICENSE](LICENSE).
|
|
96
|
+
|
|
97
|
+
The Ant0 app, the Ant0 Browser engine and the Ant0 cloud service are proprietary and not covered by
|
|
98
|
+
this licence.
|