Client for territory.dev
Project description
Uploading sources with the territory.dev CLI client
Watch a video walkthrough:
1. Clone a git repository and generate compile_commands.json
See examples of how compile_commands.json
can be generated
here.
2. Add a new repo in the territory.dev interface
Go to settings,
find the "Add" button under Repositories,
enter repository details and choose the "Uploaded" option,
create the new repository by clicking "Save".
3. Install the client
Install with pip within a Python virtualenv:
pip install territory
4. Run the upload
In the directory containing compile_commands.json
run
territory upload --repo-id $YOUR_REPOSITORY_ID
The specific command containing the repository ID can be found in repository settings under "Recent builds".
First time you use the client, we will open the web brower and you will be asked to authenticate the client in the web app.
Once the upload finishes, indexing will start.
Non-interactive authentication
In case you need to run the upload in an environment where the browser authentication flow is not suitable (e.g. a CI build), you can provide the necessary token manually.
- In "Settings" go to to Upload tokens.
- Create a new token and save its text to a file.
- Point the CLI to the file by adding the
--upload-token-path
, e.g.:territory upload \ --upload-token-path /path/to/token \ --repo-id $YOUR_REPOSITORY_ID
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file territory-1.2.3.tar.gz
.
File metadata
- Download URL: territory-1.2.3.tar.gz
- Upload date:
- Size: 230.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b26bc18ae09163fe5942f919634faf7ad0337a10763c48700f600acdaa5e824 |
|
MD5 | 78ce5f0f67a45663b44e3d9edac515bf |
|
BLAKE2b-256 | 8e3e6cac89a664b352b4393e63c112e20833f2a33fcb882a3f04e61cf6d1a1c3 |
File details
Details for the file territory-1.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: territory-1.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c6012876e552883dc5e9dd67ca0720946d49c0bf91c1dc0077dd48efca7cb62 |
|
MD5 | cf7bd49b68c88c1f3b0accd79aa8b7f0 |
|
BLAKE2b-256 | bbfb8f6e22f84d7f814e00da9d73f9f50df8a24de0d869303df561adf9d9d5b9 |