A powerful CLI tool for managing workflows across multiple Tines tenants.
- Clone the Repository
$> git clone https://github.com/1Doomdie1/Tines-CLI $> cd tines-cli
- Install Dependencies
$> pip install -r requirements.txt
- Set Up the CLI
$> pip install --editable .
Tenant Management
Command | Description |
---|---|
add |
Add a new tenant. |
delete |
Remove an existing tenant. |
checkout |
Switch to a specific tenant. |
info |
Display tenant information. |
list |
View all tenants. |
Workflow Management
Command | Description |
---|---|
list |
View workflows. |
info |
Get details of a specific workflow. |
create |
Create a new workflow. |
update |
Modify an existing workflow. |
import |
Import a workflow to remote tenant. |
export |
Export a workflow to a file. |
delete |
Remove a workflow. |
exports |
Get a list of local exports. |
batch-delete |
Delete multiple workflows in one go. |
Teams Management
Command | Description |
---|---|
list |
View teams. |
info |
Get team details. |
create |
Create team. |
update |
Update team. |
delete |
Delete team. |
member |
Manage team members. |
Members Management (Team)
Command | Description |
---|---|
list |
View members of a team. |
remove |
Remove member from team. |
invite |
Invite member to team. |
Things you'll need:
- A Tines API key
- Your tenant's domain (part of the URL):
URL = https://<YOUR_TENANT_ID>.tines.com/ DOMAIN = <YOUR_TENANT_ID>
Add and Set a Default Tenant
$> tines tenant add cool-domain-1234 qwertyuio-123 --checkout
[14:40:29] Tenant 'cool-domain-1234' added successfully
Now using 'cool-domain-1234' tenant
Output
To create a workflow, you'll need the team_id
- List Teams
$> tines team list ┏━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃ ID ┃ Name ┃ ┡━━━━━━━╇━━━━━━━━━━━━━━━┩ │ 12345 │ My Cool Team │ └───────┴───────────────┘
- Create Workflow
$> tines workflow create "My cool story name" --team-id=12345 [14:45:44] Workflow 'My cool story name' has been created successfully Link: https://cool-domain-1234.tines.com/stories/56789
At any point the --help
flag can be used to show what args
, options
or flags
can be used
Contributions are welcome! Feel free to submit a pull request or raise an issue.