CLI
Biscuit provides a command line interface (CLI) to interact with the main application. The CLI is a powerful tool that allows you to perform a wide range of operations, such as managing extensions, files, and settings.
-
General Commands
General commands to manage the application, files, settings, and more
-
Editor Commands
Commands to manage the editor, files, settings, and more
-
Git Commands
Commands to manage Git repositories, branches, commits, and more
-
Extension Commands
Commands to manage extensions, install, update, and more
Overview
cli(path=None, dev=False)
Biscuit CLI
Source code in src/biscuit/cli/cli.py
docs()
Open biscuit documentation
This command will open the biscuit documentation in the default browser.
Example
biscuit doc
run()
setup()
Setup the CLI commands
Loads all the commands from the cli extensions and registers them
Editor Commands
goto(path=None, linecol=None)
Open a file and go to a specific location
This command will open a file and go to a specific location.
Example
biscuit goto path/to/file line
biscuit goto path/to/file line:column
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
The path to the file. Defaults to None. |
None
|
linecol
|
str
|
The line and column to go to. Defaults to None. |
None
|
Source code in src/biscuit/cli/editor.py
open(path=None)
Open a file or folder in the editor
This command will open a file or folder in the editor.
Example
biscuit open path/to/file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
The path to the file or folder. Defaults to None. |
None
|
Source code in src/biscuit/cli/editor.py
Git Commands
clone(url)
Clone & open a git repository in Biscuit
This command will clone a git repository and open it in a new window.
Example
biscuit clone
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
The url of the git repository |
required |
Source code in src/biscuit/cli/git.py
diff(file1=None, file2=None)
Diff two files
This command will open a new window with the diff of the two files.
Example
biscuit diff path/to/file path/to/second/file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file1
|
str
|
The path to the first file. Defaults to None. |
None
|
file2
|
str
|
The path to the second file. Defaults to None. |
None
|
Source code in src/biscuit/cli/git.py
Extension Commands
create()
Create a new extension from template
This command will create a new extension from the template
NOTE: This command is not yet implemented
ext()
Commands for managing biscuit extensions
This command group allows you to manage biscuit extensions.
Example
biscuit ext list
biscuit ext install extension_name
biscuit ext uninstall extension_name
Source code in src/biscuit/cli/extensions.py
info(name)
Show information about an extension by name
Example
biscuit ext info extension_name
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the extension |
required |
Source code in src/biscuit/cli/extensions.py
install(name)
Install an extension by name
Example
biscuit ext install extension_name
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the extension |
required |
Source code in src/biscuit/cli/extensions.py
list_ext(user, installed)
List all extensions or installed or filter by user
Example
biscuit ext list
biscuit ext list -u user
biscuit ext list -i
Parameters:
Name | Type | Description | Default |
---|---|---|---|
user
|
str
|
Filter by user |
required |
installed
|
bool
|
Show installed extensions |
required |
Source code in src/biscuit/cli/extensions.py
test()
Test the extension
This command will test your custom extension
NOTE: This command is not yet implemented
uninstall(name)
Uninstall an extension by name
Example
biscuit ext uninstall extension_name
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the extension |
required |