Usage
| Option | Default | Description |
|---|---|---|
-s, --server <url> | http://localhost:3000 | Toolshed server URL |
How it works
- The CLI starts a temporary HTTP server on a random local port
- Opens your browser to the Toolshed server’s
/api/auth/cli-loginendpoint, passing the local callback URL - The server generates a user ID and session token, then redirects back to the CLI’s callback
- The CLI saves the credentials to
~/.toolshed/config.jsonand exits
Example
Config file
After login, credentials are stored in~/.toolshed/config.json:
toolshed serve, toolshed connect, and toolshed status.
If already logged in
Runninglogin again will print the current session and exit. To log in to a different server, delete ~/.toolshed/config.json first.