# CLI reference

> Every command and flag of the lumen command line.

Source: https://docs.go-lumen.ai/es/reference/cli

Every command and flag of the lumen command line.

lumen talks to a Lumen API. Its resource commands are discovered from the server at runtime, so new kinds and fields appear without a CLI release.

Resource commands are unavailable: discovery: Get "http://127.0.0.1:9/api?timeout=32s": dial tcp 127.0.0.1:9: connect: connection refused

-   [lumen connect](https://docs.go-lumen.ai/es/reference/cli/connect.md)
    
    Add a connection (a Connector) to the workspace.
    
-   [lumen license](https://docs.go-lumen.ai/es/reference/cli/license.md)
    
    Show the license of this Lumen installation
    
-   [lumen license show](https://docs.go-lumen.ai/es/reference/cli/license-show.md)
    
    Show the license this installation runs under: whether it is valid, in its grace period or expired, how many seats it allows and how many are used.
    
-   [lumen context](https://docs.go-lumen.ai/es/reference/cli/context.md)
    
    List, switch and edit contexts (server, workspace and who is signed in)
    
-   [lumen context current](https://docs.go-lumen.ai/es/reference/cli/context-current.md)
    
    Print the current context
    
-   [lumen context delete](https://docs.go-lumen.ai/es/reference/cli/context-delete.md)
    
    Delete a context and its token
    
-   [lumen context list](https://docs.go-lumen.ai/es/reference/cli/context-list.md)
    
    List contexts
    
-   [lumen context set](https://docs.go-lumen.ai/es/reference/cli/context-set.md)
    
    Create or change a context (--server, --workspace, OIDC settings)
    
-   [lumen context use](https://docs.go-lumen.ai/es/reference/cli/context-use.md)
    
    Make a context current
    
-   [lumen login](https://docs.go-lumen.ai/es/reference/cli/login.md)
    
    Sign in through your browser, store the token, and make the context (server and workspace) current.
    
-   [lumen logout](https://docs.go-lumen.ai/es/reference/cli/logout.md)
    
    Forget the current context's token
    
-   [lumen version](https://docs.go-lumen.ai/es/reference/cli/version.md)
    
    Print the CLI version
    

## Global flags

Every command takes these.

| Flag | Short | Value | Description |
| --- | --- | --- | --- |
| `--config` |  | string | path to the lumen contexts file (default "~/.config/lumen/config.yaml") |
| `--context` |  | string | context to use instead of the current one |
| `--org` |  | string | organization to sign in to, when you belong to several (default: asked) |
| `--refresh` |  |  | re-read discovery and schemas from the server instead of the cache |
| `--server` |  | string | Lumen URL, overriding the context's (or set LUMEN\_SERVER) |
| `--token` |  | string | bearer token, overriding the stored one (or set LUMEN\_TOKEN) |
| `--verbose` |  |  | show the server's own error text under a plain-language one |
| `--version` | `-v` |  | version for lumen |
| `--workspace` | `-w` | string | workspace (your tenant's name), overriding the context's |
