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.1.4.tar.gz
.
File metadata
- Download URL: territory-1.1.4.tar.gz
- Upload date:
- Size: 228.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec77adcd3da58333ea2be7a460021258f0301d656e8a87cf03835ee7864c12d1 |
|
MD5 | 14d17d9daf7e7f8931d52137d27a712f |
|
BLAKE2b-256 | ac5169a17f50281443d60d6d054a608d59affb995560998e08dd630c021a9b58 |
File details
Details for the file territory-1.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: territory-1.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0feb170eee1f6d2e3a679d69c8c869a364c0f5bcf4fed5f6f464b1809a0ee1fe |
|
MD5 | c444a1e0bb3be1f8cd9bc780cb3d416a |
|
BLAKE2b-256 | 9b39c7ad15852bfafc60b359eb8a3a667f84fa2f5c876ef1ac0940cb843c439a |