@solidactions/cli 0.2.0 → 0.2.3

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/README.md CHANGED
@@ -39,6 +39,7 @@ solidactions deploy <project-name> <path>
39
39
  | `schedule:set <project> <cron>` | Set a cron schedule for a workflow |
40
40
  | `schedule:list <project>` | List schedules for a project |
41
41
  | `schedule:delete <project> <id>` | Delete a schedule |
42
+ | `webhooks <project>` | List webhook URLs for a project |
42
43
 
43
44
  See [docs/cli.md](docs/cli.md) for full documentation.
44
45
 
@@ -259,7 +259,7 @@ async function deploy(projectName, sourcePath, options = {}) {
259
259
  process.exit(1);
260
260
  }
261
261
  const sourceDir = sourcePath ? path_1.default.resolve(sourcePath) : process.cwd();
262
- const environment = options.env || 'production';
262
+ const environment = options.env || 'dev';
263
263
  if (!fs_1.default.existsSync(sourceDir)) {
264
264
  console.error(chalk_1.default.red(`Source directory not found: ${sourceDir}`));
265
265
  process.exit(1);
@@ -35,8 +35,12 @@ async function envList(projectName, options = {}) {
35
35
  try {
36
36
  if (projectName) {
37
37
  // List project variable mappings
38
- console.log(chalk_1.default.blue(`Environment variables for project "${projectName}":`));
39
- const response = await axios_1.default.get(`${config.host}/api/v1/projects/${projectName}/variable-mappings`, {
38
+ const environment = options.env || 'dev';
39
+ const projectSlug = environment === 'production'
40
+ ? projectName
41
+ : `${projectName}-${environment}`;
42
+ console.log(chalk_1.default.blue(`Environment variables for project "${projectName}" (${environment}):`));
43
+ const response = await axios_1.default.get(`${config.host}/api/v1/projects/${projectSlug}/variable-mappings`, {
40
44
  headers: {
41
45
  'Authorization': `Bearer ${config.apiKey}`,
42
46
  'Accept': 'application/json',
@@ -164,7 +168,7 @@ async function envList(projectName, options = {}) {
164
168
  console.error(chalk_1.default.red('Authentication failed. Run "solidactions init <api-key>" to re-configure.'));
165
169
  }
166
170
  else if (error.response.status === 404) {
167
- console.error(chalk_1.default.red(projectName ? `Project "${projectName}" not found.` : 'Resource not found.'));
171
+ console.error(chalk_1.default.red(projectName ? `Project "${projectName}" not found for the specified environment.` : 'Resource not found.'));
168
172
  }
169
173
  else {
170
174
  console.error(chalk_1.default.red(`Failed: ${error.response.status}`), error.response.data);
@@ -31,7 +31,7 @@ async function envPull(projectName, options = {}) {
31
31
  console.error(chalk_1.default.red('Not initialized. Run "solidactions init <api-key>" first.'));
32
32
  process.exit(1);
33
33
  }
34
- const environment = options.env || 'production';
34
+ const environment = options.env || 'dev';
35
35
  // Build the project slug for lookup
36
36
  const projectSlug = environment === 'production'
37
37
  ? projectName
@@ -13,7 +13,7 @@ async function webhookList(projectName, options = {}) {
13
13
  console.error(chalk_1.default.red('Not initialized. Run "solidactions init <api-key>" first.'));
14
14
  process.exit(1);
15
15
  }
16
- const environment = options.env || 'production';
16
+ const environment = options.env || 'dev';
17
17
  const projectSlug = environment === 'production' ? projectName : `${projectName}-${environment}`;
18
18
  console.log(chalk_1.default.blue(`Webhooks for project "${projectName}"${environment !== 'production' ? ` (${environment})` : ''}:`));
19
19
  try {
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ const program = new commander_1.Command();
22
22
  program
23
23
  .name('solidactions')
24
24
  .description('SolidActions CLI - Deploy and manage workflow automation')
25
- .version('0.1.0');
25
+ .version('0.2.1');
26
26
  // =============================================================================
27
27
  // Authentication & Configuration
28
28
  // =============================================================================
@@ -55,7 +55,7 @@ program
55
55
  .description('Deploy a project to SolidActions')
56
56
  .argument('<project-name>', 'Project name (will be created if it doesn\'t exist)')
57
57
  .argument('[path]', 'Source directory to deploy (defaults to current directory)')
58
- .option('-e, --env <environment>', 'Target environment (production/staging/dev)', 'production')
58
+ .option('-e, --env <environment>', 'Target environment (production/staging/dev)', 'dev')
59
59
  .option('--create', 'Create environment project if it doesn\'t exist')
60
60
  .action((projectName, path, options) => {
61
61
  (0, deploy_1.deploy)(projectName, path, options);
@@ -154,7 +154,7 @@ program
154
154
  .command('env:pull')
155
155
  .description('Pull resolved environment variables to a local file')
156
156
  .argument('<project>', 'Project name')
157
- .option('-e, --env <environment>', 'Environment (production/staging/dev)', 'production')
157
+ .option('-e, --env <environment>', 'Environment (production/staging/dev)', 'dev')
158
158
  .option('-o, --output <file>', 'Output file path (defaults to .env or .env.{environment})')
159
159
  .option('-y, --yes', 'Skip confirmation for secrets')
160
160
  .action((project, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidactions/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "description": "SolidActions CLI - Deploy and manage workflow automation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {