Skip to content

CLI tool to manage workflows across multiple Tines tenants.

License

Notifications You must be signed in to change notification settings

1Doomdie1/Tines-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tines-CLI 🚀

A powerful CLI tool for managing workflows across multiple Tines tenants.


📥 Installation

  1. Clone the Repository
    $> git clone https://github.com/1Doomdie1/Tines-CLI
    $> cd tines-cli
  2. Install Dependencies
    $> pip install -r requirements.txt
  3. Set Up the CLI
    $> pip install --editable .

🛠️ Capabilities

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.

🔗 Connecting to Your Tenant

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

✍️ Creating a Workflow

To create a workflow, you'll need the team_id

  1. List Teams
    $> tines team list
    
    ┏━━━━━━━┳━━━━━━━━━━━━━━━┓
    ┃  ID   ┃     Name      ┃
    ┡━━━━━━━╇━━━━━━━━━━━━━━━┩
    │ 12345 │ My Cool Team  │
    └───────┴───────────────┘
  2. 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

📖 Help

At any point the --help flag can be used to show what args, options or flags can be used

❤️ Contributing

Contributions are welcome! Feel free to submit a pull request or raise an issue.

About

CLI tool to manage workflows across multiple Tines tenants.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages