Struct wasmer_cli::commands::app::deploy::CmdAppDeploy
source · pub struct CmdAppDeploy {Show 17 fields
pub env: WasmerEnv,
pub fmt: ItemFormatOpts,
pub no_validate: bool,
pub non_interactive: bool,
pub publish_package: bool,
pub dir: Option<PathBuf>,
pub path: Option<PathBuf>,
pub no_wait: bool,
pub no_default: bool,
pub no_persist_id: bool,
pub owner: Option<String>,
pub app_name: Option<String>,
pub bump: bool,
pub quiet: bool,
pub template: Option<String>,
pub package: Option<String>,
pub use_local_manifest: bool,
}
Expand description
Deploy an app to Wasmer Edge.
Fields§
§env: WasmerEnv
§fmt: ItemFormatOpts
§no_validate: bool
Skip local schema validation.
non_interactive: bool
Do not prompt for user input.
publish_package: bool
Automatically publish the package referenced by this app.
Only works if the corresponding wasmer.toml is in the same directory.
dir: Option<PathBuf>
The path to the directory containing the app.yaml
file.
path: Option<PathBuf>
The path to the app.yaml
file.
no_wait: bool
Do not wait for the app to become reachable.
no_default: bool
Do not make the new app version the default (active) version. This is useful for testing a deployment first, before moving it to “production”.
no_persist_id: bool
Do not persist the app ID under app_id
field in app.yaml.
owner: Option<String>
Specify the owner (user or namespace) of the app.
If specified via this flag, the owner will be overridden. Otherwise, the app.yaml
is
inspected and, if there is no owner
field in the spec file, the user will be prompted to
select the correct owner. If no owner is found in non-interactive mode the deployment will
fail.
app_name: Option<String>
Specify the name (user or namespace) of the app to be deployed.
If specified via this flag, the app_name will be overridden. Otherwise, the app.yaml
is
inspected and, if there is no name
field in the spec file, if running interactive the
user will be prompted to insert an app name, otherwise the deployment will fail.
bump: bool
Whether or not to automatically bump the package version if publishing.
quiet: bool
Don’t print any message.
The only message that will be printed is the one signaling the successfullness of the operation.
template: Option<String>
A reference to the template to use when creating an app to deploy.
It can be either an URL to a github repository - like
https://github.com/wasmer-examples/php-wasmer-starter
- or the name of a template that
will be searched for in the selected registry, like astro-starter
.
package: Option<String>
Name of the package to use when creating an app to deploy.
use_local_manifest: bool
Whether or not to search (and use) a local manifest when creating an app to deploy.
Implementations§
source§impl CmdAppDeploy
impl CmdAppDeploy
Trait Implementations§
source§impl Args for CmdAppDeploy
impl Args for CmdAppDeploy
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl AsyncCliCommand for CmdAppDeploy
impl AsyncCliCommand for CmdAppDeploy
source§impl CommandFactory for CmdAppDeploy
impl CommandFactory for CmdAppDeploy
source§impl Debug for CmdAppDeploy
impl Debug for CmdAppDeploy
source§impl FromArgMatches for CmdAppDeploy
impl FromArgMatches for CmdAppDeploy
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.source§impl Parser for CmdAppDeploy
impl Parser for CmdAppDeploy
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for CmdAppDeploy
impl RefUnwindSafe for CmdAppDeploy
impl Send for CmdAppDeploy
impl Sync for CmdAppDeploy
impl Unpin for CmdAppDeploy
impl UnwindSafe for CmdAppDeploy
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more