imdone-cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,47 @@
1
+ # Imdone with Jira - License Agreement
2
+
3
+ Copyright (c) 2025 Innobuilt Software LLC. All rights reserved.
4
+
5
+ This software and associated documentation files (the “Software”) is licensed, not sold. By installing, copying, or using Imdone with Jira, you agree to be bound by the terms of this License Agreement.
6
+
7
+ ## 1. Grant of License
8
+
9
+ You are granted a non-exclusive, non-transferable license to use the Software solely for personal or internal business use, subject to the following conditions:
10
+
11
+ - A valid license key is required to activate and use the Software.
12
+ - The Software may be installed on one or more machines, depending on the terms of your license.
13
+ - You may not sublicense, rent, lease, or otherwise distribute the Software.
14
+
15
+ ## 2. Restrictions
16
+
17
+ You may not:
18
+
19
+ - Reverse engineer, decompile, disassemble, or attempt to derive the source code of the Software.
20
+ - Modify or create derivative works of the Software.
21
+ - Share, publish, or otherwise disclose your license key.
22
+ - Use the Software in violation of any applicable laws or regulations.
23
+
24
+ ## 3. License Validation
25
+
26
+ The Software may perform periodic online or offline validation of your license key to ensure compliance with this license. If validation fails, the Software may be disabled.
27
+
28
+ ## 4. Ownership
29
+
30
+ All rights, title, and interest in and to the Software are owned by Jesse Piascik. This license does not grant you any rights to the source code or any intellectual property owned by the licensor, except as explicitly stated.
31
+
32
+ ## 5. Termination
33
+
34
+ This license is effective until terminated. Failure to comply with any of its terms will result in automatic termination. Upon termination, you must destroy all copies of the Software.
35
+
36
+ ## 6. No Warranty
37
+
38
+ The Software is provided “as is” without warranty of any kind. In no event shall the author be liable for any damages arising from the use of the Software.
39
+
40
+ ## 7. Support and Updates
41
+
42
+ Support and updates are not guaranteed. Any updates provided will be governed by this license unless accompanied by a separate license.
43
+
44
+ ---
45
+
46
+ For licensing questions or enterprise options, contact: support@imdone.io
47
+ For more information, visit: [imdone.io](https://imdone.io)
package/README.md ADDED
@@ -0,0 +1,136 @@
1
+ # Imdone CLI
2
+
3
+ Imdone CLI is a command-line tool that enables seamless integration between Imdone and Jira. It allows you to pull issues from Jira to your Imdone board and push changes back to Jira, making project management easier and more efficient.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g imdone-cli
9
+ ```
10
+
11
+ Or if you prefer to use it locally in a project:
12
+
13
+ ```bash
14
+ npm install --save-dev imdone-cli
15
+ ```
16
+
17
+ ## Prerequisites
18
+
19
+ - Node.js v14 or higher
20
+ - A valid Imdone license
21
+ - Jira account with API access
22
+
23
+ ## Commands
24
+
25
+ ### Initialize Jira Integration
26
+
27
+ Set up your project for Jira integration:
28
+
29
+ ```bash
30
+ imdone init
31
+ ```
32
+
33
+ Options:
34
+ - `--name`: Project name
35
+ - `--jira-url`: Jira URL (e.g., https://your-domain.atlassian.net)
36
+ - `--jira-project-key`: Jira project key (e.g., ABC)
37
+ - `--jira-username`: Jira username (email)
38
+ - `--jira-api-token`: Jira API token
39
+ - `--jql`: JQL query to fetch issues (e.g., "Sprint in openSprints() and status != 'Done'")
40
+
41
+ Example:
42
+ ```bash
43
+ imdone init --name "My Project" --jira-url "https://mycompany.atlassian.net" --jira-project-key "PROJ"
44
+ ```
45
+
46
+ ### Pull Issues from Jira
47
+
48
+ Pull issues from Jira to your local Imdone board:
49
+
50
+ ```bash
51
+ imdone pull
52
+ ```
53
+
54
+ This command fetches issues from Jira based on your JQL query and adds them to your Imdone board.
55
+
56
+ ### Push Changes to Jira
57
+
58
+ Push updates you've made in Imdone back to Jira:
59
+
60
+ ```bash
61
+ imdone push
62
+ ```
63
+
64
+ This command synchronizes changes you've made to issues in Imdone (like status changes or updates to descriptions) back to your Jira project.
65
+
66
+ ### License Management
67
+
68
+ Enter or update your Imdone license:
69
+
70
+ ```bash
71
+ imdone license --token YOUR_LICENSE_TOKEN
72
+ ```
73
+
74
+ Options:
75
+ - `--token`: License token
76
+ - `--show`: Display current license information
77
+
78
+ Examples:
79
+ ```bash
80
+ # Enter a license token
81
+ imdone license
82
+
83
+ # Provide a license token directly
84
+ imdone license --token eyJhbGciOiJSUzI...
85
+
86
+ # View current license information
87
+ imdone license --show
88
+ ```
89
+
90
+ ## Project Structure
91
+
92
+ When initializing a project, Imdone CLI will:
93
+
94
+ 1. Check if you're in a git repository
95
+ 2. Create or update the .env file for storing credentials
96
+ 3. Add necessary entries to .gitignore
97
+ 4. Set up the Imdone project configuration
98
+
99
+ ## Environment Variables
100
+
101
+ The following environment variables are used by Imdone CLI:
102
+
103
+ - `JIRA_USERNAME`: Your Jira username/email
104
+ - `JIRA_TOKEN`: Your Jira API token
105
+ - `IMDONE_LICENSE`: Your Imdone license token
106
+
107
+ These are typically stored in a `.env` file in your project root.
108
+
109
+ ## Troubleshooting
110
+
111
+ ### Invalid License
112
+
113
+ If you see the error "Invalid or expired license", please check that:
114
+
115
+ 1. Your license token is valid
116
+ 2. Your license hasn't expired
117
+ 3. The license is properly set in your environment variables
118
+
119
+ You can view your license details with:
120
+ ```bash
121
+ imdone license --show
122
+ ```
123
+
124
+ ### Connection Issues
125
+
126
+ If you're having trouble connecting to Jira, verify:
127
+
128
+ 1. Your Jira URL is correct
129
+ 2. Your Jira credentials are valid
130
+ 3. You have the necessary permissions in Jira
131
+
132
+ ## Support
133
+
134
+ If you encounter any issues or need assistance, please contact support@imdone.io
135
+
136
+