0

I've navigated to a workspace. I am running the Sencha Cmd commands as outlined in the two documents: Creating Packages and Sencha Cmd Packages. I have also run the help command for the below command. It is my belief the command is correct; however, I am getting an error:

Missing required arguments
...
name (The name of the package to generate)
...

Here's the command - name included:

sencha generate package --type code dog-bites

What am I missing? Is the command complaining about the hyphenated name?

DavidPostill
  • 7,734
  • 9
  • 41
  • 60
Thomas
  • 6,291
  • 6
  • 40
  • 69

2 Answers2

2

Sure, no worries.

The Sencha docs provide:

sencha -sdk /path/to/touch generate app MyApp

to generate an app name MyApp. Instead of providing the /path/to/touch, try changing directories to the directory on your file system where you downloaded the sencha sdk, and run the generate app command directly from that folder instead. You'll need to provide the path to the directory you want to generate the app instead. Something like this...

From your command line,

cd /path/to/your/sencha/sdk

Then, to generate your app,

sencha generate app Myapp /path/to/directory/to/generate/app
Mike P
  • 419
  • 1
  • 7
  • 16
  • I'll give that a shot, later, and see. Once I've got the time to roll around to it, I will take a shot (if it it works, I'll accept your answer) – Thomas Apr 20 '15 at 16:58
0

If you are trying to generate a package with that specific command then you must -

  1. First create/generate a sencha workspace. Or be inside the same parent directory for an existing sencha application. sencha generate workspace

  2. Once you've done the above you can easily run that command: sencha generate package --type code dog-bites

Suggested reading- Intro to Sencha CMD

Yellen
  • 1,785
  • 16
  • 35
  • From OP, "I've navigated to a workspace". It is a valid Sencha Cmd workspace. I'll keep playing around, though, thank you for the answer. – Thomas Apr 20 '15 at 16:56
  • I'm not able to recreate it at all. The only time I get that error is when I don't pass a name for the package. – Yellen Apr 20 '15 at 17:02
  • Have you tried just running sencha generate package test ? – Yellen Apr 20 '15 at 19:48