-
Notifications
You must be signed in to change notification settings - Fork 24
Apigee 127 command line reference
This is the command reference for a127
, the command-line interface for Apigee 127. Note that the /bin/a127
command must be in your PATH. See the "Installation" section for details.
###project
Create and manage Apigee 127 projects on your local machine.
$ a127 project [options] [command]
Examples:
$ a127 project create
$ a127 project start
$ a127 project deploy
To print a list of valid options for a command:
$ a127 project [command] -h
Commands:
-
create - Creates a new Apigee 127 skeleton project populated with files from GitHub. See also "New Apigee 127 project structure" below.
-
start - Runs the main Node.js project file, app.js. The server automatically restarts when you make changes to the project.
Options:
-h, --help output usage information
-d, --debug start in debug mode
-m, --mock start in mock mode
-o, --open open in browser
- edit - Opens the Swagger API editor.
- deploy - Deploys the project to the currently configured cloud platform account.
Options:
-h, --help output usage information
-a, --account [account] use specified account
-i, --import-only import project to provider, but don't deploy
-n, --name [name] override deployment name
-m, --main [main] override deployment main file
-b, --base [path] override deployment base path (default is /projectName)
-d, --docs [path] override deployment docs path (default is /docs)
- undeploy - Undeploys the project from the currently configured cloud platform account.
Options:
-h, --help output usage information
-a, --account [account] use specified account
-n, --name [name] override deployment name
Create and manage deployment provider accounts. Deployment providers are cloud-based platforms where you can deploy your Apigee 127 project.
Note: Currently, the only option is deploying to Apigee Edge. Other providers will be added in the future.
$ a127 account [-options] [command] {account_name}
Example:
$ a127 account create myaccount
To print a list of valid options for a command:
a127 account [command] -h
Commands:
-
create - Creates a deployment account on a specified provider. Follow the command line prompts. The deploy command deploys your project to this provider account. Account information for each account that you configure is stored by default in
~/.a127/accounts
. The default provider isapigee
.
$ a127 account create myaccount
[?] Provider? apigee
[?] Do you have an account? Yes
[?] Organization? jdoe
[?] User Id? [email protected]
[?] Password? *********
[?] Environment? test
-
delete - Deletes the specified account. Information for the account is removed from
~/.a127/accounts
.
$ a127 account delete myaccount
-
update - Updates the specified account. Follow the command line prompts.
-
show - Shows information about the specified account. If you do not specify an account name, you will see information for the current account.
-
list - Lists the deployment accounts. The current account is identified with "+".
-
select - Makes the specified account the current account.
`$ a127 account select myaccount`
-
providers - Lists the available deployment providers. Currently,
apigee
is the only available provider. More will be added in the future. -
deployments - Lists all all projects that are deployed to the current provider account.
-
deployApigeeProxy - Deploys the
volos-proxy
API proxy to Apigee Edge, to the organization specified in the Apigee account created witha127 account create
. You need to deploy this proxy if you want to run your API in conjunction with Apigee Edge to perform functions like caching, quota management, and AOuth. Using volos with Apigee edge is optional.$ a127 acount deployApigeeProxy myaccount
Manage an Apache Usergrid service on your local machine. Usergrid is an open-source BaaS solution based on RESTful APIs.
$ a127 usergrid [options] [command]
Examples:
$ a127 usergrid start
$ a127 usergrid portal
$ a127 usergrid stop
To print a list of valid options for a command:
$ a127 usergrid [command] -h
Commands:
-
start - Starts a local instance of the Apache Usergrid service.
-
stop - Stops the running Usergrid service.
-
download - Downloads Apache Usergrid to your machine.
-
portal - Opens the Usergrid portal. Use the portal to manage Usergrid projects, create data sets, manage app security, and more. The default login credentials are test/test.
Note: You must download Usergrid before you can open the portal. Or, you can execute
a127 usergrid portal --download
. -
pid - Print the pid of the currently running Usergrid service.
-
tail - Prints the tail of your local Usergrid service log.
Prints config information for the Apigee 127 project.
$ a127 config
Having Trouble? Try posting your question to the Apigee Community. Or, for more links and resources, check out our Help Page
Need help? Visit the Apigee Community ! |
---|
-
Getting started
-
Add policies to your API
-
Add security policies
-
Deploy your projects
-
Programmatic hooks
-
Good to know about
-
Deep dives
-
Reference topics
-
Troubleshooting and getting help
-
Related resources