CodeEdit CLI
codeedit
is a set of command line tools that ship with CodeEdit which allow users to open and interact with editor via the command line.
Installation
Download
Download the universal binary from the latest release, extract the zip and move it to /usr/local/bin/
.
Build locally
swift build -c release --arch arm64 --arch x86_64
sudo cp -f .build/apple/Products/Release/codeedit-cli /usr/local/bin/codeedit-cli
Note that you must have
CodeEdit
installed in aRelease
configuration. ADebug
build ofCodeEdit
will not work.
Documentation
open
Opens CodeEdit.
Folder
codeedit-cli ./my-project
File
codeedit-cli index.html
From an optional line
codeedit-cli index.html:50
From an optional line and column
codeedit-cli index.html:50:50
version
Outputs the version of CodeEdit and CodeEdit CLI Tools.
codeedit-cli version
new-window
(not available yet)
Opens a new window.
codeedit-cli new-window
--goto
(not available yet)
Opens a file at a line and optional position.
Documentation coming soon.
list-extensions
(not available yet)
Documentation coming soon.
install
(not available yet)
Install an extension.
Documentation coming soon.
uninstall
(not available yet)
Uninstall an extension.
Documentation coming soon.
activate
(not available yet)
Activate an extension.
Documentation coming soon.
deactivate
(not available yet)
Deactivate an extension.
Documentation coming soon.